08-14-2018 12:11 PM
I have an EEM script that is triggered by interface down event. However, I found out that the event is triggered also when I issue the router reloads. There is no point running the script if reload is in progress. What is the best practice to detect the reload is in progress?
08-14-2018 12:33 PM
Post the EEM Script and Event to check
08-14-2018 02:14 PM
event manager applet myapplet
event tag 1 track 10 state down
event tag 2 counter name tunnel1down entry-val 1 entry-op ge exit-val 1 exit-op ge
event tag 3 timer cron cron-entry "@reboot"
trigger
correlate event 1 or event 2 or event 3
action 1 track read 10
action 2 counter name "tunnel1down" op set value 0
action 3 if $_track_state eq "down"
action 4 puts "Do something!"
action 5 wait 10
action 6 counter name "tunnel1down" op inc value 1
action 8 end
I think I would need an additional check in action 3 to make sure router is not in a "winding down" state. What is a good check?
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