09-17-2013 10:10 AM
Hello, I am trying to have a simple EEM script triggered when a CPU spike is detected on the device... I have tried several combinations but here is where I stand.
router#show run | sec resource
resource policy
policy HIGHCPU global
system
cpu interrupt
critical rising 10
cpu process
critical rising 10
!
!
!
event resource policy "HIGHCPU"
router#show run | sec event
event manager session cli username "jsimon"
event manager applet HIGHCPU-ERM authorization bypass
event resource policy "HIGHCPU"
action 1.0 cli command "enable"
action 2.0 cli command "show proc cpu sorted 1min | ex 0.00"
action 3.0 syslog priority errors msg "$_cli_result"
I originally had critical rising 10 interum 10, but I can't get the script to trigger. I passed enough traffic to have the CPU spike from 4% to 45% and the script did not trigger. Anyone have any ideas what the problem could be?
Thanks,
Jeff
Solved! Go to Solution.
09-17-2013 10:16 AM
09-17-2013 10:16 AM
Add:
resource policy
user global HIGHCPU
09-17-2013 10:33 AM
By far the fastest fix I have ever had. Thank you ver much!
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