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 <D1ED659D5D76664389FB55EE3E3EE506095CE8EF81@suex07-mbx-01.ad.syr.edu>
The files are there. Yes this shows that I have been editing IP-MIB but I have copied the original back.
In another message: I recently discovered that editing the IMPORT line in RFC1213 works... I wonder if this is related to my compiling with --enable-old-features
Thank you.

# ls -al /usr/local/net-snmp/5.5/share/snmp/mibs
total 1676
drwxr-xr-x 2 root root   4096 Jul 14 16:18 .
drwxr-xr-x 6 root root   4096 Jul 13 08:57 ..
-rw-r--r-- 1 root root  17455 Mar  2 13:01 AGENTX-MIB.txt
-rw-r--r-- 1 root root  68104 Mar  2 13:01 DISMAN-EVENT-MIB.txt
-rw-r--r-- 1 root root  24613 Mar  2 13:01 DISMAN-SCHEDULE-MIB.txt
-rw-r--r-- 1 root root  64311 Mar  2 13:01 DISMAN-SCRIPT-MIB.txt
-rw-r--r-- 1 root root  84492 Mar  2 13:01 EtherLike-MIB.txt
-rw-r--r-- 1 root root   4660 Mar  2 13:01 HCNUM-TC.txt
-rw-r--r-- 1 root root  52544 Mar  2 13:01 HOST-RESOURCES-MIB.txt
-rw-r--r-- 1 root root  10583 Mar  2 13:01 HOST-RESOURCES-TYPES.txt
-rw-r--r-- 1 root root   4819 Mar  2 13:01 IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
-rw-r--r-- 1 root root  29665 Mar  2 13:01 IANAifType-MIB.txt
-rw-r--r-- 1 root root   4299 Mar  2 13:01 IANA-LANGUAGE-MIB.txt
-rw-r--r-- 1 root root   3513 Mar  2 13:01 IANA-RTPROTO-MIB.txt
-rw-r--r-- 1 root root   5066 Mar  2 13:01 IF-INVERTED-STACK-MIB.txt
-rw-r--r-- 1 root root  71691 Mar  2 13:01 IF-MIB.txt
-rw-r--r-- 1 root root  16782 Mar  2 13:01 INET-ADDRESS-MIB.txt
-rw-r--r-- 1 root root  46286 Mar  2 13:01 IP-FORWARD-MIB.txt
-rw-r--r-- 1 root root 185667 Jul 14 15:24 IP-MIB.txt
-rw-r--r-- 1 root root  15936 Mar  2 13:01 IPV6-ICMP-MIB.txt
-rw-r--r-- 1 root root  48703 Mar  2 13:01 IPV6-MIB.txt
-rw-r--r-- 1 root root   7257 Mar  2 13:01 IPV6-TCP-MIB.txt
-rw-r--r-- 1 root root   2367 Mar  2 13:01 IPV6-TC.txt
-rw-r--r-- 1 root root   4400 Mar  2 13:01 IPV6-UDP-MIB.txt
-rw-r--r-- 1 root root  15732 Mar  2 13:01 NET-SNMP-AGENT-MIB.txt
-rw-r--r-- 1 root root   9160 Mar  2 13:01 NET-SNMP-EXAMPLES-MIB.txt
-rw-r--r-- 1 root root   9198 Mar  2 13:01 NET-SNMP-EXTEND-MIB.txt
-rw-r--r-- 1 root root   2036 Mar  2 13:01 NET-SNMP-MIB.txt
-rw-r--r-- 1 root root   3351 Mar  2 13:01 NET-SNMP-PASS-MIB.txt
-rw-r--r-- 1 root root   4686 Mar  2 13:01 NET-SNMP-TC.txt
-rw-r--r-- 1 root root  24694 Mar  2 13:01 NOTIFICATION-LOG-MIB.txt
-rw-r--r-- 1 root root   3067 Mar  2 13:01 RFC1155-SMI.txt
-rw-r--r-- 1 root root  79687 Jul 14 16:18 RFC1213-MIB.txt
-rw-r--r-- 1 root root   1174 Mar  2 13:01 RFC-1215.txt
-rw-r--r-- 1 root root 147822 Mar  2 13:01 RMON-MIB.txt
-rw-r--r-- 1 root root  45323 Mar  2 13:01 SCTP-MIB.txt
-rw-r--r-- 1 root root   4595 Mar  2 13:01 SMUX-MIB.txt
-rw-r--r-- 1 root root  15490 Mar  2 13:01 SNMP-COMMUNITY-MIB.txt
-rw-r--r-- 1 root root  22342 Mar  2 13:01 SNMP-FRAMEWORK-MIB.txt
-rw-r--r-- 1 root root   5496 Mar  2 13:01 SNMP-MPD-MIB.txt
-rw-r--r-- 1 root root  20014 Mar  2 13:01 SNMP-NOTIFICATION-MIB.txt
-rw-r--r-- 1 root root   9106 Mar  2 13:01 SNMP-PROXY-MIB.txt
-rw-r--r-- 1 root root  22769 Mar  2 13:01 SNMP-TARGET-MIB.txt
-rw-r--r-- 1 root root  39201 Mar  2 13:01 SNMP-USER-BASED-SM-MIB.txt
-rw-r--r-- 1 root root   2205 Mar  2 13:01 SNMP-USM-AES-MIB.txt
-rw-r--r-- 1 root root  21101 Mar  2 13:01 SNMP-USM-DH-OBJECTS-MIB.txt
-rw-r--r-- 1 root root   8263 Mar  2 13:01 SNMPv2-CONF.txt
-rw-r--r-- 1 root root  29305 Mar  2 13:01 SNMPv2-MIB.txt
-rw-r--r-- 1 root root   8924 Mar  2 13:01 SNMPv2-SMI.txt
-rw-r--r-- 1 root root  38034 Mar  2 13:01 SNMPv2-TC.txt
-rw-r--r-- 1 root root   5775 Mar  2 13:01 SNMPv2-TM.txt
-rw-r--r-- 1 root root  34162 Mar  2 13:01 SNMP-VIEW-BASED-ACM-MIB.txt
-rw-r--r-- 1 root root  28564 Mar  2 13:01 TCP-MIB.txt
-rw-r--r-- 1 root root  16418 Mar  2 13:01 TRANSPORT-ADDRESS-MIB.txt
-rw-r--r-- 1 root root   2163 Mar  2 13:01 UCD-DEMO-MIB.txt
-rw-r--r-- 1 root root   4402 Mar  2 13:01 UCD-DISKIO-MIB.txt
-rw-r--r-- 1 root root   3010 Mar  2 13:01 UCD-DLMOD-MIB.txt
-rw-r--r-- 1 root root   8118 Mar  2 13:01 UCD-IPFWACC-MIB.txt
-rw-r--r-- 1 root root  46150 Mar  2 13:01 UCD-SNMP-MIB.txt
-rw-r--r-- 1 root root  20882 Mar  2 13:01 UDP-MIB.txt


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield
Sent: Wednesday, July 14, 2010 5:05 PM
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 14 July 2010 20:33, Randall C Grimshaw <[email protected]> wrote:
> When I tried to remove the RFC1213-MIB the apps fail.
> ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaPhysAddress.443:
>   Unknown Object Identifier (Sub-id not found: (top) -> ip)

You need to remove the RFC1213-MIB *and* install the IP-MIB, etc.
One without the other won't work.

This ought to be set up automatically as part of installing the Net-SNMP
package.  The fact that the IP-MIB currently isn't being found is a bad sign.


> I tried to add a hint to the RFC1213-MIB under ipNetToMediaPhysAddress

No - that's not a sensible approach.
Concentrate on getting the standard MIBs loaded properly.


> Bad format of optional clauses (DISPLAY-HINT): At line 1314
>    in /usr/local/net-snmp/5.5/share/snmp/mibs/RFC1213-MIB.txt

What does
     'ls /usr/local/net-snmp/5.5/share/snmp/mibs'
           report?

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.