copy command-output
Syntax
copy command-output " " { | [vrf ]}
Description
Copies the specified command output using TFTP, SFTP, or USB.
Command context
Manager (#
)
Parameters
-
-
Specifies the command from which you want to obtain its output. Required.NOTE:Users with auditor rights can specify these two commands only:
show accounting log
show events
-
{
| [vrf ]} -
Select either the storage URL or the remote URL for the destination of the copied command output. Required.
-
-
Specifies the USB to copy command output.
Syntax:
{usb}:/
-
-
Specifies the URL to copy the command output.
Syntax:
{tftp:// | sftp://
@}{ | }[: ][;blocksize= ]/ -
vrf
-
Specifies the VRF name. The default VRF name is default. Optional.
-
Authority
Auditors or Administrators or local user group members with execution rights for this command. Auditors can execute this command from the auditor context (auditor>) only.
Examples
Copying the output from theshow events
command to a remote URL:
switch#copy command-output "show events" tftp://10.100.0.12/file
Copying the output from theshow tech
命令一个远程URL with a VRF namedmgmt:
switch#copy command-output "show tech" tftp://10.100.0.12/file vrf mgmt
Copying the output from theshow events
命令文件命名events
on a USB drive:
switch#copy command-output "show events" usb:/events