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 22.214.171.124 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.
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.