hi, i've just upgraded to ubuntu-10.10 and its snmpget (v5.4.3) doesn't understand MIB names:
$ /usr/bin/snmpget -v1 -c public 10.0.0.11 sysUpTime.0 ifInOctets.102 ifOutOctets.102 sysUpTime.0: Unknown Object Identifier (Sub-id not found: (top) -> sysUpTime) ifInOctets.102: Unknown Object Identifier (Sub-id not found: (top) -> ifInOctets) ifOutOctets.102: Unknown Object Identifier (Sub-id not found: (top) -> ifOutOctets) i searched this list's archives and found a 4 year old message about this error. the solution was to locate the mib file(s) and put it where snmpget was looking. when i tried that, it seemed that mib files were present where snmpget was looking: $ ls -lasp /usr/share/mibs/netsnmp total 160 4 drwxr-xr-x 2 root root 4096 2010-11-08 10:35 ./ 4 drwxr-xr-x 3 root root 4096 2010-11-06 16:55 ../ 4 -rw-r--r-- 1 root root 1913 2010-08-26 03:39 GNOME-SMI 8 -rw-r--r-- 1 root root 5931 2010-08-26 03:39 LM-SENSORS-MIB 16 -rw-r--r-- 1 root root 15901 2010-08-26 03:39 NET-SNMP-AGENT-MIB 12 -rw-r--r-- 1 root root 9160 2010-08-26 03:39 NET-SNMP-EXAMPLES-MIB 12 -rw-r--r-- 1 root root 9326 2010-08-26 03:39 NET-SNMP-EXTEND-MIB 4 -rw-r--r-- 1 root root 2036 2010-08-26 03:39 NET-SNMP-MIB 4 -rw-r--r-- 1 root root 1215 2010-08-26 03:39 NET-SNMP-MONITOR-MIB 4 -rw-r--r-- 1 root root 3350 2010-08-26 03:39 NET-SNMP-PASS-MIB 4 -rw-r--r-- 1 root root 1226 2010-08-26 03:39 NET-SNMP-SYSTEM-MIB 8 -rw-r--r-- 1 root root 4495 2010-08-26 03:39 NET-SNMP-TC 8 -rw-r--r-- 1 root root 5039 2010-08-26 03:39 NET-SNMP-VACM-MIB 4 -rw-r--r-- 1 root root 2163 2010-08-26 03:39 UCD-DEMO-MIB 8 -rw-r--r-- 1 root root 4613 2010-08-26 03:39 UCD-DISKIO-MIB 4 -rw-r--r-- 1 root root 3087 2010-08-26 03:39 UCD-DLMOD-MIB 8 -rw-r--r-- 1 root root 8118 2010-08-26 03:39 UCD-IPFWACC-MIB 44 -rw-r--r-- 1 root root 44971 2010-08-26 03:39 UCD-SNMP-MIB i "fixed" my problem by installing an old working copy (v5.3) i had under /opt and using that but that seems a bit lame. hmm, i just looked in /etc/snmp/snmp.conf to find: # As the snmp packages come without MIB files due to license reasons, loading # of MIBs is disabled by default. If you added the MIBs you can reenable # loaging them by commenting out the following line. mibs : which doesn't make a lot of sense (since the files are present). anyway, i commented out the line as suggested and it only produced more errors. i then copied all of my old net-snmp-5.3/mibs/* files to ~/.snmp/mibs and then it worked. does anyone know what might be wrong with the mib files that i have in /usr/share/mibs/netsnmp? perhaps they are deliberately incomplete rather than absent as suggested by the comments in snmp.conf. cheers, raf ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users