OT: EEM with Applet Policy

From: Bilal Hansrod <bilal.hansrod_at_gmail.com>
Date: Sun, 9 Jan 2011 02:52:17 +1100

I am very new to EEM scripting and just read few examples on internet and
came with below scripts. It seems the script works sometimes. I want to trap
line protocol message for specific interface and shutdown another interface
permanently. The script as below, Can someone please advise me if I have
missed something. Out of 5-6 tests, I was successful twice! I am using this
script on GNS3 (heads up).

event manager applet TEST
 event syslog pattern "Line protocol on Interface FastEthernet0/0, changed
state to down"
 action 1.0 cli command "enable"
 action 1.1 cli command "configure term"
 action 1.2 cli command "interface FastEthernet0/1"
 action 1.3 cli command "shutdown"

Any suggestions.

Regards,

Bilal Hansrod

Blogs and organic groups at http://www.ccie.net
Received on Sun Jan 09 2011 - 02:52:17 ART

This archive was generated by hypermail 2.2.0 : Tue Feb 01 2011 - 07:39:17 ART