cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

2170
Views
25
Helpful
11
Replies
Beginner

Automatic Backup Nexus 9000

How can I create and schedule an automatic backup in a Nexus 9000 device?

 

Thanks

11 REPLIES 11
VIP Advisor

Re: Automatic Backup Nexus 9000

Hi

There is a feature called scheduler.
Here is a sample config I'm using on Nexus switches:

feature scheduler
scheduler logfile size 1024
scheduler job name BKP
copy running-config ftp://user:password@x.x.x.x/$(SWITCHNAME).txt vrf default
scheduler schedule name DAILY
job name BKP
time daily 23:30



Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question
Beginner

Re: Automatic Backup Nexus 9000

 Hey Francesco,

 

Question any way to hide username/pwd with your statement below? On IOS devices you have ip ftp username xxx and ip ftp password?

 

cheers

 

Alexander

Highlighted
Beginner

Re: Automatic Backup Nexus 9000

 Hey Francesco,

 

Question any way to hide username/pwd with your statement below? On IOS devices you have ip ftp username yyy and ip ftp password?

 

cheers

 

Alexander

VIP Advisor

Re: Automatic Backup Nexus 9000

Hi

No, such configuration isn't available on nx-os. I'm sorry.

What you can do is using a python script to do so and user and password won't be visible under show run config.


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question
Beginner

Re: Automatic Backup Nexus 9000

Thanks for the feedback, seems there is a bug in the nx-os, ftp://username:pwd@host/yyy the username and pwd doesn’t work but when just do the state without username/pwd and manually enter this works.

Cheers

 

Alexander

VIP Advisor

Re: Automatic Backup Nexus 9000

Sorry i forgot that in Nexus you were not and to give the user and password.

A dumb question: why not doing the other way around, I mean install a rancid and it will be charge to collect the backup instead of Nexus pushing its config.
With rancid you'll be able to get config from all your network devices

Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question
Beginner

Re: Automatic Backup Nexus 9000

Hello All,

 

How do we remove "feature scheduler"?  I accidently cut & Paste.  I want to remove all these lines beflow.

 

"###

scheduler logfile size 1024


scheduler job name 9k-dlc-02
copy running-config ftp://user:password@x.x.x.x/$(SWITCHNAME).txt vrf default
 show running-config

end-job

#########

 

Thanks

HenryTruong

 

Beginner

Re: Automatic Backup Nexus 9000

Hey Henry,

Try no feature scheduler

Config should be removed 😊

Re: Automatic Backup Nexus 9000

Super helpful, but you missed one bit after "scheduler schedule name DAILY" - You must end the job before you can make a schedule.

 

#end-job

 

And then you can schedule it.

Beginner

Re: Automatic Backup Nexus 9000

Hello,

 

Is automatic config backup wokring on N9K. I have configured below command but no luck, can someone advise.

feature scheduler
scheduler logfile size 1024
end

config terminal
scheduler aaa-authentication username *** password *****

end

config terminal
scheduler job name BKP
copy running-config ftp://@10.1.1.1/backup.txt vrf default

end

config terminal
scheduler schedule name CURRENT
time start 2019:07:24:13:57 repeat 1:0:0
job name BKP
end

 

I tried FTP Credential also

copy running-config ftp://admin:****@10.1.1.1/backup.txt vrf default

 

Thanks

Kamlesh

 

 

Beginner

Re: Automatic Backup Nexus 9000

Hi Kamlesh,

If your problem is not solved yet, please try this:

 

conf t

feature schedule

schedule logfile size 1024

scheduler job name BKN

copy running-config ftp://USER:PASSWORD@ip_or_name_of_the_FTP_Server/directory/file.cfg vrf default

END

conf t

scheduler schedule name DAILY

job name BKN

time daily 22:00

END

 

Note: The directory, user and the password must pre-exist to the FTP Server.

 

Please let me know, whether it works.

 

regards

Motiar

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards