View LLDP Neighbor Information

About this task

Use this procedure to display LLDP neighbor information.

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. To view LLDP neighbor information, enter:

    show lldp neighbor {[port {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}] | [summary {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}] [med]}

Variable Definitions

The following table defines parameters for the show lldp neighbor command.

Variable

Value

port {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

Displays LLDP neighbor information on the specified port.

Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

med

Displays LLDP neighbors learned based on LLDP-MED TLV information.

summary {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

Displays the summary of LLDP neighbors of a port or all ports on the switch.

Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.