cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2533
Views
5
Helpful
4
Replies

Automatic BACKUP on NEXUS 3k

geevee1989
Level 1
Level 1

Hi All,

I have written the below script for NEXUS 3K but it wont work since my 3K doesn't support watchdog feature. is there any workaround for this to work?

Also please let me know if there are any mistakes in the script

 

event manager applet backup

 event timer watchdog time 86400

 action 1.0 cli command "enable"

 action 2.0 info type routername

 action 3.0 cli command "copy run tftp:///$_info_routername" 

 action 4.0 cli command "" pattern "vrf" 

 action 5.0 cli command ""

 

Regards,

Geevee

4 Replies 4

Ashok Kumar
Cisco Employee
Cisco Employee

Hi,

CRON timer can do the same thing what you're with watchdog timer.

Below are tutorial link which will help you in applying the CRON in EEM.

http://networkengineering.stackexchange.com/questions/3473/time-based-interface-shutdown-on-cisco-router

http://www.rogerperkin.co.uk/ccie/eem-2/understanding-cisco-eem-event-timer-cron/

- Ashok

***************************************************************************************************************

Please rate the post or mark as correct answer as it will help others looking for similar information

***************************************************************************************************************

Thanks Ashok but unfortunately my Nexus 3k does not support kron

 

any other options?

 

Regards

 Geevee

jkilleda
Level 3
Level 3

Hello Geevee,

Automatic BACKUP on NEXUS 3k

Watchdog doesn't work in Nexus (NX-OS) the workaround would be that you can set scheduler in it .

Working config: N3K-C3172TQ-10GT - username and folder. Without password. VRF - is optional.

scheduler job name backup-config
copy running-config ftp://N3K-C3172TQ-10GT@192.168.1.100/$(SWITCHNAME)-conf.$(TIMESTAMP) vrf LAN
 
end-job
scheduler schedule name backup-config
  job name backup-config
  time start 2018:06:29:16:58 repeat 7:0:0

 

Just take into account that automation backup on Nexus 3k possible only with tftp file transfer or with ftp without password.