Displaying LLDP statistics

The show lldp statistics command displays an overview of LLDP neighbor detection on the device, as well as packet counters and protocol statistics. The statistics are displayed on a global basis.

The following shows an example report.

device#show lldp statistics
Last neighbor change time: 23 hours 50 minutes 40 seconds ago
Neighbor entries added          : 14
Neighbor entries deleted        : 5
Neighbor entries aged out       : 4
Neighbor advertisements dropped : 0
Port       Tx Pkts   Rx Pkts   Rx Pkts   Rx Pkts   Rx TLVs   Rx TLVs Neighbors
             Total     Total  w/Errors Discarded Unrecognz Discarded  Aged Out
1            60963     75179         0         0         0         0         4
2                0         0         0         0         0         0         0
3            60963     60963         0         0         0         0         0
4            60963    121925         0         0         0         0         0
5                0         0         0         0         0         0         0
6                0         0         0         0         0         0         0
7                0         0         0         0         0         0         0
8                0         0         0         0         0         0         0
9                0         0         0         0         0         0         0
10           60974         0         0         0         0         0         0
11               0         0         0         0         0         0         0
12               0         0         0         0         0         0         0
13               0         0         0         0         0         0         0
14               0         0         0         0         0         0         0
Note: You can reset LLDP statistics using the CLI command clear LLDP statistics . Refer to Resetting LLDP statistics.

The following table describes the information displayed by the show lldp statistics command.

Field

Description

Last neighbor change time

The elapsed time (in hours, minutes, and seconds) since a neighbor last advertised information. For example, the elapsed time since a neighbor was last added, deleted, or its advertised information changed.

Neighbor entries added

The number of new LLDP neighbors detected since the last reboot or since the last time the clear lldp statistics all command was issued.

Neighbor entries deleted

The number of LLDP neighbors deleted since the last reboot or since the last time the clear lldp statistics all command was issued.

Neighbor entries aged out

The number of LLDP neighbors dropped on all ports after the time-to-live expired.

Note that LLDP entries age out naturally when a port cable or module is disconnected or when a port becomes disabled. However, if a disabled port is re-enabled, the system will delete the old LLDP entries.

Neighbor advertisements dropped

The number of valid LLDP neighbors the device detected, but could not add. This can occur, for example, when a new neighbor is detected and the device is already supporting the maximum number of neighbors possible. This can also occur when an LLDPDU is missing a mandatory TLV or is not formatted correctly.

Port

The local port number.

Tx Pkts Total

The number of LLDP packets the port transmitted.

Rx Pkts Total

The number of LLDP packets the port received.

Rx Pkts w/Errors

The number of LLDP packets the port received that have one or more detectable errors.

Rx Pkts Discarded

The number of LLDP packets the port received then discarded.

Rx TLVs Unrecognz

The number of TLVs the port received that were not recognized by the LLDP local agent. Unrecognized TLVs are retained by the system and can be viewed in the output of the show LLDP neighbors detail command or retrieved through SNMP.

Rx TLVs Discarded

The number of TLVs the port received then discarded.

Neighbors Aged Out

The number of times a neighbor information was deleted because its TTL timer expired.