08-06-2013 07:47 AM
Hello Community,
Can someone please explain in plain English what the two snmp oid's alert for in the following EEM Script?
I know they're CPU alerts but I don't understand the syntax
! Cisco process MIB Object name: cpmCPUTotal1min
event snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.4 get-type next entry-op gt entry-val 80 poll-interval 15
! Cisco process MIB Object name: cpmCPUTotal5min
event snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.8 get-type next entry-op gt entry-val 80 poll-interval 15
action 0.0 syslog msg "High CPU DETECTED. Please wait - logging Information to flash:high_cpu.txt"
action 0.1 cli command "enable"
action 0.2 cli command "term exec prompt timestamp"
action 0.3 cli command "term len 0"
! redirects the command to flash:/bootflash:/disk0: etc
action 1.2 cli command "show process cpu sorted 5min | redirect flash:high_cpu.txt"
! action 1.2 cli command "show process cpu sorted 1min | redirect flash:high_cpu.txt"
action 1.3 cli command "show buffer input-interface GigabitEthernet0/1 dump | redirect flash:high_cpu.txt"
action 1.4 cli command "show cef not | redirect flash:high_cpu.txt"
action 1.5 cli command "show buffer | redirect flash:high_cpu.txt"
action 1.6 cli command "show ip traffic | redirect flash:high_cpu.txt"
Also, can you recommend any other cpu alerts?
Cheers
Carlton
Solved! Go to Solution.
08-07-2013 02:56 PM
The first object is the overall CPU busy percentage in the last 1 minute period. The second is the same over a 5 minute period. This is exactly the same as you'd see in the show proc cpu (for the respective period).
Note: each one of your redirect commands in this applet overwrite the data from the one before it. Essentially, the only thing that will be in your file is the output of "show ip traffic".
08-07-2013 02:56 PM
The first object is the overall CPU busy percentage in the last 1 minute period. The second is the same over a 5 minute period. This is exactly the same as you'd see in the show proc cpu (for the respective period).
Note: each one of your redirect commands in this applet overwrite the data from the one before it. Essentially, the only thing that will be in your file is the output of "show ip traffic".
08-07-2013 03:48 PM
Thanks Joseph
Sent from Cisco Technical Support iPad App
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide