RE: EEM

From: Ryan West <rwest_at_zyedge.com>
Date: Sat, 16 Jan 2010 20:05:41 +0000

Divin,

Which part doesn't work? If you're trying to send an email, have you set an SMTP server?

-ryan

> -----Original Message-----
> From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf Of
> Divin Mathew John
> Sent: Saturday, January 16, 2010 2:17 PM
> To: Cisco certification
> Subject: EEM
>
> 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=22D30B42529F
> 604C48ADCBA3928C2882.node0
> .
> It doesnt seem to work? any ideas?
> --
>
> Sent from Bangalore, KA, India
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html

Blogs and organic groups at http://www.ccie.net
Received on Sat Jan 16 2010 - 20:05:41 ART

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