02-06-2014 11:42 PM - edited 03-07-2019 06:04 PM
Hello,
Is it possible to have a router schedule itself to reload every night or once a week?
We have some Cisco 3g wireless routers in remote locations and if we lose connectivity we have to get someone to power cycle the router to get the 3g working again.
I have added an SLA script to the router that pings Google and if it can't it will do a test on the cellular modem which will power cycle that part of the router only which may help.
With a local schedule reload on top of the SLA I'm sure it will be much more reliable. I have a schedule tool that can do remote reloads but if the router is down then we are stuck and home the SLA works.
Thanks
02-07-2014 12:10 PM
Hello
cheers for the verification John
Andy FYI - I posted a weekly emm applet and just noticed you are querying a daily one = @daily
Res
Paul
Sent from Cisco Technical Support iPad App
02-08-2014 12:10 AM
Hi,
Did I do something wronf as this example didn't reload the router at 5am, event though it said it did, the show version confirmed this withthe uptime:
event manager applet ReloadRouter
event timer cron cron-entry "0 5 * * *"
action 1.0 cli command "wr"
action 2.0 cli command "reload"
(config-applet)#do sh event mana hist event
No. Job Id Proc Status Time of Event Event Type Name
1 1 Actv success Sat Feb 8 05:00:00 2014 timer cron applet: ReloadRouter
2 2 Actv success Sat Feb 8 06:00:15 2014 track applet: cell_reset
Any ideas?
02-08-2014 01:59 AM
Hello
In your EMM applet - action 2.0 cli command reload
Try this instead and maybe add a day of the week also if applicable to you.
action 2.0 reload
Event manager applet reload
event timer cron cron-entry "0 5 * *6"
action 1.1 cli command "enable"
action 1.2 cli command "wr"
action 1.3 reload
Res
Paul
Sent from Cisco Technical Support iPad App
02-09-2014 02:33 PM
Hello,
If I add a day of the week (6) it wouldn't be a daily reboot, or would I need to add each day as a separate action?
02-09-2014 06:49 PM
Andy,
You would need to add 0-6 for a daily reboot. Adding only 6 will reboot it only on Saturday.
HTH,
John
*** Please rate all useful posts ***
02-10-2014 06:42 AM
something like this?
Event manager applet reload
event timer cron cron-entry "45 14 * * 0-6"
action 1.1 cli command "enable"
action 1.2 cli command "wr"
action 1.3 reload
seemed it aborted:
4 4 Actv abort Mon Feb10 14:45:00 2014 timer cron applet: ReloadRouter
Message was edited by: Andy White
02-10-2014 06:57 AM
Yes, if you're wanting to reload every day at 2:45PM.
Again, if you're doing this in GNS, GNS will not show you a reload. You'd be better off testing another command like shutting down a loopback interface where you'll get some feedback to the console.
HTH,
John
*** Please rate all useful posts ***
02-10-2014 07:38 AM
Hi,
This test seemed to work
event manager applet DailyReload
event timer cron cron-entry "0 5 * * *"
action 1.0 reload
02-11-2014 02:01 AM
For what ever reason this worked:
event manager applet DailyReload
event timer cron cron-entry "0 5 * * *"
action 1.0 reload
But if I use the "cli command" it is ignored.
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