The packet-capture queue command saves the captured packets in the specified queue to the device.
| Parameter | Description | Value |
|---|---|---|
hardware |
Indicates packet capture based on the hardware chip. FW packets first pass through the NP chip and then are sent to the MPU CPU. After the hardware fast forwarding function is enabled by default, only some traffic is sent to the CPU. Therefore, the packets captured based on the hardware chip are more comprehensive. In addition, it helps reduce the CPU usage and is therefore recommended. |
- |
queue-id |
Specifies the queue for the packet capture interface to store captured packets. |
The value is an integer that ranges from 0 to 3 for the root system and from 0 to 1 for the virtual system. The default value is 0. |
file-name |
Specifies the file name of the queue for storing captured packets. This parameter is case-insensitive. |
The file name extension must be .cap, and the default storage path is hda1:/. |
Run the packet-capture queue queue-id to-file file-name command in the root system to export data in the memory as a .cap file and saves the file in the CF card. In the virtual system, run the packet-capture queue queue-id to-file file-name command to convert the .txt file that stores the captured packet data to a .cap file and saves the file in the CF card.
After finishing network issue locating, to ensure information security and prevent the device performance from being affected, run the
undo packet-capture command to stop packet capture and delete the packet capture configuration, run the reset packet-capture queue all command to clear the packet capture queue, and run the reset packet-capture statistic command to clear the packet capture statistics.