Re: snmpget and snmpwalk return corrupt string instead of hex string when MAC address starts with non zero

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 13 July 2010 04:25, Randall C Grimshaw <[email protected]> wrote:
> the snmpget and snmpwalk apps return a corrupt string instead of a hex string
> whenever the first number of a MAC address is not 00. ... It is as though the
> apps assume that all MAC addresses begin with 00 to determine how to
> encode the result and the String encoding has a corrupt pointer.

No - that's not what is happening.

The problem is not with how the data is encoded by the agent.
Rather it is with how the results are being displayed by the client tool.
If you run the command using the option '-Ox', this will force output in
hex format, and you should see the value as expected.

Alternatively, if you remove the RFC1213-MIB file, then the client tools
ought to pick up the IP-MIB definition instead, which includes the correct
DISPLAY HINT to display this value as a hex string automatically.

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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.