Re: [ net-snmp-Bugs-2999463 ] why snmpget display string instead of hex-string

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Tue, May 11, 2010 at 8:45 AM, <[email protected]> wrote:

>
> I apology creating a ticket but I'm not familiar with the process.
>
> In fact I want to know how it is choiced to display information in string
> format instead of hex-string?
>
> snmpset -v 2c -t 3 -r 1 -m all -O sq -c private 192.168.100.1
> 1.3.6.1.4.1.XXXX.2.99.1.1.2.1.4.1.2.8 x %1
> > %1 is once 7071BCF87B36 once 7071BCF87B1F
>
> Answer is once in string format and once in Hex-String format.
>

No problem.

When no output format is specified, snmpget application prints strings that
contain non-printable characters in hex and strings that only contain
printable characters in ASCII. If you want hex-only output, use option -Ox
with snmpget. For more information, see also man snmpcmd or
http://www.net-snmp.org/docs/man/snmpcmd.html.

Bart.

------------------------------------------------------------------------------

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.