RE: String to Hex-String conversion - SNMP
This is a discussion on RE: String to Hex-String conversion - SNMP ; > From: net-snmp-users-bounces@lists.sourceforge.net
> [mailto:net-snmp-users-bounces@lists.sourceforge.net] On
> Behalf Of Rajesh Chatterjee
> Sent: Tuesday, July 15, 2008 4:17 AM
> I am querying a variable (OID) which has type/syntax as
> DisplayString (string) .
> When doing snmpwalk from Mib-Browser ...
-
RE: String to Hex-String conversion
> From: net-snmp-users-bounces@lists.sourceforge.net
> [mailto:net-snmp-users-bounces@lists.sourceforge.net] On
> Behalf Of Rajesh Chatterjee
> Sent: Tuesday, July 15, 2008 4:17 AM
> I am querying a variable (OID) which has type/syntax as
> DisplayString (string) .
> When doing snmpwalk from Mib-Browser or from console i am
> getting few characters as junk character e.g.
>
> INPUT :-
> "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aa"
>
> Total number of characters = 176
>
> RESULT :-
> "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaa
> aaaaaaaaaaaaaaaaa
>
> please check the last characters where i am getting junk
> values rather than "a".
This did not come across correctly. Please pipe the output to "od -v -t x1" or some other hexification method. It would probably help if the pattern were not so trivial, perhaps a repetition of "abcdefghij1234567890", but that's secondary.
HTH,
Mike
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.p...r_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
-
RE: String to Hex-String conversion
> From: Rajesh Chatterjee [mailto:rajchats2k2@gmail.com]
> Sent: Tuesday, July 29, 2008 1:54 AM
> This didnot help me
. Was there any such problem observed
> in the past. It would be nice if you can provide some more
> insight into it.
I'm still trying to see the problem. You can't just cut-n-paste the text from a data corruption problem - I need to know what *bytes* were returned, as it may not be a valid character stream. Please run `snmpset -Ox` and the subsequent `snmpget -Ox` of the string, then cut and paste both commands and their responses and post 'em here.
Thanks,
Mike
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.p...r_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users