Good evening everyone,
Today a colleague of mine asked if I had a ready-to-use template to schedule a reload of Cisco IOS router .
– “Of course, piece of cake, there should be millions of hits on it in Google” , was my thought. So, after 30 minutes of searching the mighty Google and being surprised to have found nothing I dragged from my notes this recipe dated 2007 but still valid as ever.
NB Word of warning to those trying to do it with built in KRON service of IOS – rebooting a router requires to answer “yes” at the CLI prompt and therefore will NOT work with KRON, only Embedded Event Manager (EEM) can do it.
Cisco IOS used and tested – IOS 12.4T
Cisco-rtr(config)#event manager applet ReloadMe
Cisco-rtr(config-applet)#event timer cron name ReloadMe cron-entry “05 09 * * *”
Cisco-rtr(config-applet)#action 33 reload
This will reload router every day at 09:05, for other formats see man page for cron in Linux
event manager applet ReloadMe
event timer cron name ReloadMe cron-entry “05 09 * * *”
action 33 reload