cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1696
Views
0
Helpful
1
Replies

Script for Reloading, tracking and delay

cihanogeturk
Level 1
Level 1

000013: *Jun 24 10:28:14.875 ACST: %TRACK-6-STATE: 1 ip sla 1 reachability Down -> Up

000032: *Jun 24 10:28:22.103 ACST: %SYS-5-RESTART: System restarted --

000042: *Jun 24 10:28:30.799 ACST:  Restart DialerWatchInitialTimer for 200 seconds

000044: *Jun 24 10:28:51.322 ACST: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

000045: *Jun 24 10:30:14.168 ACST: %CISCO800-2-MODEM_UP: Cellular0 modem is now UP.

000048: *Jun 24 10:31:00.459 ACST: %SYS-6-BOOTTIME: Time taken to reboot after reload =  323 seconds

000049: *Jun 24 10:31:19.483 ACST: %TRACK-6-STATE: 1 ip sla 1 reachability Up -> Down

000050: *Jun 24 10:31:52.794 ACST: %LINK-3-UPDOWN: Interface Cellular0, changed state to up

000051: *Jun 24 10:31:53.794 ACST: %LINEPROTO-5-UPDOWN: Line protocol on Interface Cellular0, changed state to up

000052: *Jun 24 10:32:00.638 ACST: %TRACK-6-STATE: 1 ip sla 1 reachability Down -> Up

447

event manager applet PING

448

 event track 1 state down maxrun 300

449

 action 01  wait 180

450

 action 011 syslog msg "No connection found. System reloading"

451

 action 02  reload

452

 action 03  exit

 

track 1 ip sla 1 reachability

default-state up

delay down 180

ip sla 1
icmp-echo 8.8.8.8
frequency 5
ip sla schedule 1 life forever start-time now
ip sla reaction-configuration 1 react timeout threshold-type immediate action-type trapAndTrigger
ip sla enable reaction-alerts

Hello,

As you can see within the logs, 

10:28:14.875 ACST: %TRACK-6-STATE: 1 ip sla 1 reachability Down -> Up

10:31:19.483 ACST: %TRACK-6-STATE: 1 ip sla 1 reachability Up -> Down

I need only 5 more seconds before delay counter for track hits zero. Unfortunately I can only configure it up to 180 seconds. This limitation doesn't prevent my router from chain rebooting because there is not enough time.

Do you have any suggestions about this?  

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

See How To Introduce Large Delays In EEM Policies as an example of how to do exactly what you want.

Review Cisco Networking for a $25 gift card