2-192
Catalyst 6500 Series Switch Command Reference—Release8.4
OL-6244-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands
copy
If you are copying a software image to multiple intelligent switching modules of the same type, use the
flash keyword as the copy destination. The switch automatically determines which modules to copy the
image to based on the header in the source image file. If you want to copy a software image to a single
intelligent switching module in a switch with multiple modules of the same type, you must specify the
destination file-id as m/bootflash: (do not specify a filename).
Before you begin downloading a software image using SCP, make sure of the following:
Ensure that the workstation acting as the SCP server supports the Secure Shell (SSH).
Ensure that the server supports a command shell that has an SSH v1-compatible scp command
available.
Ensure that the switch has a route to the SCP server. The switch and the SCP server must be in the
same subnetwork if you do not have a router to route traffic between subnets. Check co nnectivity to
the SCP server using the ping command.
A power interruption (or other problem) during the download procedure can corrupt the Flash code.
If the Flash code is corrupted, you can connect to the switch through t he console port and boot from
an uncorrupted system image on a Flash PC c ar d.
Before you attempt to upload a software image to an SCP server, do the following:
Ensure that the workstation acting as the SCP server is configured properly.
Ensure that the switch has a route to the SCP server. The switch and the SCP server must be in the
same subnetwork if you do not have a router to route traffic between subnets. Check co nnectivity to
the rcp server using the ping command.
If you are overwriting an existing file (including an empty file, if you had to create one), ensure that
the permissions on the file are set correctly. Permissions on the file should be set to write for the
specific username.
For more information about downloading and uploading files by using SCP, refer to Chapter 25,
“Working with System Software Images,” in the Catalyst 6500 Seri es Sw itch S oftware Configuration
Guide.
Examples This example shows how to use the copy command to upload the switch configuration to a file named
cat.cfg on the slot0 Flash device:
Console> (enable) copy config slot0:cat.cfg
Upload configuration to slot0:cat.cfg
649324 bytes available on device slot0, proceed (y/n) [n]? y
.........
.........
.........
........
.........
.
/
Configuration has been copied successfully. (10200 bytes)
Console> (enable)