Viewing LLDP statistics
For more information, see Displaying LLDP statistics.
Syntax:
show lldp stats [port-list]
The global LLDP statistics command displays an overview of neighbor detection activity on the switch, plus data on the number of frames sent, received, and discarded per-port.
The per-port LLDP statistics command enhances the list of per-port statistics provided by the global statistics command with some additional per-port LLDP statistics.
Global LLDP Counters:
|
The elapsed time since a neighbor was last added or deleted. |
|
The total of new LLDP neighbors detected since the last switch reboot. Disconnecting, and then reconnecting a neighbor increments this counter. |
|
The number of neighbor deletions
from the MIB for AgeOut Count and forced drops for all ports.For example, if the admin status for port on a neighbor device
changes from |
|
The number of valid LLDP neighbors the switch detected, but could not add.This can occur, For example, when a new neighbor is detected when the switch is already supporting the maximum number of neighbors. See Neighbor maximum. |
|
The number of LLDP neighbors dropped on all ports because of Time-to-Live expiring. |
Per-Port LLDP Counters:
|
The total number of valid, inbound
LLDP advertisements received from any neighbors on |
|
The total number of LLDP advertisements sent from port-list. |
|
The total number of inbound LLDP advertisements discarded by port-list.This can occur, For example, when a new neighbor is detected on the port, but the switch is already supporting the maximum number of neighbors. See Neighbor maximum. This can also be an indication of advertisement formatting problems in the neighbor device. |
|
The total number of invalid LLDP advertisements received on the port.An invalid advertisement can be caused by header formatting problems in the neighbor device. |
|
The total number of LLDP TLVs received on a port with a type value in the reserved range.This can be caused by a basic management TLV from a later LLDP version than the one currently running on the switch. |
|
The total number of LLDP TLVs discarded for any reason. In this case, the advertisement carrying the TLV may be accepted, but the individual TLV is not usable. |
|
The number of LLDP neighbors dropped on the port because of Time-to-Live expiring. |
Examples:
A global LLDP statistics display
switch(config)# show lldp stats LLDP Device Statistics Neighbor Entries List Last Updated : 2 hours New Neighbor Entries Count : 20 Neighbor Entries Deleted Count : 20 Neighbor Entries Dropped Count : 0 Neighbor Entries AgeOut Count : 20 LLDP Port Statistics Port | NumFramesRecvd NumFramesSent NumFramesDiscarded ------ + -------------- ------------- ------------------ A1 | 97317 97843 0 A2 | 21 12 0 A3 | 0 0 0 A4 | 446 252 0 A5 | 0 0 0 A6 | 0 0 0 A7 | 0 0 0 A8 | 0 0 0
A per-port LLDP statistics display
switch(config)# show lldp stats 1 LLDP Port Statistics Detail PortName : 1 Frames Discarded : 0 Frames Invalid : 0 Frames Received : 7309 Frames Sent : 7231 TLVs Unrecognized : 0 TLVs Discarded : 0 Neighbor Ageouts : 0