08-11-2019 10:26 PM
Can someone have a review if this is going to work or not?
I want the EEM script to kick in once the router can no longer ping the IP address.
ip sla 11 icmp-echo 8.8.8.8 frequency 15 ip sla schedule 11 life forever start now ip sla enable reaction-alerts ip sla reaction-configuration 11 react timeout action-type trapOnly threshold-type consecutive 4 event manager applet reset_Cell_port event ipsla operation-id 11 reaction-type timeout action 1.1 cli command "enable" action 1.2 cli command "config t" action 1.3 cli command "interface Cellular0/2/0" action 1.4 cli command "shutdown" action 2.1 cli command "interface Cellular0/2/0" action 2.2 cli command "no shutdown" action 3.1 cli end
Ideally, I want to a 10-second delay once the ping drops before the EEM script kicks in.
Thanks in advance.
08-12-2019 03:16 AM
08-12-2019 03:28 AM
08-14-2019 06:28 AM
Looking at your config, the timeout for a ping is 5 seconds. You will run the probe every 15 seconds. Your timeout requirement is that four consecutive pings fail. So, after one minute of your host being unreachable, the applet will fire. If you want an additional 10 second delay, then you can add:
action 1.0 wait 10
To your applet and increase its maxrun to 30 seconds.
08-17-2019 07:48 PM
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