RE: EEM query

From: Joseph L. Brunner <joe_at_affirmedsystems.com>
Date: Fri, 24 Aug 2012 17:18:58 +0000

Best way to do - on EEM 3+

voip-rtr-1#show event manager version
Embedded Event Manager Version 3.00

Use a tracked object to track 2 or more other tracked objects! - (we stopped using the "event syslog pattern" in production years ago)

track 10 interface FastEthernet0/0 line-protocol
track 20 interface FastEthernet0/1 line-protocol
track 50 list boolean and
 object 10
 object 20

event manager applet bothinterfacesDown
 event track 50 state down

see where this is going...

(add you "actions" below the "event track 50 state down")

-----Original Message-----
From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf Of GAURAV MADAN
Sent: Friday, August 24, 2012 12:43 PM
To: Cisco certification
Subject: EEM query

Hi Friends

I am not a great user of EEM .. just wanted a basic query to be answered

My req says that if g0/0 and g0/1 is down .. then do something ( like install a static route pointing to null 0)

If I go in lines of :

ROUTER(config)#event manager applet ABCD

ROUTER(config-applet)# event syslog pattern "Interface GigabitEthernet0/0, changed state to down"

ROUTER(config-applet)# action 1.0 cli command "enable"

ROUTER(config-applet)# action 1.1 cli command "configure term"

ROUTER(config-applet)# action 1.2 cli command "interface g0/1"

ROUTER(config-applet)# action 1.3 cli command "no shut"

My question is how will i do for both of g0/0 and g0/1 .. How do i make sure that action is performed when both interfaces are down

Any response is appreciated

Thnx
Gaurav Madan

Blogs and organic groups at http://www.ccie.net
Received on Fri Aug 24 2012 - 17:18:58 ART

This archive was generated by hypermail 2.2.0 : Sat Sep 01 2012 - 08:41:18 ART