Hello
Please help me to identify why the bellow script aborts, ,which is meant for power-cycling my router modem to get away from cellular interface going into dormant state even after getting a decent signal.
Config & logs:
.Mar 29 21:25:00.005: %HA_EM-6-LOG: PERIODIC : DEBUG(cli_lib) : : CTL : cli_open called.
.Mar 29 21:25:00.009: %HA_EM-6-LOG: PERIODIC : DEBUG(cli_lib) : : OUT : m-quest-nsw-eastlakes-r02>
.Mar 29 21:25:00.009: %HA_EM-6-LOG: PERIODIC : DEBUG(cli_lib) : : IN : m-quest-nsw-eastlakes-r02>en
.Mar 29 21:25:20.020: %HA_EM-6-LOG: PERIODIC : DEBUG(cli_lib) : : CTL : cli_close called.
.Mar 29 21:25:22.008: tty is now going through its death sequence
m-quest-nsw-eastlakes-r02#sh event manager history event
No. Job Id Proc Status Time of Event Event Type Name
1 1789 Actv abort Tue Mar29 20:30:00 2016 timer cron applet: PERIODIC
2 1790 Actv abort Tue Mar29 20:35:00 2016 timer cron applet: PERIODIC
3 1791 Actv abort Tue Mar29 20:40:00 2016 timer cron applet: PERIODIC
4 1792 Actv abort Tue Mar29 20:55:00 2016 timer cron applet: PERIODIC
5 1793 Actv abort Tue Mar29 21:00:00 2016 timer cron applet: PERIODIC
6 1794 Actv abort Tue Mar29 21:05:00 2016 timer cron applet: PERIODIC
7 1795 Actv abort Tue Mar29 21:09:59 2016 timer cron applet: PERIODIC
8 1796 Actv abort Tue Mar29 21:15:00 2016 timer cron applet: PERIODIC
9 1797 Actv abort Tue Mar29 21:19:59 2016 timer cron applet: PERIODIC
10 1798 Actv abort Tue Mar29 21:25:00 2016 timer cron applet: PERIODIC
m-quest-nsw-eastlakes-r02#sh run | s applet
event manager applet PERIODIC
event timer cron name PERIODIC cron-entry "*/5 * * * *"
action 1.0 cli command "en"
action 2.0 cli command "show track 1 | inc State is"
action 2.1 regexp ".*(State.*)\r\n.*" "$_cli_result" _match _sub1
action 3.0 if $_sub1 eq "State is Down" goto 4.0
action 3.1 if $_sub1 eq "State is Up" goto 5.0
action 4.0 cli command "enable"
action 4.1 cli command "config t"
action 4.2 cli command "service internal"
action 4.3 cli command "end"
action 4.4 cli command "test cellular 0 modem-power-cycle"
action 4.5 cli command "config t"
action 4.6 cli command "no service internal"
action 4.7 cli command "end"
action 5.0 cli command "exit"
m-quest-nsw-eastlakes-r02#sh run | s track
track 1 ip sla 1
delay down 10
action 2.0 cli command "show track 1 | inc State is"
m-quest-nsw-eastlakes-r02#sh run | s ip sla
track 1 ip sla 1
delay down 10
ip sla auto discovery
ip sla 1
icmp-echo 10.151.134.2 source-interface Loopback0
request-data-size 100
frequency 120
ip sla schedule 1 life forever start-time now
m-quest-nsw-eastlakes-r02#