Networking > Troubleshooting & Monitoring > Packet Capture

set capture session <dpd-number-session-id-arg> interface <variable-interface-name> direction <capture-direction-arg>

Configure a packet capture using the specified interface. You can run this command multiple times to configure multiple interfaces on the same packet capture session.

To run the packet capture using this configuration, use the set capture session <session-number> [file <filename>] [count <packet-count>] [expression <expression>] command.

If you need to capture packets from only one interface, you can configure and run the packet capture with a single command: start capture interface <interface-name> [file <filename>] [count <packet-count>] [expression <expression>].

Use the get capture sessions command to see all configured capture sessions.

Parameters:

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


Example:

kvm-1> set capture session 1 interface b592a7c8-4e21-493e-b0fc-0b1d152c949c direction dual kvm-1> get capture session 1 Packet Capture Session ID : 1 PORTS : ['b592a7c8-4e21-493e-b0fc-0b1d152c949c']

Mode:

Basic

Availability: