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:
Thediagnosticcommand must be entered prior to thediag utilities tsharkcommand.
Use thedelete-fileform of this command to delete the most recent capture file.
Sincefileanddelete-file是可选的,基本命令的行为吗diag utilities tsharkdoesnotsave 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.