Scroll to navigation

lldptool(8) Linux lldptool(8)

NAME

lldptool - manage the LLDP settings and status of lldpad

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.

OPTIONS

specifies the network interface to which the command applies. Most lldptool commands require specifying a network interface.
specifies the TLV identifier
The tlvid is an integer value used to identify specific LLDP TLVs. The tlvid value is the Type value for types not equal to 127 (the organizationally specific type). For organizationally specific TLVs, the tlvid is the value represented by the 3 byte OUI and 1 byte subtype - where the subtype is the lowest order byte of the tlvid.
The tlvid can be entered as a numerical value (e.g. 10 or 0xa), or for supported TLVs, as a keyword. Review the lldptool help output to see the list of supported TLV keywords.
"neighbor" option for commands which can use it (e.g. get-tlv)
specify the bridge scope this command operates on. Allows one 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 in lldpad.conf. If no bridge scope is supplied this defaults to "nearest bridge" to preserve the previous behaviour.
"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.
show raw client interface messages
show only raw Client interface messages

COMMANDS

show license information
show usage information
show version information
get LLDP statistics for the specified interface
get TLV information for the specified interface
set TLV information for the specified interface
get LLDP parameters for the specified interface
set LLDP parameters for the specified interface
display the process identifier of the running lldpad process
exit from interactive mode

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.

Argument for the get-lldp/set-lldp commands. Configures the LLDP adminStatus parameter for the specified interface. Valid values are: disabled, rx, tx, rxtx

Argument for the get-tlv/set-tlv commands. May be applied per interface for a specified TLV. Valid values are: yes, no. If the DCBX TLV enableTx is set to no, then all of the DCB feature TLVs DCBX advertise settings will be turned off as well. Setting enableTx to yes will enable the DCBX advertise settings.

Argument for the get-tlv/set-tlv commands with respect to the Management Address TLV. The get command will retrieve the configured value. Set values take the form of an IPv4 address: A.B.C.D

Argument for the get-tlv/set-tlv commands with respect to the Management Address TLV. The get command will retrieve the configured value. Set values take the form of an IPv6 address: 1111:2222:3333:4444:5555:6666:7777:8888 and various shorthand variations.

EXAMPLES

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

lldptool -l -i eth3 adminStatus
lldptool get-lldp -i eth3 adminStatus

lldptool -S -i eth3
lldptool stats -i eth3

lldptool -t -i eth3
lldptool get-tlv -i eth3

lldptool -t -n -i eth3
lldptool get-tlv -n -i eth3

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

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

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

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

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

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

lldptool -t -i eth3 -V mngAddr -c

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

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

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)

COPYRIGHT

lldptool - LLDP agent configuration utility
Copyright(c) 2007-2012 Intel Corporation. Portions of lldptool are based on:

(c) 2004-2008, Jouni Malinen <j@w1.fi>

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".

SUPPORT

Contact Information: open-lldp Mailing List <lldp-devel@open-lldp.org>

August 2012 open-lldp