lldptool(8)
π lldptool β bestie's guide to managing lldpad β¨
okay so picture this: lldptool is literally your main character utility for talking to lldpad. It connects to the client interface of lldpad to do all its querying and configuring, no cap. And here's the cute part β if you run it with no command at all, it drops into interactive mode, where it also functions as an event listener, printing out events as they arrive asynchronously from lldpad. It'll use libreadline for interactive input when it's available. we love a utility that multitasks π«Ά
β¨ SYNOPSIS β¨
lldptool <command> [options] [argument]
π DESCRIPTION π
lldptool is used to query and configure lldpad. It connects to the client interface of lldpad to perform these operations. lldptool will operate in interactive mode if it is executed without a command. In interactive mode, lldptool will also function as an event listener to print out events as they are received asynchronously from lldpad. It will use libreadline for interactive input when available. literal perfection π
πΈ OPTIONS πΈ
-i [ifname]β specifies the network interface to which the command applies. Mostlldptoolcommands require specifying a network interface, so likeβ¦ don't forget her π-V [tlvid]β specifies the TLV identifier. Thetlvidis an integer value used to identify specific LLDP TLVs. Thetlvidvalue is the Type value for types not equal to127(the organizationally specific type). For organizationally specific TLVs, thetlvidis the value represented by the 3 byte OUI and 1 byte subtype β where the subtype is the lowest order byte of thetlvid. Thetlvidcan be entered as a numerical value (e.g.10or0xa), or for supported TLVs, as a keyword. Review thelldptoolhelp output to see the list of supported TLV keywords. iykyk π₯-nβ the "neighbor" option for commands which can use it (e.g.get-tlv). go off, neighbor π-g [bridge scope]β specify the bridge scope this command operates on. Allows to set and query all LLDP TLV modules for"nearest_bridge"(short:"nb"),"nearest_customer_bridge"("ncb") and"nearest_nontpmr_bridge"("nntpmrb") group mac addresses. Configurations are saved into independent sections inlldpad.conf. If no bridge scope is supplied this defaults to"nearest bridge"to preserve the previous behaviour. classic default behavior, we respect it π«‘-c <argument list>β the "config" option for TLV queries. Indicates that the query is for the configuration elements for the specified TLV. The argument list specifies the specific elements to query. If no arguments are listed, then all configuration elements for the TLV are returned. very "give me everything or give me the specifics" energy π-rβ show raw client interface messages. raw and unfiltered, just how we like it π-Rβ show only raw Client interface messages. the extra capital R said "ONLY raw, nothing else" periodt π₯
π COMMANDS π
licenseβ show license information. legal era π-h,helpβ show usage information. when you're lost, bestie, just ask π-v,versionβ show version information. know your era π-S,statsβ get LLDP statistics for the specified interface. numbers, we love to see them β¨-t,get-tlvβ get TLV information for the specified interface. retrieval queen π-T,set-tlvβ set TLV information for the specified interface. setting queen π-l,get-lldpβ get LLDP parameters for the specified interface. parameters, fetched π-L,set-lldpβ set LLDP parameters for the specified interface. parameters, set π-p,pingβ display the process identifier of the runninglldpadprocess. say hi to the process for me π«Ά-q,quitβ exit from interactive mode. bye bestie, slay your day π
π¦ ARGUMENTS π¦
This section lists arguments which are available for administration of LLDP parameters. Arguments for basic TLV's (non-organizationally specific TLVs) are also described. See the SEE ALSO section for references to other lldptool man pages which contain usage details and arguments for various organizationally specific TLVs. okay so let's get into the specifics, no skipping π
adminStatusβ Argument for theget-lldp/set-lldpcommands. Configures the LLDPadminStatusparameter for the specified interface. Valid values are:disabled,rx,tx,rxtx. pick your vibe: off, receiving, transmitting, or both πenableTxβ Argument for theget-tlv/set-tlvcommands. May be applied per interface for a specified TLV. Valid values are:yes,no. If the DCBX TLVenableTxis set tono, then all of the DCB feature TLVs DCBX advertise settings will be turned off as well. SettingenableTxtoyeswill enable the DCBX advertise settings. important caveat bestie β onenocan turn off a whole squad of DCB feature TLVs, so be careful πipv4β Argument for theget-tlv/set-tlvcommands with respect to the Management Address TLV. Thegetcommand will retrieve the configured value. Set values take the form of an IPv4 address:A.B.C.D. classic four-part baddie π₯ipv6β Argument for theget-tlv/set-tlvcommands with respect to the Management Address TLV. Thegetcommand will retrieve the configured value. Set values take the form of an IPv6 address:1111:2222:3333:4444:5555:6666:7777:8888and various shorthand variations. long, iconic, and flexible β she contains multitudes π
π§ EXAMPLES π§
okay these are literally the moments you'll actually use, screenshot them πΈ
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
lldptool stats -i eth3
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
β SEE ALSO β
lldptool-dcbx(8), lldptool-ets(8), lldptool-pfc(8), lldptool-app(8), lldptool-med(8), lldptool-vdp(8), lldptool-evb(8), lldptool-evb22(8), dcbtool(8), lldpad(8)
the whole friend group, honestly π«Ά
π COPYRIGHT π
lldptool β LLDP agent configuration utility Copyright(c) 2007-2012 Intel Corporation. Portions of lldptool are based on:
hostapd-0.5.7
Copyright (c) 2004-2008, Jouni Malinen <j@w1.fi>
respect the OGs, always πΈ
π LICENSE π
This program is free software; you can redistribute it and/or modify it under the terms and conditions of the GNU General Public License, version 2, as published by the Free Software Foundation.
This program is distributed in the hope it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
The full GNU General Public License is included in this distribution in the file called "COPYING".
no warranty bestie, we ride at dawn π
π SUPPORT π
Contact Information: open-lldp Mailing List <lldp-devel@open-lldp.org>
they're literally there for you, reach out π«Ά
ngl this whole page is giving "old but iconic" β the open-lldp crew, August 2012, keepin' the vibe alive since forever. slay, legends π β¨
π¦ where this page comes from
- alpine 3.22: open-lldp-doc 1.1-r2 Β· GPL-2.0-only
- alpine 3.23: open-lldp-doc 1.1-r3 Β· GPL-2.0-only
- alpine 3.24: open-lldp-doc 1.1-r3 Β· GPL-2.0-only
- centos-stream 10: lldpad 1.1.1-4.gitf1dd9eb.el10 Β· GPL-2.0-only
- centos-stream 9: lldpad 1.1.1-5.gitf1dd9eb.el9 Β· GPL-2.0-only
- centos-stream 9: lldpad 1.1.1-5.gitf1dd9eb.el9 Β· GPL-2.0-only
- fedora 43: lldpad 1.1.0-14.git85e5583.fc43 Β· GPL-2.0-only
- fedora 43: lldpad 1.1.0-14.git85e5583.fc43 Β· GPL-2.0-only
- fedora 44: lldpad 1.1.0-16.git85e5583.fc44 Β· GPL-2.0-only
- fedora 44: lldpad 1.1.0-16.git85e5583.fc44 Β· GPL-2.0-only
- opensuse-leap 16.0: open-lldp 1.1+110.f16f944-160000.1.1 Β· GPL-2.0-only
- opensuse-leap 16.0: open-lldp 1.1+110.f16f944-160000.1.1 Β· GPL-2.0-only
- opensuse-leap 16.0: open-lldp 1.1+110.f16f944-160000.1.1 Β· GPL-2.0-only
- opensuse-leap 16.0: open-lldp 1.1+110.f16f944-160000.1.1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms