clear lldp neighbors

Clears cached Link Layer Discovery Protocol (LLDP) neighbor information.
Syntax
clear lldp neighbors [ ports { all | ethernet stack-id/slot/port [ to stack-id/slot/port | [ ethernet stack-id/slot/port to stack-id/slot/port | ethernet stack-id/slot/port ]... ] } ]
Parameters
ports
Clears LLDP neighbor information for the specified ports.
all
Clears LLDP neighbor information for all LLDP-capable ports.
ethernet stack-id/slot/port
Clears LLDP neighbor information for the specified Ethernet interface.
to stack-id/slot/port
Clears LLDP neighbor information for a range of Ethernet interfaces.
Modes

Privileged EXEC mode

Usage Guidelines

The device clears cached LLDP neighbor information after a port becomes disabled and the LLDP neighbor information ages out. However, if a port is disabled and then re-enabled before the neighbor information ages out, the device clears the cached LLDP neighbor information when the port is re-enabled.

Examples

The following example clears the cached LLDP neighbor information for a specific port.

device# clear lldp neighbors ports ethernet 1/1/10

The following example clears the cached LLDP neighbor information for all ports.

device# clear lldp neighbors ports all