cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2363
Views
15
Helpful
4
Replies

SNMPget CPU utilization

lrinetti62
Level 1
Level 1

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 ?

1 Accepted Solution

Accepted Solutions

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

View solution in original post

4 Replies 4

David Stanford
Cisco Employee
Cisco Employee

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

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

lrinetti@libero.it

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

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

Getting Started

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: