Commands For Lldp Function

2.5 Commands for LLDP Function

2.5.1 clear lldp remote-table

Command: clear lldp remote-table
Function: Clear the remote table entries on the port.
Parameters: None.
Command mode: Port Configuration Mode
Default: Do not clear the entries.
Usage guide: Clear the remote table entries on this port.
Example: Clear the remote table entries on this port.

active500EM(config-if-ethernet1/0/1)#clear lldp remote-table

 

2.5.2 debug lldp

Command: debug lldp
no debug lldp
Function: Enable debugging of LLDP. The no command disables debugging of LLDP.
Parameters: None.
Command mode: Admin Mode
Default: Disable debugging of LLDP.
Usage guide: When the debug switch is enabled, users can check the receiving and sending of packets.
Example: Enable the LLDP debug function on the switch.

active500EM#debug lldp

 

2.5.3 debug lldp packets

Command: debug lldp packets interface ethernet <IFNAME>
no debug lldp packets interface ethernet <IFNAME>
Function: Display the LLDP received and sent message information for the port. The no command disables the display of debugging information.
Parameters:

  • <IFNAME>: Interface Name

Command mode: Admin Mode
Default: Disable debugging on the port.
Usage guide: When the debug switch is enabled, users can check the receiving and sending of packets for the port.
Example: Enable the LLDP debugging function on the switch.

active500EM#debug lldp packets interface ethernet 1/0/1
%Jan 01 00:02:40 2006 LLDP-PDU-TX   PORT= ethernet 1/0/1

 

2.5.4 lldp enable

Command: lldp enable
lldp disable
Function: Globally enable LLDP. The disable command globally disables LLDP.
Parameters: None.
Command mode: Global Mode
Default: Disable LLDP.
Usage guide: If LLDP is globally enabled, it will be enabled on every port.
Example: Enable LLDP on the switch.

active500EM(config)#lldp enable

 

2.5.5 lldp enable (Port)

Command: lldp enable
lldp disable
Function: Enable LLDP for ports in port configuration mode. The disable command will disable the LLDP for ports in port configuration mode.
Parameters: None.
Command mode: Port Configuration Mode
Default: Enabled.
Usage guide: When LLDP is globally enabled, it will be enabled on every port.
Example: Disable LLDP on the port ethernet 1/0/5 of the switch.

active500EM(config)#interface ethernet 1/0/5
active500EM(config-if-ethernet1/0/5)#lldp disable

 

2.5.6 lldp mode

Command: lldp mode {send | receive | both | disable}
Function: Configure the operating state of LLDP for the port.
Parameters:

  • send: configure LLDP as only being able to send messages.
  • receive: configure LLDP as only being able to receive messages.
  • both: configure LLDP as being able to both send and receive messages.
  • disable: configure LLDP as not being able to send or receive messages.

Command mode: Port Configuration Mode
Default: The operating state of the port is ?both?.
Usage guide: Configure the operating state of LLDP for the port.
Example: Configure the state of port ethernet 1/0/5 of the switch as ?receive?.

active500EM(config)#interface ethernet 1/0/5
active500EM(config-if-ethernet1/0/5)#lldp mode receive

 

2.5.7 lldp msg TxHold

Command: lldp msgTxHold <value>
no lldp msgTxHold
Function: With LLDP enabled, set the aging time multiplier value carried by update messages which are sent by all ports.
Parameter:

  • <value>: aging time multiplier. Valid values are from 2 to 10.

Command mode: Global Mode
Default: Value of the multiplier is 4.
Usage guide: After configuring the multiplier, the aging time is defined as the product of the multiplier and the interval of sending messages. The maximum value is 65535 seconds.
Example: Set the value of the aging time multiplier to 6.

active500EM(config)#lldp msgTxHold 6

 

2.5.8 lldp neighbors max-num

Command: lldp neighbors max-num <value>
no lldp neighbors max-num
Function: Set the maximum number of entries that can be stored in the Remote MIB.
Parameter:

  • <value>: configured number of entries. The valid range is from 5 to 500.

Command mode: Port Configuration Mode
Default: The maximum number of entries that can be stored in the Remote MIB is 100.
Usage guide: The maximum number of entries that can be stored in the Remote MIB.
Example: Set the Remote to 200 on port ethernet 1/0/5.

active500EM(config)#interface ethernet 1/0/5
active500EM(config-if-ethernet1/0/5)#lldp neighbors max-num 200

 

2.5.9 lldp notification interval

Command: lldp notification interval <seconds>
no lldp notification interval
Function: When the time interval ends, the system is set to check whether the Remote Table has been changed. If it has, the system will send a Trap to SNMP management.
Parameter:

  • <seconds>: time interval. The valid range is from 5 to 3600 seconds.

Command mode: Global Mode
Default: The time interval is 5 seconds.
Usage guide: After configuring the notification time interval, a ?trap? message will be sent at the end of this time interval whenever the Remote Table changes.
Example: Set the Trap message time interval to 20 seconds.

active500EM(config)#lldp notification interval 20

 

2.5.10 lldp tooManyNeighbors

Command: lldp tooManyNeighbors {discard | delete}
Function: Identify the operation that will occur when the Remote Table is full.
Parameters:

  • discard: discard the current message.
  • delete: delete the message with the least TTL in the Remote Table.

Command mode: Port Configuration Mode
Default: Discard.
Usage guide: When the Remote MIB is full, discard means to discard the received message. Delete means to delete the message with the least TTL in the Remote Table.
Example: Set port ethernet 1/0/5 of the switch to delete.

active500EM(config)#interface ethernet 1/0/5
active500EM(config-if-ethernet1/0/5)#lldp tooManyNeighbors delete

 

2.5.11 lldp transmit delay

Command: lldp transmit delay <seconds>
no lldp transmit delay
Function: Local information may change frequently due to the variability of the network environment. There could be many update messages sent in a short time. A delay is required to guarantee accurate statistics of local information. When transmit delay is the default value and tx-interval is configured, transmit delay will become one fourth of the latter, instead of the default 2.
Parameter:

  • <seconds>: time interval. The valid range is from 1 to 8192 seconds.

Command mode: Global Mode
Default: The interval is 2 seconds.
Usage guide: If messages are sent continuously, a sending delay is set to prevent the remote information from being updated repeatedly due to simultaneous sending messages.
Example: Set the sending message delay to 3 seconds.

active500EM(config)#lldp transmit delay 3

 

2.5.12 lldp transmit optional tlv

Command: lldp transmit optional tlv [portDesc] [sysName] [sysDesc] [sysCap] no lldp transmit optional tlv
Function: Configure the type of optional TLV for the port.
Parameters:

  • portDesc: the description of the port.
  • sysName: the system name.
  • sysDesc: the description of the system.
  • sysCap: the capability of the system.

Command mode: Port Configuration Mode
Default: The messages carry no optional TLV.
Usage guide: When configuring optional TLV, each TLV can only appear once in a message. portDesc optional TLV represents the name of the local port. sysName optional TLV represents the name of the local system. sysDesc optional TLV represents the description of the local system. sysCap optional TLV represents the capability of the local system.
Example: Configure port ethernet 1/0/5 of the switch to carry portDesc and sysCap TLV.

active500EM(config)#interface ethernet 1/0/5
active500EM(config-if-ethernet1/0/5)# lldp transmit optional tlv portDesc sysCap

 

2.5.13 lldp trap

Command: lldp trap {enable | disable}
Function: Enable the trap function on the specified port. The disable command disables the trap function on the specified port.
Parameters: None.
Command mode: Port Configuration Mode
Default: The Trap function is disabled on the specified port.
Usage guide: The function of sending trap messages is enabled on the port.
Example: Enable the trap function on port ethernet 1/0/5 of the switch.

active500EM(config)#interface ethernet1/0/5
active500EM(config-if-ethernet1/0/5)#lldp trap enable

 

2.5.14 lldp tx-interval

Command: lldp tx-interval <integer>
no lldp tx-interval
Function: Set the interval of sending update messages on all ports with LLDP enabled.
Parameter:

  • <integer>: interval of sending updating messages. The valid values range from 5 to 32768 seconds.

Default: 30 seconds.
Command Settings: Global Mode
Default: 30 seconds.
Usage guide: After configuring the sending message interval, LLDP messages can only be received after the configured time period. The interval should be less than or equal to half of the aging time. A long interval will cause a state of aging and reconstruction to occur often. A short interval will increase the flow of the network and decrease the bandwidth of the port. The value of the aging time of messages is the product of the multiplier and the interval of sending messages. The maximum aging time is 65535 seconds. When tx-interval is the default value and transmit delay is configured, tx-interval will become four times of the latter, instead of the default 40.
Example: Set the interval of sending messages to 40 seconds.

active500EM(config)#lldp tx-interval 40

 

2.5.15 show debugging lldp

Command: show debugging lldp
Function: Display all ports with LLDP debugging enabled.
Parameters: None.
Command mode: Admin and Configuration Mode
Default: None.
Usage guide: By using this command, all ports with LLDP debug enabled will be displayed.
Example: Display all ports with LLDP debug enabled.

active500EM(config)#show debugging lldp
-----BEGINNING OF  LLDP DEBUG SETTINGS-----
debug lldp
debug lldp packets interface Ethernet1/0/1
debug lldp packets interface Ethernet1/0/2
debug lldp packets interface Ethernet1/0/3
debug lldp packets interface Ethernet1/0/4
debug lldp packets interface Ethernet1/0/5
-----END OF DEBUG SETTINGS-----

 

2.5.16 show lldp

Command: show lldp
Function: Display the configuration information of global LLDP. This includes the list of all ports with LLDP enabled, the sending update message interval, the aging time configuration, the interval needed by the sending module to wait for re-initialization, the sending trap interval, and the limitation of the number of the entries in the Remote Table.
Parameters: None.
Command mode: Admin Mode or Global Mode
Default: Do not display the configuration information of global LLDP.
Usage guide: Users can check global LLDP configuration information by using this command.
Example: Check the global LLDP configuration information of global LLDP after it is enabled on the switch.

active500EM(config)#show lldp
-----LLDP GLOBAL INFORMATION-----
LLDP enabled port : Ethernet 1/0/1
LLDP interval :30
LLDP txTTL :120
LLDP txShutdownWhile :2
LLDP NotificationInterval :5
LLDP txDelay :20
-------------END------------------

 

2.5.17 show lldp interface ethernet

Command: show lldp interface [ethernet] <IFNAME>
Function: Display the LLDP configuration on the port, such as the working state of the LLDP Agent.
Parameter:

  • <IFNAME>: interface name.

Command mode: Admin Mode or Global Mode
Default: Do not display the LLDP configuration on the port.
Usage guide: Users can check the LLDP configuration on the port.
Example: Check the LLDP configuration on the port after LLDP is enabled on the switch.

active500EM(config)#show lldp interface ethernet 1/0/1
Port name :   ethernet 1/0/1
LLDP Agent Adminstatus: Both
LLDP Operation TLV: portDecs  sysName  sysDesc  sysCap
LLDP Trap Status: disable
LLDP maxRemote: 100
LLDP Overflow handle: discard
LLDP interface remote status : Full

 

2.5.18 show lldp neighbors interface ethernet

Command: show lldp neighbors interface [ethernet] <IFNAME>
Function: Display port LLDP neighbor information.
Parameters:

  • <IFNAME>: interface name

Command mode: Admin Mode or Global Mode
Default: Do not display port LLDP neighbor information.
Usage guide: Users can check the port LLDP neighbor information by using this command.
Example: Check the port LLDP neighbor information after LLDP is enabled on the port.

active500EM(config)#show lldp neighbors interface ethernet 1/0/1

 

2.5.19 show lldp traffic

Command: show lldp traffic
Function: Display the LLDP data packets statistics.
Parameters: None.
Command mode: Admin or Global Mode
Default: Do not display the LLDP data packets statistics.
Usage guide: Users can check the LLDP data packets statistics by using this command.
Example: Check the LLDP data packets statistics.

active500EM#show lldp
-----LLDP GLOBAL INFORMATIONS-----
LLDP has been enabled globally.
LLDP enabled port : Ethernet1/0/7 Ethernet1/0/11 Ethernet1/0/18
LLDP interval :30
LLDP txTTL :120
LLDP NotificationInterval :5
LLDP txDelay :2
LLDP-MED FastStart Repeat Count :4
-------------END------------------

 


Return to Controller Wired CLI Table of Contents