diagnostic
Syntax
diagnostic diag utilities tshark [file] diag utilities tshark [delete-file]
Description
Captures packets from a mirror-to-cpu session, and save the most recent 32MB to pcap file which can then be copied and analyzed. When capturing a mirror-to-cpu session to a file, packets will not be dumped to the console.
NOTE:
Thediagnostic
command must be entered prior to thediag utilities tshark
command.
Use thedelete-file
form of this command to delete the most recent capture file.
Sincefile
anddelete-file
是可选的,基本命令的行为吗diag utilities tshark
doesnotsave anything to a file, and instead dumps the tshark session to the console untilCTRL + cis entered.
Command context
Manager (#
)
Parameters
-
file
-
Saves captured packets to a temporary file.
-
delete-file
-
Deletes the most recent captured file.
Authority
Administrators or local user group members with execution rights for this command.
Example
Performing diagnostic:
switch#diagnosticswitch#diagnostic utilities tshark fileInspecting traffic mirrored to the CPU until Ctrl-C is entered ^CEnding traffic inspection.