Your browser failed to load CSS style sheets. Your browser or web proxy might not support elliptic-curve TLS

Building network automation solutions

9 module online course

Start now!
back to overview

Another way to generate SNMP trap on high CPU load

Yesterday ago I've described how you can use the ERM functionality together with an EEM applet to generate SNMP traps whenever the CPU load exceeds predefined thresholds. When testing this solution, I started to wonder what the snmp-server enable traps cpu threshold command does. After lenghty conversation with uncle Google and Cisco documentation, I found that there's another way to detect and report high CPU load in Cisco IOS: the CPU threshold notification introduced in IOS release 12.3T (and Tassos pointed that out before I had the time to write a post about it :).To use this feature, you have to configure the thresholds with the process cpu threshold configuration command and enable related SNMP traps with the snmp-server enable traps cpu threshold. For example, to send SNMP traps whenever the total CPU load measured over a 30-second interval exceeds 40%, use the following configuration:
snmp-server enable traps cpu threshold
process cpu threshold type total rising 40 interval 30

Please read our Blog Commenting Policy before writing a comment.


  1. And you can use the prehistoric "rmon" feature also :-)

  2. I though that one went the same way as Banyan Vines :)) Seriously, I've never ever used it in my life.

  3. Yap Chin Hoong26 May, 2011 05:24

    hi Ivan, RMON can do magic. :-)

    Below is excerpted from OReilly - Cisco IOS Cookbook 2nd Edition.
    "IOS includes some extremely helpful but seldom-used remote monitoring (RMON) functionality."

  4. How about Cisco Nexus 5K? Is there a similar command?


Constructive courteous comments are most welcome. Anonymous trolling will be removed with prejudice.