Backing up IOS and running config to FTP server

Unanswered Question
Jun 9th, 2008

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 ??

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Collin Clark Mon, 06/09/2008 - 05:46

To add to Massimilianos post, you can configure a ftp username and password.

ip ftp username username

ip ftp password password

SpeedLottery Mon, 06/09/2008 - 05:51

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?

Collin Clark Mon, 06/09/2008 - 05:58

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]?

!!!!!!!!!!!!!!

SpeedLottery Mon, 06/09/2008 - 06:53

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#

Collin Clark Mon, 06/09/2008 - 06:59

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 ..

Pravin Phadte Mon, 06/09/2008 - 07:06

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

Richard Burts Mon, 06/09/2008 - 07:09

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

Actions

This Discussion