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 <D1ED659D5D76664389FB55EE3E3EE506095CE8EF87@suex07-mbx-01.ad.syr.edu>
mibindex: lookup: /usr/local/net-snmp/5.5/share/snmp/mibs (0) /var/net-snmp/mib_indexes/0
It was rebuilt when I removed RFC1213-MIB.txt
I removed the index (0) and restored RFC1213-MIB.txt
It was rebuilt again with the same order as before
# cat 0 (prior to restoring RFC1213-MIB.txt)
DIR /usr/local/net-snmp/5.5/share/snmp/mibs
HCNUM-TC HCNUM-TC.txt
SNMPv2-SMI SNMPv2-SMI.txt
AGENTX-MIB AGENTX-MIB.txt
SNMPv2-TC SNMPv2-TC.txt
HOST-RESOURCES-TYPES HOST-RESOURCES-TYPES.txt
SNMP-NOTIFICATION-MIB SNMP-NOTIFICATION-MIB.txt
NOTIFICATION-LOG-MIB NOTIFICATION-LOG-MIB.txt
TCP-MIB TCP-MIB.txt
SNMP-USER-BASED-SM-MIB SNMP-USER-BASED-SM-MIB.txt
DISMAN-SCRIPT-MIB DISMAN-SCRIPT-MIB.txt
RFC-1215 RFC-1215.txt
EtherLike-MIB EtherLike-MIB.txt
SNMP-MPD-MIB SNMP-MPD-MIB.txt
SNMPv2-MIB SNMPv2-MIB.txt
UCD-DLMOD-MIB UCD-DLMOD-MIB.txt
TRANSPORT-ADDRESS-MIB TRANSPORT-ADDRESS-MIB.txt
NET-SNMP-PASS-MIB NET-SNMP-PASS-MIB.txt
RFC1155-SMI RFC1155-SMI.txt
SNMP-PROXY-MIB SNMP-PROXY-MIB.txt
SNMPv2-TM SNMPv2-TM.txt
NET-SNMP-EXTEND-MIB NET-SNMP-EXTEND-MIB.txt
SNMP-COMMUNITY-MIB SNMP-COMMUNITY-MIB.txt
UCD-DEMO-MIB UCD-DEMO-MIB.txt
HOST-RESOURCES-MIB HOST-RESOURCES-MIB.txt
IPV6-TC IPV6-TC.txt
SNMP-USM-DH-OBJECTS-MIB SNMP-USM-DH-OBJECTS-MIB.txt
UCD-IPFWACC-MIB UCD-IPFWACC-MIB.txt
IPV6-MIB IPV6-MIB.txt
IP-MIB IP-MIB.txt
SNMP-USM-AES-MIB SNMP-USM-AES-MIB.txt
IANA-RTPROTO-MIB IANA-RTPROTO-MIB.txt
UCD-SNMP-MIB UCD-SNMP-MIB.txt
SNMPv2-CONF SNMPv2-CONF.txt
IPV6-UDP-MIB IPV6-UDP-MIB.txt
SMUX-MIB SMUX-MIB.txt
SNMP-VIEW-BASED-ACM-MIB SNMP-VIEW-BASED-ACM-MIB.txt
UCD-DISKIO-MIB UCD-DISKIO-MIB.txt
IF-MIB IF-MIB.txt
SNMP-FRAMEWORK-MIB SNMP-FRAMEWORK-MIB.txt
NET-SNMP-TC NET-SNMP-TC.txt
RMON-MIB RMON-MIB.txt
INET-ADDRESS-MIB INET-ADDRESS-MIB.txt
IANAifType-MIB IANAifType-MIB.txt
IPV6-ICMP-MIB IPV6-ICMP-MIB.txt
DISMAN-EVENT-MIB DISMAN-EVENT-MIB.txt
NET-SNMP-AGENT-MIB NET-SNMP-AGENT-MIB.txt
NET-SNMP-MIB NET-SNMP-MIB.txt
IPV6-TCP-MIB IPV6-TCP-MIB.txt
UDP-MIB UDP-MIB.txt
IANA-ADDRESS-FAMILY-NUMBERS-MIB IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
NET-SNMP-EXAMPLES-MIB NET-SNMP-EXAMPLES-MIB.txt
IANA-LANGUAGE-MIB IANA-LANGUAGE-MIB.txt
SNMP-TARGET-MIB SNMP-TARGET-MIB.txt
IP-FORWARD-MIB IP-FORWARD-MIB.txt
DISMAN-SCHEDULE-MIB DISMAN-SCHEDULE-MIB.txt
SCTP-MIB SCTP-MIB.txt
IF-INVERTED-STACK-MIB IF-INVERTED-STACK-MIB.txt




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