Object tracking EEM applet repeat trigger

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2016 02:10 PM
Hi guys I have configured EEM to track an object based on IP SLA. It basically resets my 4g interface if my SLA goes down. It works perfect but only initiates one time when the triggered condition is met. What I would like to know is if there is any way to make if the triggered condition is still down let the applet run every ten minutes as long as the IP SLA is down. Below is the applet.
event manager applet Reload_4G_Module
event track 1 state down
action 1.0 cli command "enable"
action 1.1 cli command "configure terminal"
action 1.2 cli command "service internal"
action 1.3 cli command "end"
action 2.0 cli command "test cellular 0 modem-power-cycle"
action 3.1 cli command "configure terminal"
action 3.2 cli command "no service internal"
action 3.3 cli command "end"
action 4.0 syslog msg "Cellular0 module has been rebooted."
- Labels:
-
EEM Scripting

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2016 12:04 AM
Have a look at How To Introduce Large Delays In EEM Policies . Essentially, you'll need to have this applet install another applet with a watchdog timer to periodically do the reset until the tracked object transitions to up. Then a third, up applet will run to remove the nested timer applet.
