Verify the LLDP interface status and configuration using the show lldp interface command, monitor and maintain LLDP on the system with commands such as clear lldp counters, show lldp entry, show lldp errors, show lldp neighbors, and show lldp traffic, and collect or clear LLDP interface statistics with the show lldp traffic interface and clear lldp counters interface commands.
Verify the LLDP interface configuration
To verify the LLDP interface status and configuration, use the show lldp interface command as shown in the following example:
Router# show lldp interface HundredGigE 0/1/0/7
Wed Apr 13 13:22:30.501 DST
HundredGigE0/1/0/7:
Tx: enabled
Rx: enabled
Tx state: IDLE
Rx state: WAIT FOR FRAME
To monitor and maintain LLDP on the system or get information about LLDP neighbors, use one of the following commands:
| Command | Description |
|---|---|
clear lldp counters |
Resets LLDP traffic counters or LLDP neighbor information. |
show lldp entry |
Displays detailed information about LLDP neighbors. |
show lldp errors |
Displays LLDP error and overflow statistics. |
show lldp neighbors |
Displays information about LLDP neighbors. |
show lldp traffic |
Displays statistics for LLDP traffic. |
To collect or clear LLDP interface statistics, you can use the following commands:
Command |
Description |
|---|---|
show lldp traffic interface interface_name |
Displays LLDP traffic statistics for the specified interface. |
clear lldp counters interface interface_name |
Clears LLDP traffic statistics for the specified interface. Global statistics remains intact. Similarly, clearing global statistics does not impact the interface statistics. |
Examples for LLDP interface statistics
This example shows interface statistics for gigabitEthernet0/0/0/0 :
Router#show lldp traffic interface gigabitEthernet0/0/0/0
This example clears the interface statistics for gigabitEthernet0/0/0/0 .
Router#show lldp traffic interface gigabitEthernet0/0/0/0
Running configuration
Router#show lldp traffic interface gigabitEthernet 0/2/0/8
Wed Aug 24 17:38:11.829 IST
LLDP Interface statistics:
Total frames out: 28786
Total frames in: 38417
Total frames received in error: 0
Total frames out error: 0
Total frames discarded: 0
Total TLVs discarded: 0
Total TLVs unrecognized: 0