Single copy command

When a switch crashes, five files relating to the crash; core-dump, crash-data, crash-log, fdr-log, and event-log are created and should be copied for review. All five files (core-dump, crash-data, crash-log, fdr-log, and event-log) should be copied to a destination specified under a directory by file name.

TFTP

A destination directory and files can be created for all crash files (core-dump, crash-data, crash-log, fdr-log, and event-log) on an TFTP server (with write permissions).

SFTP

Files are auto created on the SFTP server as a secured transfer. The destination directories however can be manually created on the server.


[NOTE: ]

NOTE: Specified directories can be used for the TFTP/SFTP transfers in the copy command. If the directory is specified, all files will be copied under one directory, otherwise all files will be copied to the TFTP/SFTP server home directory. It is mandatory to specify the directory name.


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.

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
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.

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, 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.

Destination
SFTP
TFTP
USB
xmodem

Data Files

Specify the data file name at the target.

Data file
autorun-cert-file
autorun-key-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, 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. 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

Multiple management switches

Syntax

copy crash-files

slot-id

Copy interface management crash files.

mm-active

Copy active management module crash files.

mm-standby

Copy standby management module crash files.

  Destination
  SFTP TFTP USB Xmodem
Slot-ID X X X X
MM-active X X X X
MM-standby X X X X

Stacking switches

Syntax

copy crash-files

member

Copy stack member crash files.

Options for member

Option Destination
SFTP TFTP USB xmodem
management X X X X
interfaces X X X X

Standalone switches

Syntax

copy crash-files

Options

Option Destination
SFTP TFTP USB xmodem
management X X X X
interfaces X X X X

Crash file options

Syntax

copy crash-files crash-file-options host-name-str | ip-addr | ipv6-addrsftp dirname-str | oobm

Options

host-name-str

Specify hostname of the SFTP server.

ip-addr

Specify SFTP server IPv4 address.

ipv6–addr

Specify SFTP server IPv6 address.

user

Specify the username on the remote system.

username@ip-str

Specify the username along with remote system. Information (hostname, IPv4 or IPv6 address).

dirname-str

Specify the destination directory name.

oobm

Use the OOBM interface to reach SFTP server.

Destination options

slot-id

Copy interface core-dump file.

mm-active

Copy active management module crash files.

mm-standby

Copy standby management module crash files.

member

Copy member crash files.

interfaces

Copy interfaces crash files.

management

Copy management crash files.