Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

packet-capture (forwarding-options)

Syntax

Hierarchy Level

Description

Configure packet-capture that enables capturing real-time network data packets on the device for analysis and troubleshooting.

Options

disable

Disable packet-capture.

file

Parameters for file that contains captured packets

  • filename—Name of the target file.

  • files—Maximum number of files to capture.

    • Range: 2 through 10000.

  • no-world-readable—Prevents any user to read the packet-capture files.

  • size—Maximum file size.

    • Range: 1024 through 104857600

  • world-readable—Any users can read the packet-capture files.

max-packets-per-second

Threshold of packet capture per second before dropping.

  • Range: 1 through 160000

  • Default: 65535

maximum-capture-size

Maximum packet size to be captured (bytes).

  • Range: 68 through 10000

rate

Ratio of packets to be captured (1 out of N).

  • Range: 1 through 16000000

  • Default: 1

run-length

Number of packet capture after initial trigger.

  • Range: 0 through 20

  • Default: 0

traceoptions Packet-capture trace options.

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.