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.
I use simple EEM script to backup.
event manager applet NX-OS_Conf_TFTP_Backup
event snmp oid 22.214.171.124.126.96.36.199.188.8.131.52.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
***** Rate All Helpful Responses *****
How to Ask The Cisco Community for Help
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?
Not sure, i checked with couple of my device all works, even 5K and 7K
check you may have hit with an caveats.
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: