display lldp status

Use display lldp status to display LLDP status.

Syntax

display lldp status [ interface interface-type interface-number ] [ agent { nearest-bridge | nearest-customer | nearest-nontpmr } ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

interface interface-type interface-number: Specifies a port by its type and number.

agent: Specifies an LLDP agent type. If no agent type is specified, the command displays the status information for all LLDP agents.

nearest-bridge: Specifies nearest bridge agents.

nearest-customer: Specifies nearest customer bridge agents.

nearest-nontpmr: Specifies nearest non-TPMR bridge agents.

Usage guidelines

If no port is specified, this command displays the global LLDP status and the LLDP status of each port.

Examples

# Display the global LLDP status and the LLDP status of each port.

<Sysname> display lldp status
Global status of LLDP: Enable
Bridge mode of LLDP: customer-bridge
The current number of LLDP neighbors: 0
The current number of CDP neighbors: 0
LLDP neighbor information last changed time: 0 days, 0 hours, 4 minutes, 40 seconds
Transmit interval              : 30s
Fast transmit interval         : 1s
Transmit max credit            : 5
Hold multiplier                : 4
Reinit delay                   : 2s
Trap interval                  : 5s
Fast start times               : 3

LLDP status information of port 1 [Ten-GigabitEthernet1/0/1]:
LLDP agent  nearest-bridge:
Port status of LLDP            : Enable
Admin status                   : Tx_Rx
Trap flag                      : No
MED trap flag                  : No
Polling interval               : 0s
Number of LLDP neighbors       : 5
Number of MED neighbors        : 2
Number of CDP neighbors        : 0
Number of sent optional TLV    : 12
Number of received unknown TLV : 5
LLDP agent nearest-nontpmr:
Port status of LLDP            : Enable
Admin status                   : Tx_Rx
Trap flag                      : No
Polling interval               : 0s
Number of LLDP neighbors       : 5
Number of MED neighbors        : 2
Number of CDP neighbors        : 0
Number of sent optional TLV    : 12
Number of received unknown TLV : 5

LLDP agent nearest-customer:
Port status of LLDP            : Enable
Admin status                   : Tx_Rx
Trap flag                      : No
Polling interval               : 0s
Number of LLDP neighbors       : 5
Number of MED neighbors        : 2
Number of CDP neighbors        : 0
Number of sent optional TLV    : 12
Number of received unknown TLV : 5

Table 62: Command output

Field

Description

Bridge mode of LLDP

LLDP bridge mode: service-bridge or customer-bridge.

Global status of LLDP

Indicates whether LLDP is globally enabled.

LLDP neighbor information last changed time

Time when the neighbor information was last updated.

Transmit interval

LLDP frame transmission interval.

Hold multiplier

TTL multiplier.

Reinit delay

LLDP reinitialization delay.

Transmit max credit

Token bucket size for sending LLDP frames.

Trap interval

Trap transmission interval.

Fast start times

Number of LLDP frames sent each time fast LLDP frame transmission is triggered.

Port 1

LLDP status of port 1.

Port status of LLDP

Indicates whether LLDP is enabled on the port.

Admin status

LLDP operating mode of the port:

  • Tx_Rx—The port can send and receive LLDP frames.

  • Rx_Only—The port can only receive LLDP frames.

  • Tx_Only—The port can only send LLDP frames.

  • Disable—The port cannot send or receive LLDP frames.

Trap Flag

Indicates whether trapping is enabled.

Polling interval

LLDP polling interval, which is 0 when LLDP polling is disabled.

Number of neighbors

Number of LLDP neighbors connecting to the port.

Number of MED neighbors

Number of MED neighbors connecting to the port.

Number of CDP neighbors

Number of CDP neighbors connecting to the port.

Number of sent optional TLV

Number of optional TLVs contained in an LLDP frame sent through the port.

Number of received unknown TLV

Number of unknown TLVs contained in a received LLDP frame.