08-05-2009 11:36 PM - edited 03-04-2019 05:39 AM
Hi Experts,
I have Solarwinds Tool install on the server and would like to know how i can push my backup config file automatically for routers/switches to the TFTP SOlarwind?
I would like to do schedule as well like, every month , 12 midnight , the config will be push over..
Thanks,
Cindy
08-06-2009 03:36 AM
Hi,
You can automate the config backup
using the archive command .
But this is available only on 12.4 ios.
you can explore more on this.
Here are the options..
Router(config)#archive
Router(config-archive)#?
Archive configuration commands:
default Set a command to its defaults
exit Exit from archive configuration mode
log Logging commands
maximum maximum number of backup copies
no Negate a command or set its defaults
path path for backups
rollback Rollback parameters
time-period Period of time in minutes to automatically archive the
running-config
write-memory Enable automatic backup generation during write memory
Router(config-archive)#pat
Router(config-archive)#path ?
ftp: Write archive on ftp: file system
http: Write archive on http: file system
https: Write archive on https: file system
pram: Write archive on pram: file system
rcp: Write archive on rcp: file system
scp: Write archive on scp: file system
tftp: Write archive on tftp: file system
12-04-2009 08:04 AM
I have tried doing that, but the config file that is written is only 1kb and does not contain the config. I am trying this on a switch with IOS 12.2, which I know is not the 12.4 listed, but the commands are there and seems like it should work since it is wrting a file. Is there something I am missing?
12-04-2009 08:42 AM
Do you get the same results when you do upload the config via tftp manually? Have you considered using a tool like CiscoWorks, CatTools, etc... to handle the backups?
James
12-04-2009 08:47 AM
My TFTP connection is fine. If I do the "archive config" command it works fine, including the actual config. When I let it do it automatically using the time-period command my config file it transfers is this:
!
! Last configuration change at 11:16:46 EST Fri Dec 4 2009
! NVRAM config last updated at 11:11:32 EST Fri Dec 4 2009
!
boot-start-marker
boot-end-marker
!
!
!
!
!
!
end
I'm just trying to figure out what I'm missing with the built in commands that seem like they should do what I want.
12-04-2009 09:57 AM
Please post your archive config.
11-18-2010 02:54 PM
Hello;
I am having this same problem right now, nearly exactly. Except I am using FTP instead of TFTP. A few of my switches will do it just fine when I let it do it automatically with the time-period specified. However, a few of the switches are still outputting the 1kb file mentioned above, rather than the full running-config. These switches are using the same IOS versions, and it looks like I set everything up the same. Any suggestions?
02-09-2011 12:13 PM
Mine is also having the same problem. I tried to do the archive config setting it to a time-period of 1 minute and also tried to set it into 10 minutes auto archive but still the problem persist having a 1kb archived file.
for 1 minute time interval
archive
path scp://user:password@10.10.10.1//cygdrive/e/backuprunning-configs/Discovery/router
write-memory
time-period 1
end
tried also for 10 minutes interval
archive
path scp://user:password@10.10.10.1//cygdrive/e/backuprunning-configs/Discovery/router
write-memory
time-period 10
end
I am using OpenSSH as my SCP server. Is there something that I have missed?
Thanks,
Michael
02-09-2011 12:25 PM
Hi All i found the same article on and it was said having a bug
02-09-2011 11:46 PM
Hi,
if you've got this bug with the archive feature then maybe you can try a kron job like this:
kron policy-list Backup
cli show run | redirect ftp://
kron occurrence Backup_occurence at 01:15 recurring
policy-list Backup
Regards.
Alain.
02-16-2011 09:09 AM
Hi,
Thanks for the reply on this thread I already resolved my problem but my kron config is about automatic write because after the equipment saved its config its automatically transferring the startup-config to data server using SCP. I didn't do the ftp transfer due to unsecured transfer of configs.
Thanks
03-27-2017 12:33 AM
Hi,
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.
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