06-09-2008 04:05 AM - edited 03-05-2019 11:30 PM
Hi,
Does anyone know the commnand i should use (for 3560g switches) in order to backup the ios and running to a ftp server i have on the same lan ??
06-09-2008 04:11 AM
Hi,
- Copy running-config ftp:[[//username [:password]@] location]/directory]/filename. Copy flash:ios_name ftp:[[//username [:password]@] location]/directory]/filename.
Reference:http://www.cisco.com/en/US/docs/ios/12_1/configfun/command/reference/frd2001.html#wp1021855
I hope this helps.
Best regards.
Massimiliano.
06-09-2008 05:46 AM
To add to Massimilianos post, you can configure a ftp username and password.
ip ftp username username
ip ftp password password
06-09-2008 05:51 AM
Ok,thanks
Now lets say i cannot use that ftp server, and i just want to copy the ios to a computer.
The configuration i know i can copy it just doing a show run and copy the text and then pasting it to a notepad, but the ios?
06-09-2008 05:58 AM
The IOS must be transferred (tftp, ftp,scp, etc).
It's copy source destination
Example
7206VXR#dir flash:
Directory of flash:/
1 -rw- 31626880 Sep 26 2007 23:13:14 -05:00 c7200p-advsecurityk9-mz.124-15.T1.bin
256450560 bytes total (224821248 bytes free)
Let's say my TFTP server is at address 10.1.2.217
7206VXR#copy flash:c7200p-advsecurityk9-mz.124-15.T1.bin tftp
Address or name of remote host []? 10.1.2.217
Destination filename [c7200p-advsecurityk9-mz.124-15.T1.bin]?
!!!!!!!!!!!!!!
06-09-2008 06:53 AM
Hi,
I installed a tftp server and when i try to copy the ios...
NetworkSwitch1#dir flash:
Directory of flash:/
2 -rwx 6558 Apr 4 1993 20:43:51 +00:00 config.text
3 drwx 64 Mar 1 1993 00:00:06 +00:00 microcode_update
4 drwx 192 Mar 1 1993 00:08:47 +00:00 c3560-ipbase-mz.122-25.SEE2
8 -rwx 27 Apr 4 1993 20:43:51 +00:00 private-config.text
9 -rwx 856 Mar 29 1993 01:20:03 +00:00 vlan.dat
32514048 bytes total (24298496 bytes free)
NetworkSwitch1#copy c3560-ipbase-mz.122-25.SEE2 tftp:
Address or name of remote host []? 192.168.165.95
Destination filename [c3560-ipbase-mz.122-25.SEE2]?
%Error reading flash:c3560-ipbase-mz.122-25.SEE2 (Is a directory)
NetworkSwitch1#
06-09-2008 06:59 AM
OK, the IOS image is in the c3560-ipbase-mz.122-25.SEE2 directory (the image will always have a .bin extension). Switches from the factory have the web interface installed. Once you go into the directory you'll see all the files for supporting that, but you should also see c3560-ipbase-mz.122-25.SEE2.bin
Switch# cd c3560-ipbase-mz.122-25.SEE2
[There will be no change in the prompt]
Switch# dir
[You should see a bunch of files including the .bin file]
Do your copy from here. To go back type cd ..
06-09-2008 07:06 AM
Collin is right the ios file is a directory.
you can also try to do check the bin file in other way.
# dir flash:
# dir flash:c3560-ipbase-mz.122-25.SEE2
Press enter you will see the bin file
copy flash:c3560-ipbase-mz.122-25.SEE2/c3560 (press tab) tftp:
enter
You will have to give the tftp server ip address follwed.
Also after the command flash:c3560-ipbase-mz.122-25.SEE2/ i dont rem if it forward or backslah but try out. press tab would complete the ios file name ending by .bin
HOpe this helps
06-09-2008 07:09 AM
Francisco
It may also help to give the path name of the file that you are trying to copy. such as:
copy flash:c3560-ipbase-mz.122-25.SEE2/c3560-ipbase-mz.122-25.SEE2.bin tftp
HTH
Rick
06-09-2008 07:54 AM
Perfect. I was able to make the backup.
Thanks a lot.
06-09-2008 08:23 AM
Thats good to know.
Regards,
pravin
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: