CLI Reference Guide-R02

Table Of Contents
Chapter 4
| System Management Commands
File Management
– 118 –
Command Mode
Global Configuration
Command Usage
A colon (:) is required after the specified file type.
If the file contains an error, it cannot be set as the default file.
Example
Console(config)#boot system config: startup
Console(config)#
Related Commands
dir (123)
whichboot (124)
copy This command moves (upload/download) a code image or configuration file
between the switchs flash memory and an FTP/FTPS/SFTP/TFTP server. When you
save the system code or configuration settings to a file on an FTP/FTPS/SFTP/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 FTP/FTPS/SFTP/
TFTP server and the quality of the network connection.
Syntax
copy file {file | ftp | ftps | running-config | sftp | startup-config | tftp | unit |
usbdisk}
copy ftp {add-to-running-config | file | public-key | running-config |
startup-config}
copy running-config {file | ftp | ftps | sftp | startup-config | tftp}
copy startup-config {file | ftp | ftps | running-config | sftp | tftp}
copy tftp {add-to-running-config | file | https-certificate | public-key |
running-config | startup-config}
add-to-running-config - Keyword that adds the settings listed in the
specified file to the running configuration.
file - Keyword that allows you to copy to/from a file.
ftp - Keyword that allows you to copy to/from an FTP server.
ftps - Keyword that allows you to copy to/from an FTPS server.
https-certificate - Keyword that allows you to copy the HTTPS secure site
certificate.
public-key - Keyword that allows you to copy a SSH key from a TFTP server.
(See “Secure Shell” on page 245.)