11-17-2010 08:20 PM - edited 03-06-2019 02:06 PM
I have been trying to get our switches to backup to an FTP server that I set up tonight. I have been using these commands:
Switch# conf t
Switch (config)# kron policy-list Backup
Switch (config-kron-policy)# cli sh run | redirect ftp://xx.xxx.xxx.xxx/distro.cfg
Switch (config-kron-policy)# exit
Switch (config)# kron occurrence Backup at 07:30 THU recurring
Switch (config-kron-occurrence)# policy-list Backup
Switch (config-kron-occurrence)# exit
Switch (config)# exit
Switch# copy r s
Then, when the schedule time arrives, it will drop this file into my ftproot folder on the server, but it will be an empty config file, measuring 0 kb in size. Just to make sure I wasn't crazy, and that I set everything up right with the server, i did a Switch# copy running-config ftp: and it went into the folder at 44 kb. Why would it be doing this? Anyone have any ideas? We are trying to get this configured for about 45 switches over 3 different networks, and I cannot even get the first one going. Any help will be appreciated. Thank you ahead of time.
11-17-2010 09:07 PM
There were few issues around redirect feature using FTP. I am not sure about the IOS version you are running, however please take a look at these two bugs:
CSCtc81787 & CSCtb72550
For 35xx, 37xx, 29xx this is fixed in 12.2(55)SE.
HTH.
Regards,
Deepak
11-18-2010 08:55 AM
Thanks. As for our IOSs, we have to use versions which support crypto, so we can't always have the latest ones. Is there any other way to schedule backups of configs through FTP? We are trying to avoid having to use TFTP. Any workarounds or other command schemes to help would be great.
11-18-2010 09:13 AM
Please see if this helps you:
http://www.cisco.com/en/US/docs/ios/12_3t/12_3t7/feature/guide/gtrollbk.html#wp1027195
Path: You may specify FTP as the protocol along with the path where you want to save it. Refer to this:
http://www.blindhog.net/cisco-automatic-configuration-backup/
Though I have not pratically tried it, but some pro's have posted about it, in previous discussions:
https://supportforums.cisco.com/thread/140024
Regards,
Deepak
11-18-2010 02:11 PM
Thanks again. Path seems to work the best, however it isn't actually working on a couple of the switches. Also, on one or two of them it is actually saving a 1 kb file that only tells me when the last changes were made. On most of the switches it is working to back up the entire running-config, as intended. Any ideas on the odd switches out? I'm so close, and it's quite frustrating.
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