PDA

View Full Version : copy flash tftp - on a switch


bs_kwaj
06-23-2011, 09:24 PM
Apparently all my tftp experience has been with routers, so far. Simple enough.

Now, I am copying my switch IOS's to tftp. But, in order to restore them from tftp, I'm not yet sure how that works.
The reason: The IOS .bin file is in a lower level directory.

P2S1#dir
Directory of flash:/

621 -rwx 5 Mar 2 1993 06:09:01 +00:00 private-config.text
622 -rwx 1104 Mar 2 1993 06:09:01 +00:00 config.text
2 drwx 512 Mar 1 1993 00:08:36 +00:00 c2960-lanbase-mz.122-35.SE

27998208 bytes total (19311104 bytes free)
P2S1#
In order to get to the .bin file you have to go down one level.


P2S1#cd c2960-lanbase-mz.122-35.SE
P2S1#dir
Directory of flash:/c2960-lanbase-mz.122-35.SE/

3 drwx 5120 Mar 1 1993 00:05:39 +00:00 html
619 -rwx 5210207 Mar 1 1993 00:07:01 +00:00 c2960-lanbase-mz.122-35.SE.bin
620 -rwx 473 Mar 1 1993 00:08:36 +00:00 info

27998208 bytes total (19311104 bytes free)
P2S1#
So, if you want to play around with other IOS's apparently you have to manually create a directory based on the .bin file name and just leave off the .bin and then copy the file down into that directory.

Is that right? Manually create the IOS directory and then copy the .bin file in there?

What about that 'html' directory and that 'info' file in the c2960-lanbase-mz.122-35.SE directory? Are those directly related to the .bin file being used?

Thanks...

Big Evil
06-24-2011, 03:13 AM
I have used the syntax


Switch# archive download-sw /overwrite
tftp://[ip-address]/[IOS Name/image]



Last time i upgraded my switches they had no IOS on them in the first place and i had to fudge them on.

bs_kwaj
06-26-2011, 03:05 AM
Here's a good Cisco site I came across while searching for that 'archive' command:

http://www.cisco.com/en/US/docs/switches/lan/catalyst2960/software/release/12.2_25_see/command/reference/cli1.html

:)