cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5118
Views
5
Helpful
2
Replies

Backup Configuration of Nexus config to TFTP server

loc.nguyen
Level 1
Level 1

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 

1 Accepted Solution

Accepted Solutions

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

View solution in original post

2 Replies 2

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

loc.nguyen
Level 1
Level 1

it works, thank you!

Review Cisco Networking for a $25 gift card