copy source

Syntax

copy <SOURCE> <DATA_FILE> <DESTINATION> <DATA_FILE> <OPTIONS>
        

Description

Copies data files to and from the switch.

Parameters and options

<SOURCE>

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

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.See: example

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.

USB

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

Xmodem

N/A

<DATA_FILES>

Specify the data file to be copied from the source.

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

Copy the switch crash-log file.

crash-files <A|B|C|D|E|F|G|H|MASTER>

Copy core-dump, crash-data, crash-log, fdr-log, and event-log files to an SFTP/TFTP server, USB, 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, USB 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.

USB

Copy data from a USB flash drive.

xmodem

Use xmodem on the terminal as the data source.

<DESTINATION >

Specify the copy target.

  • SFTP
  • TFTP
  • USB
  • xmodem
<DATA_FILES>

Specify the data file name at the target.

  • command file
  • config
  • default-config
  • flash
  • pub-key-file
  • show-tech
  • startup-config
  • ssh-client-key
  • ssh-client-known-hosts
<OPTIONS>
append

Add the keys for operator access.

directory

Directory name to upload. Required for TFTP, SFTP and USB transfers.

filename

File-name to upload/download. Required for TFTP, SFTP and USB 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.

operator

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

pc

N/A

unix

N/A

The listed crash-files captured for 3500 switch for both MM and slot using SFTP are as follows:
  • MM crash-files:
    • M-SG238TF00K.cor
    • M-SG238TF00K.cdata
    • M-SG238TF00K.clog
    • M-SG238TF00K.evt
    • M-SG238TF00K.fdr
  • Slot crash-files:
    • I-SG238TF00K.cor
    • I-SG238TF00K.cdata
    • I-SG238TF00K.clog
    • I-SG238TF00K.evt
    • I-SG238TF00K.fdr