Graphing Nexus CPU and Memory: Here’s the OIDs

I remember when I first wanted to graph this stuff on Nexus…I noticed the Cisco IOS out-of-the-box graph templates wouldn’t work.  I asked around a little and mostly got “You can’t do it,” as the answer.  I haven’t dug into it for a long time since I haven’t had to support Nexus much, but today, I was determined.

Cisco exposes this info via the CISCO-PROCESS-MIB at these OIDs:

$ snmpwalk -c public -v 2c myswitch 1.3.6.1.4.1.9.9.109.1.1.1.1
5 second CPU = 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1 = Gauge32: 6
1 minute CPU = 1.3.6.1.4.1.9.9.109.1.1.1.1.7.1 = Gauge32: 6
5 minute CPU = 1.3.6.1.4.1.9.9.109.1.1.1.1.8.1 = Gauge32: 6
Memory used = 1.3.6.1.4.1.9.9.109.1.1.1.1.12.1 = Gauge32: 1742652
Memory free = 1.3.6.1.4.1.9.9.109.1.1.1.1.13.1 = Gauge32: 6512020

You can see more details on the SNMP object navigator, but of all the objects under 1.3.6.1.4.1.9.9.109.1.1.1.1, only the above seem to be exposed on the Nexus.

Ignore people telling you to use the CISCO-ENTITY-EXT-MIB.

About Mike Kantowski

I started designing and operating data networks in 1999. Since then, I've worked for organizations large and small, and a couple in between. I currently focus on low latency, high frequency financial trading networks.

@netdad on Twitter

  • Umair Hoodbhoy

    I believe ENTITY-MIB is an older implementation, being phased out. Hope you’re well Mike

  • http://twitter.com/netdad Michael Kantowski

    Hi Umair,

    Nice to hear from you.

    I think entity is a standard MIB but Cisco chose not to use it, here. I don’t think Entity is going anywhere, but maybe I’m out of the loop on the fast paced world of SNMP : )

  • http://twitter.com/mrdoro Lukasz Dorosz

    Hi
    I also use two oids which returns an average use of CPU and Mem:
    CPU: 1.3.6.1.4.1.9.9.305.1.1.1.0
    Mem: 1.3.6.1.4.1.9.9.305.1.1.2.0

    br

  • Mansoor Nathani

    What SNMP manager would you use to graph CPU and Memory usage?

    • http://twitter.com/netdad Michael Kantowski

       I’m currently graphing this in Cacti.

      • jim_h

        Hi Micheal, thank you for these OID’s.

        Would you mind explaining a bit how you are graphing in Cacti? Do you have a data template? graph template? Separate graphs for each state or are you aggregating?