--- title: "pktcapturefile" slug: "pktcapturefile-3" tags: ["Product Usage", "IPS 11.1.x"] updated: 2026-11-19T12:29:52Z published: 2026-11-19T12:29:52Z canonical: "docs.trellix.com/pktcapturefile-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. # pktcapturefile This command uploads the packet capture file to a SCP server or deletes a packet capture file from the Sensor. The action to upload or delete is passed as a parameter to this command. > [!NOTE] > Note > > Before running the command, you should configure a valid SCP server. You can configure a SCP server by using `set scpserver ip` command. For example: > > ``` > set scpserver ip 192.168.1.1 > ``` > > For more information, see [set scpserver ip](/network-and-platform/docs/set-scpserver-ip-3). **Syntax:** `pktcapturefile <upload/discard>` | Parameter | Description | | --- | --- | | upload | Uploads a packet capture file to the SCP server. By default, the captured packets are saved in the `/tftpboot/capture.pcap` file on the Sensor. This command uploads the `capture.pcap` file to the SCP server and deletes the file from the `/tftpboot` directory after the upload. | | discard | Deletes the `/tftpboot/capture.pcap` packet capture file in the Sensor. | **Sample Output:** `IntruDbg#> pktcapturefile upload` `uploading capture file to scp server 192.168.1.15...` `Please enter the SCP User Name : root` `Transfer Successful` **Applicable to:** NS9600 (standalone and stack), NS9500 (standalone and stack), NS9x00, NS7600, NS7500, NS7x50, NS7x00, NS5x00, NS3600, NS3500, NS3x00 series, and Virtual IPS Sensors.