05-03-2006 03:59 AM
To get the CPU util of a Cisco device
via SNMP, i need to identify the MIB
variable that return the "CPU util"
but how i can find it in the numerous MIB
objects ?
Solved! Go to Solution.
05-04-2006 04:18 AM
If you have a CCO signon try the "Search" tab on the SNMP Object Navigator http://tools.cisco.com/Support/SNMP/do/BrowseOID.do
Also, http://www.mibdepot.com has a powerful search once you understand what all the options do
05-03-2006 05:22 AM
CatOS:
CISCO-STACK-MIB sysTraffic (generic info for supervisor)
IOS:
CISCO-PROCESS-MIB
-- The OIDs that you may be particularly interested would be:
CISCO-PROCESS-MIB.oid:"cpmCPUTotalTable"
"1.3.6.1.4.1.9.9.109.1.1.1"
CISCO-PROCESS-MIB.oid:"cpmCPUTotalEntry"
"1.3.6.1.4.1.9.9.109.1.1.1.1"
CISCO-PROCESS-MIB.oid:"cpmCPUTotalIndex"
"1.3.6.1.4.1.9.9.109.1.1.1.1.1"
CISCO-PROCESS-MIB.oid:"cpmCPUTotalPhysicalIndex"
"1.3.6.1.4.1.9.9.109.1.1.1.1.2"
CISCO-PROCESS-MIB.oid:"cpmCPUTotal5sec"
"1.3.6.1.4.1.9.9.109.1.1.1.1.3"
CISCO-PROCESS-MIB.oid:"cpmCPUTotal1min"
"1.3.6.1.4.1.9.9.109.1.1.1.1.4"
CISCO-PROCESS-MIB.oid:"cpmCPUTotal5min"
"1.3.6.1.4.1.9.9.109.1.1.1.1.5"
CISCO-PROCESS-MIB.oid:"cpmCPUTotalGroup"
"1.3.6.1.4.1.9.9.109.3.2."
Here's a great link with some info as well:
http://www.cisco.com/warp/customer/477/SNMP/collect_cpu_util_snmp.html
05-03-2006 12:27 PM
Thank You for the precise answer, that lead me
to do ask a more general question:
how can i find the correct MIB given a system
variable ? In this case, given the "CPU util"
input, you deduced the MIB "CISCO-PROCESS-MIB".
How ?
Thank You and Best Regards
05-03-2006 01:25 PM
I have downloaded all of the Cisco V2 mibs onto my solaris machine and then use grep commands to go through the text files looking for certain keywords
ex)
cd /mibs
grep -i cpu *
It then returns objects with mibs matching the kw cpu and I can skim through the results looking for things that seem useful.
Once I have some selected I then open the actual mib and read the description to see if it applies and I go to CCO to see if it is supported on the device and code.
For the CatOS, it wasn't as much the search above as it was seeing this object being used several times for CPU on CatOS
05-04-2006 04:18 AM
If you have a CCO signon try the "Search" tab on the SNMP Object Navigator http://tools.cisco.com/Support/SNMP/do/BrowseOID.do
Also, http://www.mibdepot.com has a powerful search once you understand what all the options do
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: