lldptool command examples

lldptool command examples

lldptool – manage the LLDP settings and status of lldpad

Configure LLDP adminStatus to Receive and Transmit for interface eth2

lldptool -L -i eth2 adminStatus=rxtx
lldptool set-lldp -i eth2 adminStatus=rxtx

Query the LLDP adminStatus for interface eth3

lldptool -l -i eth3 adminStatus

lldptool get-lldp -i eth3 adminStatus

Query the LLDP statistics for interface eth3

lldptool -S -i eth3 adminStatus

lldptool stats -i eth3 adminStatus

Query the local TLVs which are being transmitted for a given interface:

lldptool -t -i eth3

lldptool get-tlv -i eth3

Query the received neighbor TLVs received on a given interface:

lldptool -t -n -i eth3

lldptool get-tlv -n -i eth3

Query the value of the System Description TLV as received from the neighbor on a given interface:

lldptool -t -n -i eth3 -V sysDesc

lldptool get-tlv -n -i eth3 -V 6

Disable transmit of the IEEE 802.3 MAC/PHY Configuration Status TLV for a given interface:

lldptool -T -i eth3 -V macPhyCfg enableTx=no

lldptool set-tlv -i eth3 -V 0x120f01 enableTx=no

Query value of the transmit setting for the Port Description TLV for a given interface:

lldptool -t -i eth3 -V portDesc -c enableTx

lldptool get-tlv -i eth3 -V 4 -c enableTx

Set a Management Address TLV on eth3 to carry IPv4 address 192.168.10.10

lldptool -T -i eth3 -V mngAddr ipv4=192.168.10.10

Set a Management Address TLV on eth3 to carry IPv6 address ::192.168.10.10

lldptool -T -i eth3 -V mngAddr ipv6=::192.168.10.10

Get the configured IPv4 address for the Management Address TLV on eth3

#lldptool -t -i eth3 -V mngAddr -c ipv4

Get all configured attributes for the Management Address TLV on eth3

#lldptool -t -i eth3 -V mngAddr -c

Enable transmit of the Edge Virtual Bridging TLV for interface eth4

#lldptool -i eth4 -T -g ncb -V evbCfg enableTx=yes

Enable transmit of VDP for interface eth4

#lldptool -i eth4 -T -V vdp enableTx=yes

Display process identifier of lldpad

#lldptool -p

 

Leave a Reply

Your email address will not be published. Required fields are marked *