2-5
Catalyst 2350 Switch Command Reference
OL-19055-01
Chapter 2 Catalyst 2350 Switch Cisco IOS Commands
archive download-sw
Using the
/safe
or
/leave-old-sw
option can cause the new image download to fail if there is insufficient
flash memory. If leaving the software in place prevents the new image from fitting in flash memory due
to space constraints, an error results.
If you used the
/leave-old-sw
option and did not overwrite the old image when you downloaded the new
one, you can remove the old image by using the
delete
privileged EXEC command. For more
information, see the
“delete” section on page 2-50
.
Use the
/overwrite
option to overwrite the image on the flash device with the downloaded one.
If you specify the command
without
the
/overwrite
option, the download algorithm verifies that the new
image is not the same as the one on the switch flash device. If the images are the same, the download
does not occur. If the images are different, the old image is deleted, and the new one is downloaded.
After downloading a new image, enter the
reload
privileged EXEC command to begin using the new
image, or specify the
/reload
or
/force-reload
option in the
archive download-sw
command.
Use the
/directory
option to specify a directory for the images.
Examples
This example shows how to download a new image from a TFTP server at 172.20.129.10 and to
overwrite the image on the switch:
Switch#
archive download-sw /overwrite tftp://172.20.129.10/test-image.tar
This example shows how to download only the software image from a TFTP server at 172.20.129.10 to
the switch:
Switch#
archive download-sw /imageonly tftp://172.20.129.10/test-image.tar
This example shows how to keep the old software version after a successful download:
Switch#
archive download-sw /leave-old-sw tftp://172.20.129.10/test-image.tar
This example specifies the location of two tar images without having to specify the path each time:
Switch#
archive download-sw tftp://10.1.1.10/
c2350-lanlite-tar.122-46.EY.tar c2350-lanlitek9-tar.122-46.EY.tar
This example specifies the location of three tar images without having to specify the path each time:
Switch#
archive download-sw /directory tftp://10.1.1.10/
c2350-lanlite-tar.122-46.EY.tar 2350-lanlitek9-tar.122-46.EY.tar
c2350-lanlitek9-mz.122-46.EY.bin
Related Commands
Command
Description
archive tar
Creates a tar file, lists the files in a tar file, or extracts the files from a tar file.
archive upload-sw
Uploads an existing image on the switch to a server.
delete
Deletes a file or directory on the flash memory device.