2-150
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands
copy
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines Use the copy command to perform these tasks:
•Download a system image or configuration file from a TFTP or rcp server to a Flash device.
•Upload a system image or configuration file from a Flash device to a TFTP or rcp server.
•Configure the switch using a configuration file on a Flash device or on a TFTP or rcp se rver.
•Copy the current configuration to a Flash device or to a TFTP or rcp server.
•Manually copy the ACL configuration to a file.
Caution Manual copying can only be used if acl config is set to flash and you enable the auto-config append
option. If you disable the append option, the configuration clears before executing the au to-config file;
see the set boot config-register auto-config command.
If you do not specify the source or destination device, the command uses the ones specified by the cd
command. If you omit the destination filename, the source filename is used.
The copy config, copy cfg1, and copy cfg2 commands copy only nondefault commands to the
destination configuration file. Use the keyword all to copy both default and nondefault configurations.
If you do not specify a source or destination Flash device, the default Flash device (speci fied by the cd
command) is used. Use the pwd command to display the current default Flash device. If you omit the
destination filename, the system uses the source filename.
The system stores image and configuration files in the sysname.cfg file when you define a system name
using the set system name command; otherwise, it uses the default myswitch.cfg file.
A colon (:) is required after the specified device.
If you use the flash keyword as the copy source or destination, you ar e pr om pted fo r th e Fl ash dev ice
name.
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).