Networking > Troubleshooting & Monitoring > Packet Capture

start capture interface <interface-name> [direction <direction>] [core <core-id>] [snaplen <capture-snaplen-arg] [file <filename>] [file-count <file-count>] [expression <expression>]

Start a packet capture on the specified interface in the given direction and core. If you do not specify a file, the output is displayed on the terminal. If file is specified, the file count can be specified to enable rotating capture files, where each file will be of size 100MB. Multiple files will be bundled into single tarfile. Type Control-C to end the packet capture. You can filter the capture using tcpdump expressions. The expression must be the last argument of the command. The expression is a keyword followed by a value. You can specify multiple keyword-value pairs.

Parameters:

Option Description
<interface-name> Network interface argument
<capture-direction> Packet capture direction parameter
Allowed values: input, output, dual
<capture-snaplen> Packet capture snapshot length
<filename> Capture file name
Allowed pattern: ^[^/ *;&|]+$
<file-count> File count for rotating capture (1-25)
<expression> Packet capture expression
Allowed pattern: ^.*$


Mode:

Basic

Availability: