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 192.168.55.5 CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolFree* *MIB search path: /home/jozo/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp * *Cannot find module (CISCO-MEMORY-POOL-MIB): At line 0 in (none)* *CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolFree: Unknown Object Identifier* Did some research and using the following link I loaded the MIB(s)... which basically consisted of a 'wget' of the MIB files into my /home/jozo/.snmp directory. At least I think they are the MIB definition files with a '.my' extension. http://tools.cisco.com/Support/SNMP/do/BrowseMIB.do?local=en&step=2&mibName=CISCO-PROCESS-MIB But I still cannot get the numeric OID values: *jozo@crdtools:~$ snmptranslate -On CISCO-PROCESS-MIB::cpmCPUTotal5min.9* *No log handling enabled - turning on stderr logging* *Unexpected index type: 7 cpmCPUTotalIndex 9* *.1.3.6.1.4.1.9.9.109.1.1.1.1.5.9* Can anyone point me in the right direction. Any links or advice on how to operate SNMP on a Unix type system would be greatly appreciated. Even a response like "RTMF Buddy" would be awesome if a manual was recommended. Thanks to all who read this email. You deserve a beer. Cheers, -- Joe Renwick IP Network Consultant, CCIE #16465 GO NETFORWARD! Direct: 619-800-2055, Emergency Support: 800-719-0504 Is your network moving you forward?
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, Tim -----Original Message----- From: Joe Renwick [mailto:joe@gonetforward.com] Sent: Thursday, March 10, 2011 1:38 PM To: nanog@nanog.org Subject: 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 192.168.55.5 CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolFree* *MIB search path: /home/jozo/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/sha re/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp * *Cannot find module (CISCO-MEMORY-POOL-MIB): At line 0 in (none)* *CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolFree: Unknown Object Identifier* Did some research and using the following link I loaded the MIB(s)... which basically consisted of a 'wget' of the MIB files into my /home/jozo/.snmp directory. At least I think they are the MIB definition files with a '.my' extension. http://tools.cisco.com/Support/SNMP/do/BrowseMIB.do?local=en&step=2&mibN ame=CISCO-PROCESS-MIB But I still cannot get the numeric OID values: *jozo@crdtools:~$ snmptranslate -On CISCO-PROCESS-MIB::cpmCPUTotal5min.9* *No log handling enabled - turning on stderr logging* *Unexpected index type: 7 cpmCPUTotalIndex 9* *.1.3.6.1.4.1.9.9.109.1.1.1.1.5.9* Can anyone point me in the right direction. Any links or advice on how to operate SNMP on a Unix type system would be greatly appreciated. Even a response like "RTMF Buddy" would be awesome if a manual was recommended. Thanks to all who read this email. You deserve a beer. Cheers, -- Joe Renwick IP Network Consultant, CCIE #16465 GO NETFORWARD! Direct: 619-800-2055, Emergency Support: 800-719-0504 Is your network moving you forward? ***************************************************************** This message has originated from R. L. Polk & Co., 26533 Evergreen Road Suite 900, Southfield, MI 48076. R. L. Polk & Co. sends various types of email communications. If this email message concerns the potential licensing of a Polk product or service, and you do not wish to receive further emails regarding Polk products, forward this email to Do_Not_Send@polk.com with the word "remove" in the subject line. The email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error, please delete this message and notify the Polk System Administrator at postmaster@polk.com. *****************************************************************
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' 192.168.10.2 CISCO-PROCESS-MIB::cpmCPUTotal5min.1* *CISCO-PROCESS-MIB::cpmCPUTotal5min.1 = Gauge32: 0* Now that my servers understand the MIB I can get the numerical OID for Cacti: *jozo@crdtools:~/.snmp$ snmptranslate -On CISCO-PROCESS-MIB::cpmCPUTotal5min.1* *.1.3.6.1.4.1.9.9.109.1.1.1.1.5.1* Hope this helps someone down the road. Cheers, Joe On Thu, Mar 10, 2011 at 10:37 AM, Joe Renwick <joe@gonetforward.com> wrote:
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 192.168.55.5 CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolFree* *MIB search path: /home/jozo/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp * *Cannot find module (CISCO-MEMORY-POOL-MIB): At line 0 in (none)* *CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolFree: Unknown Object Identifier*
Did some research and using the following link I loaded the MIB(s)... which basically consisted of a 'wget' of the MIB files into my /home/jozo/.snmp directory. At least I think they are the MIB definition files with a '.my' extension.
http://tools.cisco.com/Support/SNMP/do/BrowseMIB.do?local=en&step=2&mibName=CISCO-PROCESS-MIB
But I still cannot get the numeric OID values:
*jozo@crdtools:~$ snmptranslate -On CISCO-PROCESS-MIB::cpmCPUTotal5min.9* *No log handling enabled - turning on stderr logging* *Unexpected index type: 7 cpmCPUTotalIndex 9* *.1.3.6.1.4.1.9.9.109.1.1.1.1.5.9*
Can anyone point me in the right direction. Any links or advice on how to operate SNMP on a Unix type system would be greatly appreciated. Even a response like "RTMF Buddy" would be awesome if a manual was recommended.
Thanks to all who read this email. You deserve a beer.
Cheers,
-- Joe Renwick IP Network Consultant, CCIE #16465 GO NETFORWARD! Direct: 619-800-2055, Emergency Support: 800-719-0504 Is your network moving you forward?
-- Joe Renwick IP Network Consultant, CCIE #16465 GO NETFORWARD! Direct: 619-800-2055, Emergency Support: 800-719-0504 Is your network moving you forward?
participants (2)
-
Bulger, Tim
-
Joe Renwick