02-03-2011 02:18 AM - edited 03-04-2019 11:17 AM
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.
02-03-2011 02:37 AM
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.
02-03-2011 05:34 AM
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.
02-03-2011 06:32 AM
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.
05-23-2023 03:27 PM
do you think this will keep the router in a reload loop?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide