copy command-output

Syntax

copy command-output "<COMMAND>" {<STORAGE-URL> | <REMOTE-URL> [vrf <VRF-NAME>]}

Description

Copies the specified command output using TFTP, SFTP, or USB.

Command context

Manager (#)

Parameters

<COMMAND>

Specifies the command from which you want to obtain its output. Required.

{<STORAGE-URL> | <REMOTE-URL> [vrf <VRF-NAME>]}

Select either the storage URL or the remote URL for the destination of the copied command output. Required.

<STORAGE-URL>

Specifies the USB to copy command output.

Syntax: {usb}:/<FILE>

<REMOTE-URL>

Specifies the URL to copy the command output.

Syntax: {tftp:// | sftp://<USER>@}{<IP> | <HOST>}[:<PORT>][;blocksize=<VAL>]/<FILE>

vrf <VRF-NAME>

Specifies the VRF name. The default VRF name is default. Optional.

Authority

Administrators

Examples

Copying the output from the show events command to a remote URL:

switch# copy command-output "show events" tftp://10.100.0.12/file

Copying the output from the show tech command to a remote URL with a VRF named mgmt:

switch# copy command-output "show tech" tftp://10.100.0.12/file vrf mgmt

Copying the output from the show events command to a file named events on a USB drive:

switch# copy command-output "show events" usb:/events