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

Randall C Grimshaw <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <D1ED659D5D76664389FB55EE3E3EE506095CE0B507@suex07-mbx-01.ad.syr.edu>
Dave:
   Thank you for your assistance, it is much appreciated.
   The -0x parameter does work for the snmp apps. Ultimately I am also using PHP which uses the libs so a am still stuck. Removing the RFC1213-MIB file does not appear to be a solution. I am setting up a test to attempt forcing the IP-MIB you mentioned.
   Do you have any other suggestions

Randall Grimshaw [email protected]
________________________________________
From: [email protected] [[email protected]] On Behalf Of Dave Shield [[email protected]]
Sent: Tuesday, July 13, 2010 3:54 AM
To: Randall C Grimshaw
Cc: [email protected]
Subject: Re: snmpget and snmpwalk return corrupt string instead of hex string   when MAC address starts with non zero

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.