cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1693
Views
0
Helpful
4
Replies

Automatic reboot

piotr_nowak
Level 1
Level 1

Hi,

Is there any possibility to automatically reload router after connection has been lost?

For ex.:

router is sending pings in 10 min intervals, when it doesn't get response, it automatically reload.

4 Replies 4

hobbe
Level 7
Level 7

Yes you can do that.

But if you are thinking of problems when you configure the router, you might want to check in the scheduled reload command instead.

I can not take credit for this but here is a link to one way to do it.

http://blog.ioshints.info/2007/04/reload-router-when-ping-fails.html

I would guess that you can do a lot more with Tcl scripting and fx the RTR command

http://www.cisco.com/en/US/docs/ios/12_3t/12_3t2/feature/guide/gt_tcl.html

I think it would be a good advice to implement some sort of counter so that the router does not start to reload just couse someone else has a problem ie your webserver at main goes down and your router measures against that and starts to reload every 2 minutes so that you loose all communication with the branch office.

This thing has a real potential to come back and bite you in the behind.

Thanks for the answer.

I need it because this is the only solution I have found for my other problem posted here:

https://supportforums.cisco.com/message/3283854#3283854

Basicly, the connection with GPRS is lost, but router doesn't know about it, so it cannot dial in once again, only router reboot works.

I can not take credit for this but here is a link to one way to do i

http://blog.ioshints.info/2007/04/reload-router-when-ping-fails.html

I am using IOS Version 12.4(22)T (C2801-IPBASEK9-M) and I'am nearly sure that it doesn't have EEM.

I would guess that you can do a lot more with Tcl scripting and fx the RTR command

http://www.cisco.com/en/US/docs/ios/12_3t/12_3t2/feature/guide/gt_tcl.html

My tcl knowledge is equal to 0, but I have looked into the internet and found no scripts that can be started after a reboot, but I may be wrong.

The problem is that this GPRS connection is the only one WAN, and when it stops to work, there is no way to put it up again.

Hi,

Maybe you can use SNMP trap to let you know when the connection is lost or syslog if you prefer and then via SNMP you can reboot the router.

Regards.

Alain.

Don't forget to rate helpful posts.

do you think this will keep the router in a reload loop?