517
brief: Displays brief information about captured packets.
Usage guidelines
The device displays captured packet data in real time.
• If you specify the write filepath parameters without specifying the raw, brief, or verbose
keyword, this command displays the number of captured packets.
• If you do not specify any one of the raw, brief, verbose, and write filepath parameters, this
command displays brief information about captured packets.
To stop the capture while it is capturing packets, press Ctrl+C.
Use Tab le 9 8 whe
n you configure the options for stopping the capture or rotating the file.
Table 98 Using the packet filter parameters
Purpose Options Remarks
Stop capturing
• Stop based on the capturing
duration:
autostop duration seconds
• Stop based on the number of
captured packets:
limit-captured-frames limit
• Stop based on the number of file
rotations:
autostop files numbers
• Stop based on the file size if file
rotation is disabled:
autostop filesize kilobytes
The packet capture stops if any one of
the limits for the stop options is
reached. The packet capture also
stops if the file system's limit on the
number of files has been reached.
The
autostop filesize
option does not
stop the capture if file rotation is
enabled by the
autostop
files
,
capture-ring-buffer files
, or
capture-ring-buffer
filesize
option.
Rotate files
• Rotate based on the file size:
capture-ring-buffer filesize
kilobytes
• Rotate based on the rotation
interval:
capture-ring-buffer duration
seconds
• Rotate based on the file size
specified for the autostop filesize
kilobytes option:
autostop files numbers autostop
filesize kilobytes
autostop filesize kilobytes
capture-ring-buffer files numbers
The capture rotates the packet file
when any one of the limits for the
rotation options is reached.
If you specify the
autostop filesize
option after the
capture-ring-buffer
filesize
option, the capture rotates the
file based on the file size specified for
the
autostop filesize
option.
Examples
# Capture incoming packets on GigabitEthernet 1/0/1.
<Sysname> packet-capture interface gigabitethernet 1/0/1
Related commands
packet-capture read