Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

event manager script not working as expected

On a Cisco 4900M running Version 12.2(53)SG1, trying to capture certain information requested by Cisco TAC to troubleshoot periodic high cpu usage on the device causing it to momentarily not respond to HSRP packets from the HSRP partner.

This is the script in place today:

event manager applet capture_cpu_spike

event snmp oid 1.3.6.1.4.1.9.2.1.56 get-type next entry-op ge entry-val "80" exit-time 10 poll-interval 1

action 1.0 syslog msg "CPU Utilization is high"

action 2.0 cli command "en"

action 3.0 cli command "show proc cpu sort | redirect bootflash:cpuinfo1.txt"

action 3.1 cli command "show int summ | redirect bootflash:cpuinfo2.txt"

action 3.2 cli command "show proc cpu sort | redirect bootflash:cpuinfo3.txt"

action 3.3 cli command "show int summ | redirect bootflash:cpuinfo4.txt"

action 3.4 cli command "show platform cpu packet statistics | redirect bootflash:cpuinfo5.txt"

action 3.5 cli command "show platform health | redirect bootflash:cpuinfo6.txt"

action 4.0 cli command "end"

!

Problem is, when the cpu does spike, only action 3.1 is executed.

How do I modify this script to run all the commands listed?

TIA

dom

326
Views
0
Helpful
0
Replies
CreatePlease to create content