Networking > Troubleshooting & Monitoring > Packet Capture

set capture session <dpd-number-session-id-arg> direction <capture-direction-arg>

Configure a packet capture using the current interface in the path. You can change the current interface and run this command again to configure multiple interfaces on the same packet capture session.

Start the packet capture with the set capture session <session-number> command in either basic or path mode, or with the set capture session <session-number> [file <filename> [count <packet-count> [expression <expression> command in basic mode.

Use the get capture sesssions command in basic mode to see all configured capture sessions.

Parameters:

Option Description
<session-number> Session ID argument in numbers
<capture-direction> Packet capture direction parameter
Allowed values: input, output, dual


Example:

nsx-edge-1(path)> set capture session 1 direction both nsx-edge-1(path)>

Mode:

Path

Availability: