Building network automation solutions

9 module online course

Start now!

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


  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. 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?
Add comment