07-22-2019 06:49 PM
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 :(
Solved! Go to Solution.
07-22-2019 06:58 PM
since there is no if, action 3.0 else will not work
here is the example for if
https://sites.google.com/site/eemmusings/actions/if-statement-syntax
07-22-2019 06:58 PM
since there is no if, action 3.0 else will not work
here is the example for if
https://sites.google.com/site/eemmusings/actions/if-statement-syntax
07-22-2019 07:42 PM
thanks for the reply!!!
it helped me alot! :D
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