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 14 July 2010 18:11, Fulko Hew <[email protected]> wrote: > poking around on my system I tried: > > # snmpwalk -c public -v1 localhost ipNetToMediaPhysAddress > IP-MIB::ipNetToMediaPhysAddress.2.10.20.101.1 = STRING: 0:13:60:d:3d:90 Note that you are picking up the definition of the ipNetToMediaTable objects from IP-MIB. This references the type PhysAddress from SNMPv2-TC, which does include the necessary display hint. Randall is picking up definitions of ipNetToMediaTable from the older RFC1213 MIB, which does not include this hint. So the library has to fall back on guessing whether a given string is printable or not - and this decision depends on the exact value it receives. That's why I suggested he try removing the RFC1213 MIB, and using the IP-MIB (plus supporting infrastructure). (Which was promptly dismissed as "not being a solution" - hmmm....) 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