< Home

display lldp device-classifier information

Function

The display lldp device-classifier information command displays LLDP neighbor information on a switch.

Format

display lldp device-classifier information

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

If a switch has multiple types of LLDP neighbors and needs to deliver different configurations to different types of LLDP neighbors, configure the Python script in advance and run the lldp device-classifier enable command to enable the switch to automatically execute the Python script after the LLDP neighbor changes. If the switch detects that a specified type of LLDP neighbor is added or deleted on an interface, the switch automatically delivers the predefined configuration in the Python script, reducing the configuration workload. You can run the display lldp device-classifier information command to view LLDP neighbor information on the switch, including the LLDP neighbor type.

Prerequisites

The lldp device-classifier enable command has been executed to enable the switch to automatically execute the Python script after the LLDP neighbor changes.

Example

# Display LLDP neighbor information on a switch.

<HUAWEI> display lldp device-classifier information
Capability codes:
    (T) Telephone, (B) Bridge, (R) Router
    (W) WLAN Access Point, (O) Other

Local Intf    Trigger Source    Capability        Exptime(s)
GE0/0/1       LLDP Packet       B,R               149
GE0/0/2       LLDP Packet       B,R               120
Table 1 Description of the display lldp device-classifier information command output
Item Description
Capability codes/Capability LLDP neighbor type:
  • (T) Telephone: IP phone
  • (B) Bridge: switch
  • (R) Router: router
  • (W) WLAN Access Point: AP
  • (O) Other: others
Local Intf Interface of the switch that detects the LLDP
Trigger Source Method used by the switch to detect the LLDP neighbor
  • LLDP Packet: through LLDP packets.
  • CDP Packet: through CDP packets. The lldp compliance cdp receive command must have been executed to enable CDP-compatible LLDP on the interface.
Exptime(s) Remaining time of the LLDP neighbor on the switch, in seconds
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >