516
range is 0 to 2147483647, and the default value is 10. If you set the limit to 0, the maximum number
of captured packets is unlimited.
limit-frame-size bytes
: Sets the maximum number of bytes to capture for a packet. The value range
is 64 to 8000 bytes, and the default value is 8000 bytes.
autostop filesize
kilobytes
: Stops capturing packets if the maximum packet file size is exceeded
when file rotation is disabled. The
kilobytes
argument sets the maximum packet file size. The value
range is 1 to 65536 kilobytes. If you do not set a limit, the packet file size is unlimited.
autostop
duration
seconds
: Stops capturing packets when the capturing duration expires. The
seconds
argument sets the capturing duration. The value range is 1 to 2147483647 seconds. If you
do not set a limit, the capturing duration is unlimited.
autostop
files numbers
: Stops capturing packets when the maximum number of file rotations is
reached. The
numbers
argument sets the maximum number of file rotations. The value range is 2 to
64. The capture creates a file to store packet data when a rotation is triggered. The first rotation
occurs when the capture starts. If you do not set a limit, the number of file rotations is unlimited. This
option must be used with the
autostop
filesize
kilobytes
,
capture-ring-buffer
filesize
kilobytes
, or
capture-ring-buffer
duration
seconds
option.
capture-ring-buffer
filesize
kilobytes
: Rotates the packet file when the maximum file size is
reached. The
kilobytes
argument sets the maximum file size. The value range is 1 to 65536
kilobytes.
capture-ring-buffer
duration
seconds
: Rotates the packet file when the rotation interval expires.
The
seconds
argument sets the rotation interval. The value range is 1 to 2147483647 seconds.
capture-ring-buffer
files
numbers
: Sets the maximum number of packet files for file rotation, in the
range of 2 to 64. If a file rotation occurs after this limit is reached, the capture deletes the oldest file
and creates a new file to store packet data. If you do not set a limit, the number of packet files is
unlimited. This option must be used with the
autostop
filesize
kilobytes
,
capture-ring-buffer
filesize
kilobytes
, or
capture-ring-buffer
duration
seconds
option.
write filepath
: Specifies the full path of the packet file to store captured packet data. The path must
be a case-sensitive string of up to 64 characters. The filename extension must be
.pcap
. You do not
need to create the file. If file rotation is disabled, the capture creates a packet file with the specified
file name. If file rotation is enabled, the capture automatically creates a packet file for each rotation,
and renames the file to include a sequence number and timestamp. The sequence number
increases by 1 for each file rotation. For example, set the file name to
a.pcap
. For the first rotation,
the capture will create a packet file named
a_00001_20140211034151.pcap
. For the second
rotation, the capture will create a packet file named
a_00002_20140211034207.pcap
. For more
information about setting a file path, see file system management in
Fundamentals Configuration
Guide
.
raw
: Displays packet contents in hexadecimal notation. If you do not specify this keyword, the
capture displays packet data in a human-readable format.
verbose
: Displays detailed information about captured packets.