--- title: "pktcapture stack-node" slug: "pktcapture-stack-node-3" tags: ["Product Usage", "IPS 11.1.x"] updated: 2026-11-19T12:29:52Z published: 2026-11-19T12:29:52Z canonical: "docs.trellix.com/pktcapture-stack-node-3" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # pktcapture stack-node This command captures packets of NS9500 and NS9600 Sensors configured in stack mode. Based on the Sensor configuration, you can capture packets on a single port or in port pair. The captured packets are saved in the `/tftpboot/capture.pcap` file on the Sensor. The saved file is sent to the Manager or a SCP server based on the configuration made in the Manager. If you have configured the Manager to send captured packets to a SPAN port, you cannot capture packets by using this command. > [!NOTE] > Note > > You can capture packets from the Manager as well. If the Manager is in the process of capturing packets, and at the same time, you run this command, the Sensor will display a message that a packet capture process is already running. Similarly, if you have started packet capture from the CLI, the Manager displays the packet capture **Status** as **Running**. In the Manager, you cannot stop a packet capture session that is started in the CLI and vice-versa. As a best practice, you should start and stop a packet capture session from the same place: either from the CLI or from the Manager. **Syntax** **To capture packets on a single port:** `pktcapture stack-node <stack_node_value> intfport <monitoring_port> <filter>` | Parameter | Description | | --- | --- | | stack_node_value | ID of the Sensor in the stack | | monitoring_port | Port for capturing incoming and outgoing packets | | filter | BPF (Berkeley Packet Filter) for capturing packets. If no filter is provided, all packets are captured. > [!WARNING] > Important > > Starting from 11.1 Update 12 or later, IPS supports both IPv4 and IPv6 traffic filtering across all Sensor CLI packet capture commands. > [!NOTE] > Note > > If you do not want to provide a filter, use an empty string ("") as the parameter value. > [!NOTE] > Note > > For high throughput devices, when capturing from the Manager, ensure filters are provided such that not more than 2 Gbps of traffic is captured. | **To capture packets in port pair:** `pktcapture stack-node <stack_node_value> intfport-pair <monitoring_port1>-<monitoring_port2> <filter>` | Parameter | Description | | --- | --- | | stack_node_value | ID of the Sensor in the stack | | monitoring_port1 | Port for capturing incoming packets | | monitoring_port2 | Port for capturing outgoing packets | | filter | BPF (Berkeley Packet Filter) for capturing packets. If no filter is provided, all packets are captured. > [!NOTE] > Note > > If you do not want to provide a filter, use an empty string ("") as the parameter value. > [!NOTE] > Note > > For high throughput devices, when capturing from the Manager, ensure filters are provided such that not more than 2 Gbps of traffic is captured. | **Applicable to:** NS9600 (stack) and NS9500 (stack)