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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

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
Cisco Employee

EEM /SNMP Explanation

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

2 REPLIES
Cisco Employee

EEM /SNMP Explanation

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

New Member

Re: EEM /SNMP Explanation

Thanks Joseph

Sent from Cisco Technical Support iPad App

465
Views
0
Helpful
2
Replies