display capture-packet information

Function

The display capture-packet information command displays the information about all packet head obtaining instances.

Format

display capture-packet information [ instance-id instance-id [ from begin-packet-number [ to end-packet-number ] ] [ format-cap ] ] [ verbose ]

Parameters

Parameter Description Value
instance-id instance-id

Specifies the ID of a packet head obtaining instance.

It is an integer ranging from 1 to 8.

from begin-packet-number

Specifies the start packet number corresponding to the ID of the packet head obtaining instance.

It is an integer ranging from 1 to 6000.

to end-packet-number

Specifies the end packet number corresponding to the ID of the packet head obtaining instance.

It is an integer ranging from 1 to 6000.

format-cap

Saves the displayed information as a .cap file for future query.

If no CF card is available or the available space on the CF card is less than 35 MB, information about the packet header obtaining instance cannot be saved. In this case, you need to set this parameter.

verbose

Indicates detailed information about the packet head obtaining instance.

-

Views

All views

Default Level

3: Management level

Task Name and Operations

Task Name Operations
hostdefend debug

Usage Guidelines

Usage Scenario

After an instance for obtaining forwarded packet headers or an instance for obtaining packet headers sent to the CPU is configured, you can run the display capture-packet information command to view the information about the instance, including the instance where packet head obtaining stopped.

The packet information displayed in the command output includes only packet headers, without any sensitive data.

Precautions

This command is used to view the information about a packet instance whose ID is specified. If no instance ID is specified, brief information about all instances is displayed.

Example

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

# Display information about packet header obtaining instance 1.
<HUAWEI> display capture-packet information instance-id 1
Total capture instance number is            1
 Forward capture inbound instance number is  0
 Forward capture outbound instance number is 0
 Host capture instance number is             1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
instance-id                               : 1
instance status                           : running
instance total time length of set         : 10000s
instance remain time length               : 9951s
instance packet number of set             : 6000
instance file length of set               : 2M
instance total memory size of set         : 1M
instance capture packet number            : 24
instance capture packet size              : 0B
instance saved packet number              : 0
instance saved packet size                : 0B
instance deleted packet number            : 0
instance deleted packet size              : 0B
instance capture first packet time        : 2018-04-12 13:19:45
instance capture last packet time         : 2018-04-12 13:20:34
instance acl number/name                  : ---
instance packet-num in memory             : <1-24>
instance saved packet device name         : cfcard:/logfile/
instance save packet file name            : capture_host_all_Eth0.1.0_2018-04-12-13-19-45.cap
instance link type is                     : ethernet
instance interface name is                : Ethernet0/1/0
instance type is                          : local host
instance systemid is                      : all
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
packet NO        : 1
packet length is : 64
capture-time     : 2018-04-12 13:19:57
  L2 Type: Ethernet
    Source Mac   : 00e0-fc21-0010
    Dest Mac     : 00e0-fc11-0010
    Ethernet type/length: 0x0800
    PeVlanid     : 0
    CeVlanid     : 0

  L3 Type: IPv4
    Protocol Num : 1
    Source Ip    : 10.1.1.2
    Dest Ip      : 10.1.1.1
    TOS/DSCP     : 0/0
    TTL          : 255

  L4 Type: ICMP
    Source Port  : --
    Dest Port    : --

0000 38 26 71 11 00 10 38 26 71 21 00 10 08 00 45 00
0010 00 54 08 02 00 00 ff 01 9d a2 0a 01 01 02 0a 01
0020 01 01 08 00 3c 8b 24 00 00 02 00 19 00 00 01 09
0030 ff 01 50 4e 47 00 00 00 00 00 00 00 00 00 00 00

packet NO        : 2
packet length is : 64
capture-time     : 2018-04-12 13:19:59
  L2 Type: Ethernet
    Source Mac   : 00e0-fc21-0010
    Dest Mac     : 00e0-fc11-0010
    Ethernet type/length: 0x86dd
    PeVlanid     : 0
    CeVlanid     : 0

  L3 Type: IPv6
    Protocol Num : 58
    Source Ip    : 100::2
    Dest Ip      : 100::1
    Traffic Class/DSCP     : 0/0
    Flow Label             : 0
    Hop Limit              : 64

  L4 Type: ICMP6
    Source Port  : --
    Dest Port    : --

0000 38 26 71 11 00 10 38 26 71 21 00 10 86 dd 60 00
0010 00 00 00 40 3a 40 01 00 00 00 00 00 00 00 00 00
0020 00 00 00 00 00 02 01 00 00 00 00 00 00 00 00 00
0030 00 00 00 00 00 01 80 00 58 82 24 00 01 00 00 00
Table 1 Description of the display capture-packet information command output
Item Description
instance-id

ID of a packet header obtaining instance.

Total capture instance number is

Total number of packet header obtaining instances.

instance status

Packet header obtaining status:

  • running: indicates that packet headers are being obtained.
  • stopped: indicates that packet header obtaining has stopped.
instance total time length of set

Timeout time of packet header obtaining.

instance remain time length

Remaining time for packet header obtaining. If the packet header obtaining status is stopped, ignore this value.

instance packet number of set

Set number of packets in the packet header obtaining file.

instance file length of set

Set size of the packet header obtaining file.

instance total memory size of set

Set size of the packet header obtaining memory.

instance capture packet number

Number of obtained packets.

instance capture packet size

Length of obtained packets.

instance saved packet number

Number of saved packets.

instance saved packet size

Length of saved packets.

instance deleted packet number

Number of deleted packets.

instance deleted packet size

Length of deleted packets.

instance capture first packet time

Time when the first packet was obtained.

instance capture last packet time

Time when the last packet was obtained.

instance acl number/name

ACL number or name of a packet header obtaining instance.

instance packet-num in memory

Number of obtained packet headers in the main control board memory.

instance saved packet device name

Path of the file that saves the packet header information.

instance save packet file name

Name of the packet header obtaining file.

instance link type is

Link type of packets.

instance interface name is

Name of the interface on which the packet header obtaining instance is configured.

instance type is

Type of packets whose headers are obtained.

  • forwarding: packets to be forwarded.
  • local-host: packets to be sent to the CPU.
instance systemid is

System ID.

instance remain time length be deleted

Remaining time for deleting the packet headers.

Forward capture inbound instance number is

Number of inbound forward packet header obtaining instances.

Forward capture outbound instance number is

Number of outbound forward packet header obtaining instances.

Host capture instance number is

Number of host packet header obtaining instances.

packet NO

Sequence number of a packet header in the packet head obtaining instance.

packet length is

Length of each packet in the packet header obtaining file.

capture-time

Time when the packet was obtained.

The bold part of the seven lines following the parameter in the command output is the content of the obtained packet.

L2 Type

Layer 2 protocol type.

Ethernet type/length

Ethernet type.

Source Mac

Source MAC address.

Source Ip

Source IP address.

Source Port

Source port number.

Dest Mac

Destination MAC address.

Dest Ip

Destination IP address.

Dest Port

Destination port number.

L3 Type

Layer 3 protocol type.

L4 Type

Layer 4 protocol type.

PeVlanid

Outer VLAN ID of obtained packets.

CeVlanid

Inner VLAN ID of obtained packets.

Protocol Num

Protocol number.

TOS/DSCP

TOS/DSCP value.

TTL

TTL of obtained packets.

Traffic Class/DSCP

Traffic class/DSCP value.

Flow Label

IPv6 flow label.

Hop Limit

Hop count limit.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >