07-20-2016 03:12 AM
I'm trying to create a script to run on NX-OS 7k for a timed rollback (timed reload is not an option).
The idea is that if I lose remote connectivity, the timed rollback applet will execute and restore the previous good config.
Here's what I have, which does not work:
event manager applet Timed-Rollback
action 0.5 cli command "event timer countdown time 600"
action 1.0 cli command "rollback running-config checkpoint GOOD-CONFIG best-effort"
exit
Any ideas on how to configure this?
07-20-2016 05:23 AM
What version of NX-OS is this?
07-20-2016 05:38 AM
We are using 7.2
07-20-2016 11:10 AM
Okay, then if you enable:
feature evmed
Then:
event manager applet Timed-Rollback
event timer countdown time 600
action 1.0 cli command "rollback ..."
07-20-2016 02:44 PM
Thanks for the feature tip. Making some progress, BUT there is a 20 second limit for the event timer countdown.
(config-applet)# event timer countdown time ?
WORD <1-1924991999[.0-999]> Enter seconds[.milliseconds] value (Max Size 20)
I tried using the cron-timer function but that didn't work either:
event timer cron cron-entry "40 * * * *"
07-20-2016 03:06 PM
Looks like the only way to do this is by using the Scheduler feature and creating a timed job for rollback. Found it here:
https://supportforums.cisco.com/discussion/11170566/nexus-7010-rollback
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