Single copy command

Syntax


copy source destination options

Copy data files to and from the switch.

Source
Specify the source of data using any of the following destinations.

Destination

Operation note

Flash

n/a

SFTP

For transfer of crash-files via SFTP, the destination directory must exist on the SFTP server with write permissions.

File creation is not mandatory as files are automatically created with the chassis serial number suffix to the filename when using SFTP.

TFTP

For transfer of crash-files via TFTP, the destination directory along with the file names (core-dump, crash-data, crash-log, fdr-log, and event-log) must exist on the TFTP server with write permissions.

Xmodem

n/a

Data Files

Specify the data file to be copied from the source.

Data file

Operation note

command-output command

Specify a command to copy output.

When using command-output, place the desired CLI command in double-quotes. For example: "show system".

config file-name

Copy named configuration file.

The file-name option is the source configuration file being copied.

core-dump

Copy core-dump file from flash.

crash-data

Copy the switch crash-data file.

crash-log a|b|c|d|e|f|g|h|master

Copy the switch crash-log file.

crash-files

Copy core-dump, crash-data, crash-log, fdr-log, and event-log files to an SFTP/TFTP server, or xmodem terminal.

When using the crash-files option, the destination directory alone must be specified as the destination path. Specifying the file names is not mandatory.

default-config

Copy custom default-config file.

event-log

Copy event-log file.

fdr-log

Copy FDR-og file from the switch to an SFTP/TFTP server or xmodem terminal.

flash

Copy the switch system image file.

SFTP server

Copy data from a SFTP server.

startup-config

Copy in-flash configuration file.

ssh-client-known-hosts

Copy the known hosts file.

ssh-server-pub-key

Copy the switch's SSH server public key.

running-config

Copy running configuration file.

TFTP

Copy data from a TFTP server.

xmodem

Use xmodem on the terminal as the data source.

Destination

Specify the copy target.

Destination

SFTP

TFTP

USB (available only on the 2930M Switch Series)

xmodem

Destination

SFTP

TFTP

xmodem

Data Files

Specify the data file name at the target.

Data file

command file
config
default-config
flash
pub-key-file
show-tech
startup-config
ssh-client-key
ssh-client-known-hosts
Options

Option

Operation note

Requirement

append 

Add the keys for operator access.

n/a

directory

Directory name to upload.

Required for TFTP and SFTP transfers.

filename

File-name to upload/download.

Required for TFTP and SFTP transfers.

hostname

Hostname of the TFTP, SFTP server.

Required for TFTP, SFTP transfers.

IPv4 address

TFTP, SFTP server IPv4 address.

Required for TFTP, SFTP transfers.

IPv6 address

TFTP, SFTP server IPv6 address.

Required for TFTP, SFTP transfers.

manager 

Replace the keys for manager access; follow with the append option to add the keys.

n/a

operator

Replace the keys for operator access (default); follow with the append option to add the keys.

n/a

pc

 

n/a

unix

 

n/a