snmp tools fail to translate OIDs

Bug #690638 reported by Arkaitz Jimenez
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
net-snmp (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

I have tested this on a freshly installed Ubuntu 10.10. I only did "apt-get install snmp snmpd"
Looks like there are missing MIBs that are referenced by existing MIBs but I can't find them in any Ubuntu package.
I had to manually copy SNMPv2-SMI SNMPv2-TC and INET-ADDRESS-MIB which are referenced by:
~$ egrep -l "INET-ADDRESS-MIB|SNMPv2-TC|SNMPv2-SMI" /usr/share/mibs/netsnmp/*
/usr/share/mibs/netsnmp/GNOME-SMI
/usr/share/mibs/netsnmp/INET-ADDRESS-MIB
/usr/share/mibs/netsnmp/LM-SENSORS-MIB
/usr/share/mibs/netsnmp/NET-SNMP-AGENT-MIB
/usr/share/mibs/netsnmp/NET-SNMP-EXAMPLES-MIB
/usr/share/mibs/netsnmp/NET-SNMP-EXTEND-MIB
/usr/share/mibs/netsnmp/NET-SNMP-MIB
/usr/share/mibs/netsnmp/NET-SNMP-MONITOR-MIB
/usr/share/mibs/netsnmp/NET-SNMP-PASS-MIB
/usr/share/mibs/netsnmp/NET-SNMP-SYSTEM-MIB
/usr/share/mibs/netsnmp/NET-SNMP-TC
/usr/share/mibs/netsnmp/NET-SNMP-VACM-MIB
/usr/share/mibs/netsnmp/SNMP-FRAMEWORK-MIB
/usr/share/mibs/netsnmp/SNMPv2-SMI
/usr/share/mibs/netsnmp/SNMPv2-TC
/usr/share/mibs/netsnmp/UCD-DEMO-MIB
/usr/share/mibs/netsnmp/UCD-DISKIO-MIB
/usr/share/mibs/netsnmp/UCD-DLMOD-MIB
/usr/share/mibs/netsnmp/UCD-IPFWACC-MIB
/usr/share/mibs/netsnmp/UCD-SNMP-MIB

Now, although this might not be a problem I thought it was relevant.

The real problem is that snmp is not able to resolve even the basic system oids, checking with snmpwalk:
~$ snmpwalk -c public -v 2c Cobain
iso.3.6.1.2.1.1.1.0 = STRING: "Linux Cobain 2.6.35-23-generic-pae #41-Ubuntu SMP Wed Nov 24 10:35:46 UTC 2010 i686"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.8072.3.2.10
iso.3.6.1.2.1.1.3.0 = Timeticks: (394598) 1:05:45.98
iso.3.6.1.2.1.1.4.0 = STRING: "Me <email address hidden>"
iso.3.6.1.2.1.1.5.0 = STRING: "Cobain"
iso.3.6.1.2.1.1.6.0 = STRING: "Sitting on the Dock of the Bay"
iso.3.6.1.2.1.1.7.0 = INTEGER: 72
iso.3.6.1.2.1.1.8.0 = Timeticks: (5) 0:00:00.05
iso.3.6.1.2.1.1.9.1.2.1 = OID: iso.3.6.1.6.3.10.3.1.1
iso.3.6.1.2.1.1.9.1.2.2 = OID: iso.3.6.1.6.3.11.3.1.1
iso.3.6.1.2.1.1.9.1.2.3 = OID: iso.3.6.1.6.3.15.2.1.1
iso.3.6.1.2.1.1.9.1.2.4 = OID: iso.3.6.1.6.3.1
iso.3.6.1.2.1.1.9.1.2.5 = OID: iso.3.6.1.2.1.49
iso.3.6.1.2.1.1.9.1.2.6 = OID: iso.3.6.1.2.1.4
iso.3.6.1.2.1.1.9.1.2.7 = OID: iso.3.6.1.2.1.50
iso.3.6.1.2.1.1.9.1.2.8 = OID: iso.3.6.1.6.3.16.2.2.1
iso.3.6.1.2.1.1.9.1.3.1 = STRING: "The SNMP Management Architecture MIB."
iso.3.6.1.2.1.1.9.1.3.2 = STRING: "The MIB for Message Processing and Dispatching."
iso.3.6.1.2.1.1.9.1.3.3 = STRING: "The management information definitions for the SNMP User-based Security Model."
iso.3.6.1.2.1.1.9.1.3.4 = STRING: "The MIB module for SNMPv2 entities"
iso.3.6.1.2.1.1.9.1.3.5 = STRING: "The MIB module for managing TCP implementations"
iso.3.6.1.2.1.1.9.1.3.6 = STRING: "The MIB module for managing IP and ICMP implementations"
iso.3.6.1.2.1.1.9.1.3.7 = STRING: "The MIB module for managing UDP implementations"
iso.3.6.1.2.1.1.9.1.3.8 = STRING: "View-based Access Control Model for SNMP."
iso.3.6.1.2.1.1.9.1.4.1 = Timeticks: (5) 0:00:00.05
iso.3.6.1.2.1.1.9.1.4.2 = Timeticks: (5) 0:00:00.05
iso.3.6.1.2.1.1.9.1.4.3 = Timeticks: (5) 0:00:00.05
iso.3.6.1.2.1.1.9.1.4.4 = Timeticks: (5) 0:00:00.05
iso.3.6.1.2.1.1.9.1.4.5 = Timeticks: (5) 0:00:00.05
iso.3.6.1.2.1.1.9.1.4.6 = Timeticks: (5) 0:00:00.05
iso.3.6.1.2.1.1.9.1.4.7 = Timeticks: (5) 0:00:00.05
iso.3.6.1.2.1.1.9.1.4.8 = Timeticks: (5) 0:00:00.05
iso.3.6.1.2.1.25.1.1.0 = Timeticks: (15274755) 1 day, 18:25:47.55
iso.3.6.1.2.1.25.1.2.0 = Hex-STRING: 07 DA 0C 0F 0D 17 37 00 2B 00 00
iso.3.6.1.2.1.25.1.3.0 = INTEGER: 1536
iso.3.6.1.2.1.25.1.4.0 = STRING: "BOOT_IMAGE=/boot/vmlinuz-2.6.35-23-generic-pae root=UUID=cec1a5a0-fc57-4e68-b2b2-41b9b2037e32 ro quiet splash
"
iso.3.6.1.2.1.25.1.5.0 = Gauge32: 5
iso.3.6.1.2.1.25.1.6.0 = Gauge32: 238
iso.3.6.1.2.1.25.1.7.0 = INTEGER: 0
iso.3.6.1.2.1.25.1.7.0 = No more variables left in this MIB View (It is past the end of the MIB tree)

No OID has been resolved, even the snmptranslate examples from the snmptranslate manpage don't work for me.
I've tried the same in a freshly installed Debian system under the same circumstances and the oids were resolved to MIB and attribute names.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: snmp 5.4.3~dfsg-1ubuntu3
ProcVersionSignature: Ubuntu 2.6.35-23.41-generic-pae 2.6.35.7
Uname: Linux 2.6.35-23-generic-pae i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Wed Dec 15 13:12:59 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_IE.utf8
SourcePackage: net-snmp

Revision history for this message
Arkaitz Jimenez (arkaitzj) wrote :
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Tried on 10.10, indeed the mibs are not resolved.

Marking Confirmed. Setting Importance to Medium.

Changed in net-snmp (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
William King (quentusrex) wrote :

I am also affected by this issue. Currently I have a fresh install of Ubuntu 10.10, and I have installed snmpd. I then installed the snmp-mips-downloader package and installed the mips. This helped significantly because now it can resolve 'system' and others.

What is still at issue is that any of the extended commands now fail with the error:

root@thedraft:~# snmpwalk -v2c -c public localhost NET-SNMP-EXTEND-MIB::nsExtendOutputFull."test1".0
NET-SNMP-EXTEND-MIB::nsExtendOutputFull.test1.0 = No more variables left in this MIB View (It is past the end of the MIB tree)

Revision history for this message
William King (quentusrex) wrote :

NVM. I found that my issue was caused by a restricted view. I think the snmp-mibs-download package is what you are looking for. You can google about it. Basically it seems debian stopped shipping the mibs due to potential legal reasons, but there is a package that will download them for you.

Revision history for this message
Chuck Short (zulcss) wrote :

Please download the MIBS package.

chuck

Changed in net-snmp (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.