11-24-2020 06:53 AM
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
Solved! Go to Solution.
11-24-2020 07:14 AM
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.
11-24-2020 07:14 AM
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.
11-24-2020 07:32 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide