Networking > Troubleshooting & Monitoring > Packet Capture
set capture session
<session-number> interface <port-uuid-name>
direction <direction>
command.
If you don't specify a file, the output displays 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.
Use the get capture sessions
command
to see all configured capture sessions.
Option | Description |
---|---|
<session-number> | Session ID argument in numbers |
<filename> | Capture file name Allowed pattern: ^[^/ *;&|]+$ |
<packet-count> | Packet count value greater than or equal to 1 |
<expression> | Packet capture expression Allowed pattern: ^.*$ |