09-21-2018 10:03 AM - edited 03-08-2019 04:12 PM
Hello! I have a Nexus 5K with OS 7.3 and looking for help to find the commands to make an automatic backup to a remote server.
I am not able to use the scheduler command that I am able to use on other N9K version 7.0.
Thanks,
Mauricio
09-23-2018 06:03 AM
I use simple EEM script to backup.
event manager applet NX-OS_Conf_TFTP_Backup event snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.6.1 get-type exact entry-op le entry-val 12345 poll-interval 120 action 1.0 cli command enable action 2.0 cli copy run tftp://10.10.9.9 action 3.0 syslog priority notifications msg Running_Config_Backup_TFTP_Complete
I used interval of 120 second for testing, change this to your requirement - this in seconds.
10.10.9.9 is my TFTP Server (running on Linux).
below message you see in syslog in Switch
CORESW2 %EEM_ACTION-5-NOTIF: Running_Config_Backup_TFTP_Complete
09-24-2018 10:35 AM
Hello Balaji!! Thanks for the help! I am not familiar with the scripts, after applied the configuration (changing to the tftp I use), I am getting this logs:
eem_policy_dir: Policy Expired
If I run directly the copy run tftp command I am able to make the backup, but not through the script.
Do you know what I could be missing?
Many thanks,
Mauricio
09-24-2018 11:40 AM
Not sure, i checked with couple of my device all works, even 5K and 7K
check you may have hit with an caveats.
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