Management and Configuration Guide K/KA/KB.15.15

Using USB to transfer files to and from the switch
The switch's USB port (labeled as Auxiliary Port) allows the use of a USB flash drive for copying
configuration files to and from the switch. Beginning with software release K_12_XX or later, copy
commands that used either tftp or xmodem now include an additional option for usb as a source
or destination for file transfers.
Operating rules and restrictions on USB usage are:
Unformatted USB flash drives must first be formatted on a PC (Windows FAT format.) For
devices with multiple partitions, only the first partition is supported. Devices with secure
partitions are not supported.
If they already exist on the device, subdirectories are supported. When specifying a
filename , you must enter either the individual file name (if at the root) or the full path name
(for example, /subdir/filename.)
To view the contents of a USB flash drive, use the dir command. This lists all files and
directories at the root. To view the contents of a directory, you must specify the subdirectory
name (that is, dir subdirectory.)
The USB port supports connection to a single USB device. USB hubs to add more ports are
not supported.
NOTE: Some USB flash drives may not be supported on your switch. Consult the latest Release
Notes for information on supported devices.
Transferring switch configurations
Using CLI commands you can copy switch configurations to and from a switch, or copy a software
image to configure or replace an ACL in the switch configuration.
NOTE: For greater security, you can perform all TFTP operations using SFTP.
You can also use the include-credentials command to save passwords, secret keys, and
other security credentials in the running config file.
Transferring ACL command files
This section describes how to upload and execute a command file to the switch for configuring or
replacing an ACL in the switch configuration. Such files should contain only access control entry
(ACE) commands.
Copying diagnostic data to a remote host, USB device, PC or UNIX
workstation
You can use the CLI to copy the following types of switch data to a text file in a destination device:
Command output Sends the output of a switch CLI command as a file on the
destination device.
Event log Copies the switch's Event Log into a file on the destination
device.
Crash data Software-specific data useful for determining the reason for
a system crash.
Crash log Processor-specific operating data useful for determining the
reason for a system crash.
Flight data recorder (FDR) logs Information that is “interesting” at the time of the crash, as
well as when the switch is not performing correctly but has
not crashed.
298 File transfers