EEM

From: Divin Mathew John <divinjohn_at_gmail.com>
Date: Sun, 17 Jan 2010 00:47:29 +0530

event manager applet dump-procs
 event syslog pattern "CPURISINGTHRESHOLD"
 action 001 cli command "enable"
 action 002 cli command "show proc cpu sorted 5min"
 action 003 set lines 0
 action 004 foreach line "$_cli_result" "\n"
 action 005 if $lines gt 6
 action 006 break
 action 007 end
 action 008 append output $line
 action 009 increment lines
 action 010 end
 action 011 mail to user_at_company.com from user_at_company.com server
10.1.1.1 subject "Top five processes" body "$output"
 action 012 syslog msg "Top five processes: $output"

I got this code from
https://supportforums.cisco.com/message/2011660;jsessionid=22D30B42529F604C48ADCBA3928C2882.node0
.
It doesnt seem to work? any ideas?

-- 
Sent from Bangalore, KA, India
Blogs and organic groups at http://www.ccie.net
Received on Sun Jan 17 2010 - 00:47:29 ART

This archive was generated by hypermail 2.2.0 : Thu Feb 04 2010 - 20:28:41 ART