1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
|
.\" LICENSE
.\"
.\" This software program is released under the terms of a license agreement between you ('Licensee') and Intel. Do not use or load this software or any associated materials (collectively, the 'Software') until you have carefully read the full terms and conditions of the LICENSE located in this software package. By loading or using the Software, you agree to the terms of this Agreement. If you do not agree with the terms of this Agreement, do not install or use the Software.
.\"
.\" * Other names and brands may be claimed as the property of others.
.\"
.TH lldptool 8 "August 2012" "open-lldp" "Linux"
.SH NAME
lldptool \- manage the LLDP settings and status of lldpad
.SH SYNOPSIS
.B lldptool <command> [options] [argument]
.br
.SH DESCRIPTION
.B lldptool
is used to query and configure
.B lldpad.
It connects to the client interface
of
.B lldpad
to perform these operations.
.B lldptool
will operate in interactive mode if it is executed without a
\fIcommand\fR.
In interactive mode,
.B lldptool
will also function as an event listener to print out events
as they are received asynchronously from
.B lldpad.
It will use libreadline for interactive input when available.
.SH OPTIONS
.TP
.B \-i [ifname]
specifies the network interface to which the command applies. Most
lldptool commands require specifying a network interface.
.TP
.B -V [tlvid]
specifies the TLV identifier
.br
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.
.br
The tlvid can be entered as a numerical value (e.g. 10 or 0xa), or for
supported TLVs, as a keyword.
Review the
.B lldptool
help output to see the list of supported TLV keywords.
.TP
.B \-n
"neighbor" option for commands which can use it (e.g. get-tlv)
.TP
.B -g [bridge scope]
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.
.TP
.B \-c <argument list>
"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.
.TP
.B \-r
show raw client interface messages
.TP
.B \-R
show only raw Client interface messages
.PP
.SH COMMANDS
.TP
.B license
show license information
.TP
.B \-h, help
show usage information
.TP
.B \-v, version
show version information
.TP
.B \-S, stats
get LLDP statistics for the specified interface
.TP
.B \-t, get-tlv
get TLV information for the specified interface
.TP
.B \-T, set-tlv
set TLV information for the specified interface
.TP
.B \-l, get-lldp
get LLDP parameters for the specified interface
.TP
.B \-L, set-lldp
set LLDP parameters for the specified interface
.TP
.B \-p, ping
display the process identifier of the running lldpad process
.TP
.B \-q, quit
exit from interactive mode
.PP
.SH 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.
.TP
.B adminStatus
Argument for the
.B get-lldp/set-lldp
commands. Configures the LLDP adminStatus parameter for the specified interface. Valid values are: \fIdisabled\fR, \fIrx\fR, \fItx\fR, \fIrxtx\fR
.TP
.B enableTx
Argument for the
.B get-tlv/set-tlv
commands. May be applied per interface for a specified TLV. Valid values are: \fIyes\fR, \fIno\fR. If the DCBX TLV enableTx is set to \fIno\fR, then all of the DCB feature TLVs DCBX advertise settings will be turned off as well. Setting enableTx to \fIyes\fR will enable the DCBX advertise settings.
.TP
.B ipv4
Argument for the
.B 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: \fIA.B.C.D\fR
.TP
.B ipv6
Argument for the
.B 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: \fI1111:2222:3333:4444:5555:6666:7777:8888\fR
and various shorthand variations.
.PP
.SH EXAMPLES
.TP
Configure LLDP adminStatus to Receive and Transmit for interface \fIeth2\fR
.B lldptool -L -i eth2 adminStatus=rxtx
.br
.B lldptool set-lldp -i eth2 adminStatus=rxtx
.TP
Query the LLDP adminStatus for interface \fIeth3\fR
.B lldptool -l -i eth3 adminStatus
.br
.B lldptool get-lldp -i eth3 adminStatus
.TP
Query the LLDP statistics for interface \fIeth3\fR
.B lldptool -S -i eth3
.br
.B lldptool stats -i eth3
.TP
Query the local TLVs which are being transmitted for a given interface:
.B lldptool -t -i eth3
.br
.B lldptool get-tlv -i eth3
.TP
Query the received neighbor TLVs received on a given interface:
.B lldptool -t -n -i eth3
.br
.B lldptool get-tlv -n -i eth3
.TP
Query the value of the System Description TLV as received from the neighbor on a given interface:
.B lldptool -t -n -i eth3 -V sysDesc
.br
.B lldptool get-tlv -n -i eth3 -V 6
.TP
Disable transmit of the IEEE 802.3 MAC/PHY Configuration Status TLV for a given interface:
.B lldptool -T -i eth3 -V macPhyCfg enableTx=no
.br
.B lldptool set-tlv -i eth3 -V 0x120f01 enableTx=no
.TP
Query value of the transmit setting for the Port Description TLV for a given interface:
.B lldptool -t -i eth3 -V portDesc -c enableTx
.br
.B lldptool get-tlv -i eth3 -V 4 -c enableTx
.TP
Set a Management Address TLV on eth3 to carry IPv4 address 192.168.10.10
.B lldptool -T -i eth3 -V mngAddr ipv4=192.168.10.10
.TP
Set a Management Address TLV on eth3 to carry IPv6 address ::192.168.10.10
.B lldptool -T -i eth3 -V mngAddr ipv6=::192.168.10.10
.TP
Get the configured IPv4 address for the Management Address TLV on eth3
.B lldptool -t -i eth3 -V mngAddr -c ipv4
.TP
Get all configured attributes for the Management Address TLV on eth3
.B lldptool -t -i eth3 -V mngAddr -c
.TP
Enable transmit of the Edge Virtual Bridging TLV for interface eth4
.B lldptool -i eth4 -T -g ncb -V evbCfg enableTx=yes
.TP
Enable transmit of VDP for interface eth4
.B lldptool -i eth4 -T -V vdp enableTx=yes
.TP
Display process identifier of lldpad
.B lldptool -p
.SH SEE ALSO
.BR lldptool-dcbx (8),
.BR lldptool-ets (8),
.BR lldptool-pfc (8),
.BR lldptool-app (8),
.BR lldptool-med (8),
.BR lldptool-vdp (8),
.BR lldptool-evb (8),
.BR lldptool-evb22 (8),
.BR dcbtool (8),
.BR lldpad (8)
.br
.SH COPYRIGHT
lldptool - LLDP agent configuration utility
.br
Copyright(c) 2007-2012 Intel Corporation.
.BR
Portions of lldptool are based on:
.IP hostapd-0.5.7
.IP Copyright
(c) 2004-2008, Jouni Malinen <j@w1.fi>
.SH 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.
.LP
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.
.LP
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.
.LP
The full GNU General Public License is included in this distribution in
the file called "COPYING".
.SH SUPPORT
Contact Information:
open-lldp Mailing List <lldp-devel@open-lldp.org>
|