display capture-packet file

Function

The display capture-packet file command displays information about obtained packet headers saved in a specified file.

Format

display capture-packet file file-name [ original-packet ]

Parameters

Parameter Description Value
file-name

Specifies a file name.

The value is a string of 1 to 255 characters. The file name should be end with .cap.

original-packet

Displays information about the original packets.

-

Views

All views

Default Level

3: Management level

Task Name and Operations

Task Name Operations
hostdefend debug

Usage Guidelines

Usage Scenario

Remotely obtaining packet headers helps data analysis during troubleshooting. To view and analyze obtained packet header in a specified file, run the display capture-packet file command without downloading the file.

The content of the packet header obtaining file is displayed in the command output as a hexadecimal character string. You can convert the content into a binary file and use the Wireshark to view the packet information.

If original-packet is specified, the original packet information in the .cap file is displayed.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the original packet information about a packet header obtaining instance saved into a file named capture_host_GE3.1.8_2013-05-09-10-45-57.cap. You can also use a special-purpose tool, such as wireshark, to display packet header information stored in a .cap file.
<HUAWEI> display capture-packet file capture_host_GE3.1.8_2013-05-09-10-45-57.cap original-packet
01 80 c2 00 00 0e ac 4e 91 5e 72 b6 88 cc 02 07 
04 00 0e f4 44 11 11 04 15 05 47 69 67 61 62 69 
74 45 74 68 65 72 6e 65 74 34 2f 30 2f 31 06 02 
00 78 0a 15 4e 45 34 30 45 5f 32 33 2e 31 35 5f 

54 39 df d0 cc c5 ac 4e 91 5e 72 b6 81 00 c0 15 
08 00 45 c0 00 28 1b 49 00 00 ff 06 39 c4 1e 00 
15 02 1e 00 15 01 00 b3 da 1c ce 09 88 0a 00 00 
fd 6b 50 10 20 d0 fa b1 00 00 00 00 

54 39 df d0 cc c5 ac 4e 91 5e 72 b6 81 00 c0 07 
08 00 45 c0 00 28 1b 4c 00 00 ff 06 55 c1 1e 00 
07 02 1e 00 07 01 d0 d6 00 b3 00 00 e7 76 d4 b2 
12 3b 50 10 22 38 a3 ab 00 00 00 00 

54 39 df d0 cc c5 ac 4e 91 5e 72 b6 81 00 c0 57 
08 00 45 c0 00 28 1b 4c 00 00 ff 06 b5 c0 1e 00 
57 02 1e 00 57 01 f1 b2 00 b3 00 00 fa b2 88 37 
3c 87 50 10 22 38 f1 c1 00 00 00 0
# Display information about a packet header obtain instance saved into a file named capture_host_GE3.1.8_2013-05-09-10-45-57.cap.
<HUAWEI> display capture-packet file capture_host_GE3.1.8_2013-05-09-10-45-57.cap
a1 b2 c3 d4 00 02 00 04 00 00 00 00 00 00 00 00
00 00 ff ff 00 00 00 09 4d 10 36 db 00 0a d5 81
00 00 00 0c 00 00 00 0c ff 03 c0 21 09 9d 00 08
8a 8c bc c3 4d 10 36 db 00 0a d6 ae
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >