cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
858
Views
0
Helpful
2
Replies

issue with high-cpu eem script on Cat6500

lukaszkhalil
Level 1
Level 1

Hi

 

I am trying to catch the cause of the high cpu on my cat6500. I run the following eem script which should collect the required information in case of issue

 

event manager applet High_CPU
 event snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 get-type exact entry-op gt entry-val "70" exit-op lt exit-val "10" poll-interval 1
 action 0.0 syslog msg "High CPU DETECTED. Please wait - logging Information to disk0:high_cpu.txt"
 action 0.1 cli command "enable"
 action 0.2 cli command "term exec prompt timestamp"
 action 1.2 cli command "show process cpu sorted | redirect file disk0::high_cpu_1.txt"
 action 1.3 cli command "show process cpu sorted | append file disk0::high_cpu.txt"
 action 1.4 cli command "show process cpu sorted | append file disk0:high_cpu.txt"
 action 1.5 cli command "debug netdr cap rx | append disk0:high_cpu.txt"
 action 1.6 cli command "show netdr cap | append disk0:high_cpu.txt"
 action 1.7 cli command "undebug all"

 

Because I have read that there may be some issue with appending data to a file I use both append (file already created on a switch) and redirect options.

 

Unfortunately nothing is being saved to a file.

 

I can see the following logs

 

show event manager history events detailed
No.  Job Id      Status   Time of Event             Event Type          Name
1    186         success  Sat Dec29  10:44:59 2018  snmp                applet: High_CPU
   val 89 delta_val 88 oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 exit_event FALSE
2    187         success  Sun Dec30  10:44:59 2018  snmp                applet: High_CPU
   val 93 delta_val 92 oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 exit_event FALSE
3    188         success  Sun Dec30  22:44:14 2018  snmp                applet: High_CPU
   val 73 delta_val 72 oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 exit_event FALSE
4    189         success  Mon Dec31  07:30:35 2018  snmp                applet: High_CPU
   val 78 delta_val 77 oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 exit_event FALSE
5    190         success  Mon Dec31  10:45:01 2018  snmp                applet: High_CPU
   val 99 delta_val 98 oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 exit_event FALSE
6    191         success  Tue Jan 1  10:45:00 2019  snmp                applet: High_CPU
   val 99 delta_val 98 oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 exit_event FALSE
7    192         success  Wed Jan 2  10:45:02 2019  snmp                applet: High_CPU
   val 99 delta_val 98 oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 exit_event FALSE
8    193         success  Thu Jan 3  10:45:03 2019  snmp                applet: High_CPU
   val 99 delta_val 98 oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 exit_event FALSE
9    194         success  Fri Jan 4  10:44:59 2019  snmp                applet: High_CPU
   val 85 delta_val 84 oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 exit_event FALSE
10   195         success  Sat Jan 5  10:45:06 2019  snmp                applet: High_CPU
   val 97 delta_val 96 oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 exit_event FALSE

 

Does anybody know where the issue is and how can I correct it?

 

Thanks in advance

 

Regards

Lukas

 

2 Replies 2

balaji.bandi
Hall of Fame
Hall of Fame

what is the IOS code running here ? can you post the configuration or how is your logging setup ?

 

please look the below document how you can get the right information :

 

https://www.cisco.com/c/en/us/support/docs/switches/catalyst-6500-series-switches/116141-trouble-eem-scripts-00.html

 

Good thread

 

https://community.cisco.com/t5/network-management/eem-script-for-high-cpu-utilization-problem/td-p/1588984

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

I am using 122-33.SXJ8.

 

My script based on the examples from the site you mentioned,