Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

EEM Script works perfect but shows as abort in history

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

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: EEM Script works perfect but shows as abort in history

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.

3 REPLIES
Cisco Employee

Re: EEM Script works perfect but shows as abort in history

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.

New Member

Re: EEM Script works perfect but shows as abort in history

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

Cisco Employee

Re: EEM Script works perfect but shows as abort in history

You need to add a higher maxrun time to your rest applet only.
489
Views
1
Helpful
3
Replies
CreatePlease login to create content