display lldp statistics

Function

The display lldp statistics command displays statistics about Link Layer Discovery Protocol (LLDP) packets that all interfaces send and receive or LLDP packets that a specified interface sends and receives.

Format

display lldp statistics [ interface { interface-type interface-number | interface-name } ]

Parameters

Parameter Description Value
interface interface-type interface-number

Display statistics about LLDP packets that a specified interface sends and receives.

If this parameter is not specified, statistics about LLDP packets that all interface send and receive will be displayed.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
lldp read

Usage Guidelines

Usage Scenario

To view statistics about LLDP packets that a device sends and receives, run the display lldp statistics command. The command output helps diagnose faults.

NOTE:

Before you view statistics about LLDP packets that a device sends and receives for a specified period of time, run the reset lldp statistics command to delete all existing statistics.

Prerequisites

LLDP has been globally enabled using the lldp enable command in the system view, and LLDP has also been enabled on interfaces using the lldp enable command in the interface view.

Precautions

If you want to use the

display lldp statistics command to locate faults, note that:

  • If two directly connected devices have LLDP enabled at different time, the number of LLDP packets sent or received by one device may be different from the number of LLDP packets received or sent by the other device.
  • In a specific period of time, if the number of LLDP packets sent by a local device increases but the number of LLDP packets received by a remote device remains unchanged, the link between the local and remote devices may be faulty.
  • In a specific period of time, if the number of LLDP packets sent by a local device is the same as the number of LLDP packets received by a remote device but the local device cannot learn the remote device status, the local device cannot identify the type-length-value (TLV) information encapsulated in LLDP packets sent by the remote device.

Example

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

# Display statistics about LLDP packets that a device sends and receives.
<HUAWEI> display lldp statistics
LLDP statistics global Information:
Statistics for Gigabitethernet0/1/16:
Transmitted Frames Total:    28         
Received Frames Total:       25              Frames Discarded Total:   0         
Frames Error Total:          0               TLVs Discarded Total:     0         
TLVs Unrecognized Total:     0               Neighbors Expired Total:  0          
DCBX TLVs Transmitted Total: 0               DCBX TLVs Received Total: 0
Med TLVs Transmitted Total:  0               Med TLVs Received Total:  0          
Last cleared Time:           never

Statistics for Gigabitethernet0/1/17:
Transmitted Frames Total:    28         
Received Frames Total:       25              Frames Discarded Total:   0         
Frames Error Total:          0               TLVs Discarded Total:     0         
TLVs Unrecognized Total:     0               Neighbors Expired Total:  0          
DCBX TLVs Transmitted Total: 0               DCBX TLVs Received Total: 0
Med TLVs Transmitted Total:  0               Med TLVs Received Total:  0          
Last cleared Time:           never
Table 1 Description of the display lldp statistics command output
Item Description
LLDP statistics global Information

Statistics about LLDP packets that a device sends and receives.

Transmitted Frames Total

Number of sent LLDP packets.

Frames Discarded Total

Number of dropped LLDP packets.

Frames Error Total

Number of received error LLDP packets.

Received Frames Total

Number of received LLDP packets.

TLVs Discarded Total

Number of dropped LLDP TLVs.

TLVs Unrecognized Total

Number of unrecognized TLVs received.

Neighbors Expired Total

Number of aged remote neighbors.

DCBX TLVs Transmitted Total

Number of sent Data Center Bridging Capabilities Exchange (DCBX) TLVs.

DCBX TLVs Received Total

Number of received DCBX TLVs.

Med TLVs Transmitted Total

Number of sent MED TLVs.

Med TLVs Received Total

Number of received Med TLVs.

Last cleared Time

Date and time when statistics about LLDP packets were deleted last time.

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