cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
21824
Views
27
Helpful
8
Replies

Auto backup using Kron method

Faisal Khan
Level 1
Level 1

Hi,

Today, i configure Kron method for auto backup on my one switch 2960G version 12.2 but it can't work, below are the configurations we have

_______________________________________________________________

#kron policy-list SaveConfig

#cli copy system:/running-config tftp://192.168.0.209/Meeting_sw.txt

#kron occurrence SaveConfigSchedule

at 11:00 fri recurring

#policy-list SaveConfig

_______________________________________________________________

Meeting_SW#sh kron schedule

Kron Occurrence Schedule

saveconfigschedule inactive, will run again in 0 days 22:44:42 at 11:00 on Fri

______________________________________________________________________

Testing of TFTP server;

Meeting_SW#show run | redirect tftp://192.168.0.209/RBackup.cfg

!

can anyone help me on this issue.....

Regards,

Faisal Naseem Khan

8 Replies 8

cadet alain
VIP Alumni
VIP Alumni

Hi,

kron doesn't support interactive command so you should replace

cli copy system:/running-config  tftp://192.168.0.209/Meeting_sw.txt

by

cli show running-config | redirect tftp://192.168.0.209/Meeting_sw.txt

Regards

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

Thanks Cadet, its working with cli show running-conf....

Can u explain one more thing...

how to configure auto schedule backup on ASA 5550...

Hi,

take a look here:https://supportforums.cisco.com/thread/2135564

Regards

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

Hi Faisal,

Can you please help me with the command to get output for multiple show commands in a single text file like show vlan brief, show interface trunk, show ip eigrp neighbor and so on. Thanks.

Another way to backup your config would be the archive-function. That would probably be the right tool for the job.

-- 
Don't stop after you've improved your network! Improve the world by lending money to the working poor:
http://www.kiva.org/invitedby/karsteni

 Hi Everyone,

 

I created a piece of technical documentation that should help everyone out. I have automated daily backups for running-configs and startup-configs. Please let me know what you think.

 

https://www.slideshare.net/TravisKench/automate-cisco-switch-configuration-backups-with-kron

 

Travis

Travis

That's really helpful. Thanks for sharing.

 

Quick question: Is there a way to add the timestamp in the .txt file name?

Yes, please.  Im trying to keep multiple versions of a config.  Date and time stamp would be great.  That way it doesnt over write the same file every time.  Ive tried using the $h-$t variables.  but that doesnt seem to do anything for Cisco IOS XE.

 

Thanks!

Getting Started

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: