cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2615
Views
5
Helpful
2
Replies

Configuring EEM to track down interface status

nellkoni
Level 1
Level 1

Hello everyone,

 

I was studying EEM recently and I faced a problem

 

I know it's possible to configure multiple event on EEM.

But was wondering down below is possible as well.

 

What I am trying to configure is "Tracking down Interface's Up/Down"

 

When the certain interface goes up or down, EEM triggers the syslog msg whether the interface is up or down.

 

Commands I have been working.

 

track 1 interface FastEthernet0/1 line-protocol

 

event manager applet TEST

 event syslog pattern "%TRACKING-5-STATE: 1"

 action 1.0 syslog msg "INTERFACE EVENT OCCUR"

 action 2.0 track read 1

 action 2.1 regexp "%TRACKING-5-STATE: 1" "Up->Down"

 action 2.2 syslog msg "INTERFACE DOWN"

 action 3.0 else

 action 4.0 track read 1

 action 4.1 regexp "%TRACKING-5-STATE: 1" "Down->UP

 action 4.2 syslog msg "INTERFACE UP

 

I think I got the whole concept of EEM wrong but I was trying to figure it out.

I spent hours and hours and yet it's not working :(

 

1 Accepted Solution

Accepted Solutions

balaji.bandi
Hall of Fame
Hall of Fame

since there is no ifaction 3.0 else will not work

 

here is the example for if

 

https://sites.google.com/site/eemmusings/actions/if-statement-syntax

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

2 Replies 2

balaji.bandi
Hall of Fame
Hall of Fame

since there is no ifaction 3.0 else will not work

 

here is the example for if

 

https://sites.google.com/site/eemmusings/actions/if-statement-syntax

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

thanks for the reply!!!

it helped me alot! :D