cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1896
Views
0
Helpful
5
Replies

EEM Script in NX-OS for a timed Rollback

brianjdowd
Level 1
Level 1

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?

5 Replies 5

Joe Clarke
Cisco Employee
Cisco Employee

What version of NX-OS is this?

We are using 7.2

Okay, then if you enable:

feature evmed

Then:

event manager applet Timed-Rollback

 event timer countdown time 600

 action 1.0 cli command "rollback ..."

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 * * * *"

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: