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

How to continuously reboot a router until condition clears?

Hi,

   We have an issue where certain carrier conditions appear to require a reboot (or a reset of the interface) to bring the device back online.

We have tested the following script and it works OK (we can also modify this to reset the interface, rather than the more drastic reboot, but the same problem will remain as explained later)

ip sla 1

icmp-echo 1.1.1.1

frequency 10

!

ip sla schedule 1 life forever start-time after 00:10:00

track 100 ip sla 1 reachability

delay down 180

!

event manager applet Missed_3_pings

event track 100 state down

action 10 reload

So - ping an ip address every 10 seconds and if it remains un-pingable for 180s conecutively reload the router.

This works fine, except that after the router reboots, the fact that the tracked object was already down is remembered, and thus no new event is generated if the address is still un-pingable.

So my question is - is there any way to ignore the fact that that the object is already down and just restart the delay counter again once the scheduler starts?

Thanks,

           Alex.

Everyone's tags (2)
1 REPLY
Cisco Employee

How to continuously reboot a router until condition clears?

Try adding:

default-state up

Under the track configuration.  This will force the object to be up by default, thus triggering a transition if it is then found to be down.

439
Views
0
Helpful
1
Replies