cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
804
Views
5
Helpful
2
Replies
rmckerrall1
Beginner

EEM For Monitoring 2 Interfaces

Hello,

Is it possible to monitor 2 gig interfaces with event manager?

I want to be able to run the event manager script if BOTH interfaces become administratively down. I can only make it work if one is down at the moment.

 

 

Below is my current config, I would like to track Gig0/0/1 as well.

 

track 1 interface Gig 0/0/0 line-protocol
delay down 20 up 30

event manager applet Link-Down authorization bypass
event track 1 state down
action 1.0 syslog msg “Reply timed out; Link is down”
action 2.0 cli command “enable”
action 3.0 cli command “conf t”
action 4.0 cli command “interface Serial0/1/0:23”
action 4.1 cli command “shut”
action 4.2 cli command “interface Serial0/1/1:23"
action 4.3 cli command “shut”
action 4.4 cli command “interface Serial0/1/2:23”
action 4.5 cli command “shut”
action 4.6 cli command “interface Serial0/1/3:23”
action 4.7 cli command “shut”
action 5.0 cli command “end”
action 6.0 syslog msg “Interface Loopback 0 shutdown”

event manager applet Link-Up authorization bypass
event track 1 state up
action 1.0 syslog msg “Reply timed out; Link is up
” action 2.0 cli command “enable”
action 3.0 cli command “conf t”
action 4.0 cli command “interface Serial0/1/0:23”
action 4.1 cli command “no shut”
action 4.2 cli command “interface Serial0/1/1:23”
action 4.3 cli command “no shut”
action 4.4 cli command “interface Serial0/1/2:23”
action 4.5 cli command “no shut”
action 4.6 cli command “interface Serial0/1/3:23”
action 4.7 cli command “no shut”
action 5.0 cli command “end”
action 6.0 syslog msg “Interface Loopback 0 enabled”
! end

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
balaji.bandi
VIP Expert

yes you can track both the interface and take action : below example related to Tunnel, but give you an idea how you can achieve with same.

 

https://community.cisco.com/t5/network-management/eem-applet-trigger-when-defined-interfaces-are-up-down/td-p/3378493



BB


*** Rate All Helpful Responses ***

View solution in original post

2 REPLIES 2
balaji.bandi
VIP Expert

yes you can track both the interface and take action : below example related to Tunnel, but give you an idea how you can achieve with same.

 

https://community.cisco.com/t5/network-management/eem-applet-trigger-when-defined-interfaces-are-up-down/td-p/3378493



BB


*** Rate All Helpful Responses ***

View solution in original post

fsebera
Enthusiast

I'm new at EEM scripting however, it appears you need another track command to track the other interface. 

 

track 1 interface Gig 0/0/0 line-protocol

track 2 interface Gig 0/0/1 line-protocol

 

Hope this works

Frank

Content for Community-Ad