03-19-2015 11:58 AM
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
03-21-2015 12:54 AM
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
***************************************************************************************************************
03-24-2015 02:06 PM
Thanks Ashok but unfortunately my Nexus 3k does not support kron
any other options?
Regards
Geevee
03-20-2018 09:11 PM
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 .
07-06-2018 12:36 AM - edited 07-06-2018 12:38 AM
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.
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