System Management Commands
4-37
4
copy
This command moves (uploads/downloads) a code image or configuration file
between the switch’s flash memory and an FTP/TFTP server. It can also download a
diagnostics file or loader file from an FTP/TFTP server. When you save the system
code or configuration settings to a file on an FTP/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/TFTP server and the quality of the
network connection.
Syntax
copy
file
{
file
|
ftp
|
running-config
|
startup-config
|
tftp
}
copy running-config
{
file
|
ftp
|
startup-config
|
tftp
}
copy startup-config
{
file
|
ftp
|
running-config
|
tftp
}
copy ftp
{
file
|
running-config
|
startup-config
|
https-certificate |
public-key
}
copy tftp
{
add-to-running-config
|
file
|
running-config
|
startup-config
|
https-certificate | public-key
}
copy unit file
•
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.
•
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.
•
public-key
- Keyword that allows you to copy a SSH key from a TFTP
server. (?$paratext>? on page 4-137)
Default Setting
None
Command Mode
Privileged Exec
Command Usage
• The system prompts for data required to complete the copy command.
• The destination file name should not contain slashes (\ or /), the leading letter
of the file name should not be a period (.), and the maximum length for file
names on the FTP/TFTP server is 127 characters or 31 characters for files on
the switch. (Valid characters: A-Z, a-z, 0-9, “.”, “-”, “_”)
• Due to the size limit of the flash memory, the switch supports only two
operation code files.
Summary of Contents for 6152PL2 FICHE
Page 2: ......
Page 6: ...vi ...
Page 8: ...viii ...
Page 32: ...Tables xxxii ...
Page 38: ...Figures xxxviii ...
Page 56: ...Initial Configuration 2 10 2 ...
Page 378: ...Configuring the Switch 3 322 3 ...
Page 817: ......