12-22-2011 09:46 AM - edited 03-07-2019 04:01 AM
Hi, I need to backup my ASA 5505 configuration and restore it to default, then I'll configure manually the new config, but if something doesn't work I want to restore the backup made before.
I tried the "copy run tftp" command, and it always answers the same:
Result of the command: "copy run tftp"
Source filename [running-config]?
?Bad filename
%Error parsing filename (Bad file number)
I read everywhere its supossed to prompt asking me tftp server address and file name....but I only obtain that...
what am I doing wrong?
heeelp!
12-22-2011 09:49 AM
PS: I'm using ASDM 6.0 and the Tools->Command Line Interface option.
12-22-2011 01:53 PM
It will ask you tftp server address after you get past this issue.
does the "dir system:" command show the running-config file?
have you tried "copy start tftp"?
could be that the NVRAM is corrupt?
12-22-2011 02:38 PM
Jose Manuel Gil wrote:
PS: I'm using ASDM 6.0 and the Tools->Command Line Interface option.
Instead of trying to do it via the java command line interface (which will only accept one input, hence the errors you are getting), you can either
1) Go to TOOLS -> Backup Configurations
or
2) telnet/SSH into the firewall, enter privileged mode and enter the following commands
copy run tftp:
You will need a valid, reachable TFTP server that your firewall can dump its configuration to.
or
3) telnet/SSH into the firewall, enber privileged mode, enable logging on your terminal program and enter the following command
more system:running-config
hit space at the pagination points until you reach the end, save your log, then use a text editor to remove the embedded spaces and save the config as a text file.
Once you've successfulyl backed up your config, issue the command
write erase
to erase your existing startup configuration, then reload the device to restore it to the defaults.
NOTE: Once you have issued the write erase command and reloaded, you WILL need to be connected via a console cable - you will NOT be able to use ASDM to configure the device until you've put at least a basic interface and access configuration on one physical interface. If you issue this command and lose conenctivity without being able to connect to the console port, I accept no responsibility for the consequences!
Cheers
12-27-2011 12:48 AM
Ok I'm back to work.
I didn't find any menu like TOOLS-> Backup configurations.
I used FILE-> Save running config to TFTP
and it works, but my problem is there's no menu to RESTORE the config file, so I need to solve the "copy" command issue.
I tried to telnet/SSH using SecureCRT and it gave me a surprise... the connection times out, I cant connect through telnet/SSH
any idea to enable the telnet/SSH access to the router?
greetings
01-02-2012 03:01 PM
Jose Manuel Gil wrote:
Ok I'm back to work.
I didn't find any menu like TOOLS-> Backup configurations.
I used FILE-> Save running config to TFTP
and it works, but my problem is there's no menu to RESTORE the config file, so I need to solve the "copy" command issue.
I tried to telnet/SSH using SecureCRT and it gave me a surprise... the connection times out, I cant connect through telnet/SSH
any idea to enable the telnet/SSH access to the router?
greetings
Have you actually enabled telnet/ssh into the firewall?
From the ASDM console, go to Configuration -> Ddevice Management -> ASDM/HTTP/Telnet/SSH and add an allow rule for your "inside" interface for telnet/SSH
Cheers.
12-23-2011 01:57 PM
Thanks for your answers, I'm out of the office for holidays,so I'll test your solutions after these christmas days and I'll come here to inform you
Merry Christmas.
07-22-2012 03:04 AM
Hi Bro
For this, I usually do it the old fashion way. I issue the command show running-config, and I capture them to a TEXT file.
In the event I need to restore the config, I'll just perform copy and paste. This method may not be efficient especially when you’ve super long configurations, but I love it :-)
05-18-2018 03:44 AM
08-13-2019 07:22 PM
thanks you
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