Re: OT: EEM with Applet Policy

From: Stephen Okoye <tosco12_at_yahoo.co.uk>
Date: Sat, 8 Jan 2011 16:14:29 +0000

Hi,

Your script is ok but it looks as if you are not capturing the entire message. I think you will have to start from "%LINEPROTO-5-UPDOWN...." all the way to the end

Sent from my BlackBerry wireless device from MTN

-----Original Message-----
From: Bilal Hansrod <bilal.hansrod_at_gmail.com>
Sender: nobody_at_groupstudy.com
Date: Sun, 9 Jan 2011 02:52:17
To: Cisco certification<ccielab_at_groupstudy.com>
Reply-To: Bilal Hansrod <bilal.hansrod_at_gmail.com>
Subject: OT: EEM with Applet Policy

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 Sat Jan 08 2011 - 16:14:29 ART

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