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

EEM /SNMP Explanation

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

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

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".

View solution in original post

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

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".

Thanks Joseph

Sent from Cisco Technical Support iPad App

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: