View Port-based LLDP Statistics

Use this procedure to verify port-based LLDP statistics.

About this task

LLDP operates at the interface level. Enabling FA on a port automatically enables LLDP transmission and reception on the port. It also enables traffic tagging and disables spanning tree on that port.

Enabling FA on an MLT enables LLDP transmission and reception on all ports in the MLT. 

Note

Note

When FA is enabled on ports in an MLT or LACP MLT, tagging is enabled and spanning tree is disabled on those ports.

When a port is removed from an MLT, LLDP transmission on that port stops and spanning tree is enabled. Any I-SID-to-VLAN mappings on that port are removed, if not already learned on any other port in the MLT. This also causes the Switched UNI I-SID to be deleted from the MLT. If however, the mappings are learned on another port on the MLT, then the Switched UNI I-SID continues to exist for that MLT.

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. To verify successful LLDP transmission on a port, enter:

    show lldp tx-stats port {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

  3. To verify that a port receives LLDP PDUs successfully, enter:

    show lldp rx-stats port {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

  4. Optional: To clear LLDP statistics on a port, or ports, enter:

    clear lldp stats {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

Example

Verify LLDP transmission statistics on a port:

Switch:1>en
Switch:1#show lldp tx-stats port 1/2
================================================================
                                 LLDP Tx-Stats
================================================================

PORT NUM                 FRAMES
----------------------------------------------------------------
1/2                      100

Verify that the port is receiving LLDP PDUs:

Switch:1#show lldp rx-stats port 1/2

================================================================================
                                 LLDP Rx-Stats
================================================================================

Port      Frames      Frames   Frames   TLVs        TLVs           AgeOuts
Num       Discarded   Errors   Total    Discarded   Unsupported
                                        (Non FA)    (Non FA)
--------------------------------------------------------------------------------
1/2       0           0        46       0           0              0