copy diag-dump local-file
Syntax
copy diag-dump local-file {<远程url >[vrf ] | }
Description
Copies the diagnostic information stored in a local file using TFTP, SFTP, or USB.
Command context
Manager (#
)
Parameters
-
{<远程url >[vrf
] | } -
Select either the storage URL or the remote URL for the destination of the copied command output. Required.
-
<远程url >
-
Specifies the URL to copy the command output.
Syntax:
{tftp:// | sftp://
@}{ | }[: ][;blocksize= ]/ -
vrf
-
Specifies the VRF name. The default VRF name is default. Optional.
-
-
Specifies the USB to copy command output.
Syntax:
{usb}:/
-
Authority
Administrators or local user group members with execution rights for this command.
Usage
Thecopy diag-dump local-file
command can be used only after the information is captured. Run thediag-dump
command before you enter thecopy diag-dump local-file
command to capture the diagnostic information for the specified feature into the local file.
Examples
Copying the output from the local file to a remote URL:
开关#diag-dump aaa基本local-file开关#copy diag-dump local-file tftp://10.100.0.12/diagdump.txt
Copying the output from the local file to a USB drive:
开关#diag-dump aaa基本local-file开关#copy diag-dump local-file usb:/diagdump.txt