Loading MIB Definitions - Help me get out of SNMP Hell!

Hello All,

Apologize for my lameness in advance. I have spent some serious time
researching this topic and have decided to reach out to the forums as the
two of the smartest people I know have hit the same wall in the past.
Bottom line is I do not understand how to add (?compile?) MIB(s) into my
SNMP management system. I use Cacti running on Ubuntu server and it works
great. My only frustrations have been in the area of finding the MIB OID(s)
to use for gathering specific data. In many cases with CIsco I manage to
find the OID name i.e. 'CISCO-PROCESS-MIB::cpmCPUTotal5min.9' but Cacti
needs the numeric value. So I try 'snmpget' and here is what I see:

*jozo@crdtools:/var/www/cacti/rra$ snmpget -v 2c -c ptasa2etb
*MIB search path:

I suggest grabbing the whole lot from
ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz ... I generally extract that
to a directory and move files to my MIB directory individually. This
has the benefit of preventing Net-SNMP from ripping through megabytes of
garbage related to x.25 and the like. Your issue looks like it's
missing or not loading a dependency.

Try adding a -m ALL to your command line to ensure that it's loading
all of the MIBs.

FWIW, I attached the list of the MIBs in my working directory, which
includes lots of Cisco, Netscreen, Microsoft, APC, Liebert/Emerson,
VMware, F5, etc. It compiles without errors and resolves more than 90%
of the tree for most of my devices.

Good luck,

miblist.txt (19.3 KB)

Problem solved. NANOG is awesome! Thanks much to all who assisted.

It is actually quite easy to load the MIB definitions to you Ubuntu machine.
I just downloaded the complete Cisco MIB tree to make life easier "
ftp://ftp.cisco.com/pub/mibs/v2". Downloaded the "v2.tar.gz file".
Unpacked the MIB(s) into '$HOME/.snmp/mibs' directory and life is good.
Note that when the tarball unpacks it creates a weird directory structure.
Just find the .my files and move them to $HOME/.snmp/mibs.

Here is success:

*jozo@crdtools:~/.snmp$ snmpget -v 1 -c 'ptasa2etb'
*CISCO-PROCESS-MIB::cpmCPUTotal5min.1 = Gauge32: 0*

Now that my servers understand the MIB I can get the numerical OID for

*jozo@crdtools:~/.snmp$ snmptranslate -On

Hope this helps someone down the road.