Enables LLDP SNMP notifications and syslog messages.

lldp enable snmp notifications ports { all | [ ethernet unit/slot/port [ to unit/slot/port ] ... ] }
no lldp enable snmp notifications ports { all | [ ethernet unit/slot/port [ to unit/slot/port ] ... ] }

LLDP SNMP notifications and corresponding syslog messages are disabled.

By default, the device will send no more than one SNMP notification and Syslog message within a five second period.

ports
Enables LLDP SNMP notifications and syslog messages for ports.
all
Enables LLDP SNMP notifications and syslog messages for all LLDP-capable ports.
ethernet unit/slot/port
Enables LLDP SNMP notifications and syslog messages for a specific Ethernet port.
to unit/slot/port
Enables LLDP SNMP notifications and syslog messages for a range of Ethernet ports.

Global configuration mode

When you enable LLDP SNMP notifications, the device sends traps and corresponding syslog messages whenever there is a change in the LLDP data received from neighboring devices.

You can specify a list of ports, separated by a space, or a range of ports, or you can combine lists and ranges.

The command cannot support LAG virtual interfaces. Attempting to configure them will have no effect.

The no form of the command disables LLDP SNMP notifications and syslog messages.

The following example enables LLDP SNMP notifications and syslog messages for a range of ports.

device(config)# lldp enable snmp notifications ports ethernet 1/1/1 to 1/1/6