On 11 May 2010 11:47, Bart Van Assche <bvanass...@acm.org> wrote:
> On Tue, May 11, 2010 at 8:45 AM, <thierry.caze...@googlemail.com> wrote:

>> In fact I want to know how it is choiced to display information in string
>> format instead of hex-string?


> 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.


Alternatively, you could define the MIB object to use a SYNTAX
type that specifies how to display the results (using a suitable
TEXTUAL CONVENTION)
   For example, DisplayString should always be displayed as
a printable string, while PhysAddress would be reported as
(colon-separated) hex values.

The automatic guessing that Bart refers to above, is really
only relevant to the basic OCTET STRING syntax, where there's
no hint available as to how the value should be displayed.

Dave

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

_______________________________________________
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/listinfo/net-snmp-users

Reply via email to