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 | <D1ED659D5D76664389FB55EE3E3EE506095CE8EF88@suex07-mbx-01.ad.syr.edu> |
Also loading and specifying the IP-MIB did not change the result until RFC1213-MIB was removed It is most interesting that it continues to look in the RFC1213-MIB even when removed.... snmpwalk -Dinit_mib -c community server IP-MIB::ipNetToMediaPhysAddress.443 No log handling enabled - turning on stderr logging registered debug token init_mib, 1 init_mib: Seen MIBDIRS: Looking in '/me/.snmp/mibs:/usr/local/net-snmp/5.5/share/snmp/mibs' for mib dirs ... init_mib: Seen MIBS: Looking in 'SNMPv2-MIB:RFC1213-MIB:SNMP-VIEW-BASED-ACM-MIB:SNMP-COMMUNITY-MIB' for mib files ... init_mib: Seen PREFIX: Looking in '.1.3.6.1.2.1' for prefix ... RFC1213-MIB::ipNetToMediaPhysAddress.index.x.x.x.x = Hex-STRING: 00 A0 B3 CB D0 E0 # mv RFC1213-MIB.txt ../mibsremoved snmpwalk -Dinit_mib -c community server IP-MIB::ipNetToMediaPhysAddress.443 No log handling enabled - turning on stderr logging registered debug token init_mib, 1 init_mib: Seen MIBDIRS: Looking in '/me/.snmp/mibs:/usr/local/net-snmp/5.5/share/snmp/mibs' for mib dirs ... init_mib: Seen MIBS: Looking in 'SNMPv2-MIB:RFC1213-MIB:SNMP-VIEW-BASED-ACM-MIB:SNMP-COMMUNITY-MIB' for mib files ... init_mib: Seen PREFIX: Looking in '.1.3.6.1.2.1' for prefix ... IP-MIB::ipNetToMediaPhysAddress.index.x.x.x.x = STRING: 0:a0:b3:cb:d0:e0 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield Sent: Thursday, July 15, 2010 10:16 AM To: Randall C Grimshaw Cc: Fulko Hew; [email protected] Subject: Re: snmpget and snmpwalk return corrupt string instead of hex string when MAC address starts with non zero On 15 July 2010 14:58, Randall C Grimshaw <[email protected]> wrote: > And still when I remove RFC1213-MIB it knows the index is outdated...??? Outdated rather than missing? That implies that there is an index file somewhere.... (Maybe under /var/net-snmp?) The debug flag '-Dmibindex' might help here. Another thing to try - what happens if you explicitly load the IP-MIB? Either snmpwalk -m +IP-MIB ..... or snmpwalk .... IP-MIB::ipNetToMediaPhysAddress Maybe this MIB isn't part of the default list. Do you have a file snmp.conf (note - *not* snmpd.conf) somewhere? Maybe in ~/.snmp or /usr/local/net-snmp/5.5/share/snmp/ or /usr/local/net-snmp/5.5/etc ? The debug flag '-Dinit_mib' will show the list of MIBs that is being loaded 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