02-23-2022 11:16 AM - edited 02-23-2022 06:58 PM
Hi,
I use the config below to copy config file to tftpserver:
archive
path tftp://10.x.1.25/$h-$t
write-memory
time-period 10080
It works well on Normal Cisco Switches.
Recently I tried the command on Nexus switch. Specifically I tried on cisco Nexus9000. The switch accepted the command, but it did not copy its config file to the tftp server as expected.
Do you have an idea how to fix it?
Thanks
Loc
Solved! Go to Solution.
02-23-2022 02:54 PM
Hello,
as far as I recall, the archive to TFTP does not work on the N9K. You can use a scheduler instead. In the example below, the config will be saved to a TFTP server each day at midnight...
feature scheduler
!
scheduler job name BACKUP_JOB
copy running-config tftp://X.X.X.X/config_backup/$(SWITCHNAME)_$(TIMESTAMP)_Running.Config source-interface mgmt0
!
scheduler schedule name SCHED_DAILY
job name BACKUP_JOB
time daily 00:00
02-23-2022 02:54 PM
Hello,
as far as I recall, the archive to TFTP does not work on the N9K. You can use a scheduler instead. In the example below, the config will be saved to a TFTP server each day at midnight...
feature scheduler
!
scheduler job name BACKUP_JOB
copy running-config tftp://X.X.X.X/config_backup/$(SWITCHNAME)_$(TIMESTAMP)_Running.Config source-interface mgmt0
!
scheduler schedule name SCHED_DAILY
job name BACKUP_JOB
time daily 00:00
02-23-2022 06:57 PM
it works, thank you!
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