How do I backup the configuration of a Cisco switch and ASA to an SMB Windows share? I have full enabled admin through SSH. what would be the full command to save it to an SMB share? Is it "show run, save as smb://user:pass@192.168.1.3/folder???
4 Answers
show run
and save it to a text file.

- 77,945
- 11
- 124
- 216
-
1In addition, look into Rancid (http://www.shrubbery.net/rancid/) if you want to automate this. – EEAA Feb 28 '11 at 20:43
-
what would be the full command to save it to an SMB share? Is it "save as smb://user:pass@192.168.1.3/folder??? – IT_Fixr Feb 28 '11 at 20:56
-
@IT_Fixr, that command will dump the configuration on your screen. If your SSH Client logs the session, you can refer to that file, otherwise Copy & Paste tends to work well. – Chris S Feb 28 '11 at 21:23
This isn't a direct answer to your question, but I use Kiwi CatTools to create regularly occurring jobs to back up all of my switches and routers to a Windows file share.

- 109,901
- 6
- 81
- 172
OP does not say whether there is a Linux or Unix box available, but the phrase "SMB Windows share" suggests there is. As ErikA notes rancid deserves a plug. Of course, rancid will not in itself push the config to an SMB share, but it will do version management and mail changes to concerned parties. A quick cron hack should take care of pushing the file to SMB.
Just remember not to have any cleartext passwords in your configs before you start mailing them around.

- 3,070
- 3
- 24
- 27
-
Just because the OP used the word "SMB" for Server Message Block does not imply anything about SaMBa being used. – Corey S. Feb 28 '11 at 21:06
you can used cisco built in command 'archive' to backup router and switch configuration but you can only save the archived files to FTP, HTTP, HTTPS, RCP, SCP, TFTP locations. I configured a FTP site for my setup and you can configured it to create backup file after certain time interval or when Write Memory command is issued.

- 193
- 1
- 3
- 13