File Transfers

Copying Diagnostic Data to a Remote Host, USB Device, PC or UNIX Workstation

Copying Command Output to a Destination Device

Syntax: copy command-output < cli-command > tftp < ip-address> < filepath­ filename > [oobm]

copy command-output < cli-command > usb < filename > copy command-output <“cli-command”> xmodem

These commands direct the displayed output of a CLI command to a remote host, attached USB device, or to a serially connected PC or UNIX workstation.

For switches that have a separate out-of-band management port, the oobm parameter specifies that the transfer will be through the out-of-band management interface. If this parameter is not specified, the transfer will be through the data interface. The oobm parameter is not available on switches that do not have a separate out-of-band management port. Refer to Appendix I, “Network Out-of-Band Management” in this guide for more information on out-of-band management.

For example, to use Xmodem to copy the output of show config to a serially connected PC:

At this point, press [Enter] and start the Xmodem command sequence in your

terminal emulator.

Indicates the operation is finished.

Figure A-13. Example of Sending Command Output to a File on an Attached PC

N o t e

The command you specify must be enclosed in double-quote marks.

A-40