---
title: "pktcapturefile"
slug: "pktcapturefile"
tags: ["Product Usage", "IPS 10.1.10"]
updated: 2026-10-05T15:40:56Z
published: 2026-10-05T15:40:56Z
canonical: "docs.trellix.com/pktcapturefile"
---
> ## 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).
**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:**
NS9500 (standalone and stack), NS9x00, NS7500, NS7x50, NS7x00, NS5x00, NS3500, NS3x00 series, and Virtual IPS Sensors.