cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2214
Views
1
Helpful
3
Replies

EEM Script works perfect but shows as abort in history

tech_king
Level 1
Level 1

I have a EEM script that reboots a cellular interface after 10 mins of downtime but it runs inside another EEM Script. For some reason when it runs it shows as abort.  Can someone help me to fix my script so it can run successfully? below are the script and the history.

event manager environment q "
event manager applet track-down
event track 1 state down
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "event manager applet reset-modem"
action 4.0 cli command "event timer watchdog time 600"
action 5.0 cli command "action 1.0 cli command enable"
action 6.0 cli command "action 2.0 cli command $q test cellular 0 modem-power-cycle$q"
action 7.0 cli command "end"
event manager applet track-up
event track 1 state up
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "no event manager applet reset-modem"
action 4.0 cli command "end"

 5 51 Actv success Thu Aug17 09:59:24 2017 track applet: track-up
6 53 Actv success Thu Aug17 10:09:20 2017 track applet: track-down
7 52 Actv abort Thu Aug17 10:09:09 2017 timer watchdog applet: reset-modem

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

The nested applet likely takes longer than 20 seconds to run (meaning you need to increase the maxrun time).  How long to increase will depend on how much time it needs.

View solution in original post

3 Replies 3

Joe Clarke
Cisco Employee
Cisco Employee

The nested applet likely takes longer than 20 seconds to run (meaning you need to increase the maxrun time).  How long to increase will depend on how much time it needs.

Would I need to include the time for the watchdog timer?

You need to add a higher maxrun time to your rest applet only.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco