The display lldp device-classifier information command displays LLDP neighbor information on a switch.
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.
# 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
Item | Description |
---|---|
Capability codes/Capability | LLDP neighbor type:
|
Local Intf | Interface of the switch that detects the LLDP |
Trigger Source | Method used by the switch to detect the LLDP neighbor
|
Exptime(s) | Remaining time of the LLDP neighbor on the switch, in seconds |