Use this command to move (upload/download) a code image or configuration file
between the switch's Flash memory and a TFTP server. When you save the system
code or configuration settings to a file on a TFTP server, that file can later
be downloaded to the switch to restore system operation. The success of the
file transfer depends on the accessibility of the TFTP server and the quality
of the network connection.
file - Keyword that allows you to copy to/from a file.
running-config - Keyword that allows you to copy to/from the current
running configuration.
startup-config - The configuration used for system initialization.
tftp - Keyword that allows you to copy to/from a TFTP server.
https-certificate - Copies an HTTPS certificate from an TFTP server
to the switch.
Default Setting
None
Command Mode
Privileged Exec
Command Usage
The system prompts for data required to complete the copy command.
The destination configuration file name should not contain slashes (\ or
/), the leading letter of the file name should not be a period (.), and the
length of file name should be 1 to 31. (Valid characters: A-Z, a-z, 0-9, ".",
"-", "_")
You can load up to two code image files in the switch.The number of user-defined
configuration files is limited only by available Flash memory space.
You can use "Factory_Default_Config.cfg" as the source to copy
from the factory default configuration file, but you cannot use "Factory_Default_Config.cfg"
as the destination.
To replace the startup configuration, you must use startup-config as the
destination.
The Boot ROM (i.e., diagnostic) image cannot be uploaded or downloaded from
the TFTP server. You can only download this file via the console interface
during system bootup. (Reset power to the switch, press Ctrl-F during bootup,
and select the appropriate menu items to download the Boot ROM image.)
Example
The following example shows how to upload the configuration settings to a
file on the TFTP server:
This example shows the information displayed by the whichboot command.
See Table 1 for a description of the file information
displayed by this command.
Console#whichboot
file name file
type startup size (byte)
----------------- -------------- ------- -----------
diag_0060 Boot-Rom image
Y 111360
run_0200 Operation
Code Y 1083008
startup
Config File Y
2710
Console#