lldpcli, lldpctl
- Provided by: lldpd (Version: 0.7.7-1)
- Report a bug
lldpcli |
[-dv] [-u
file] [-f
format] [-c
file] [command ...] |
lldpctl |
[-dv] [-u
file] [-f
format] [interfaces ...] |
The lldpcli program controls
lldpd(8) daemon.
When no command is specified, lldpcli will
start an interactive shell which can be used to input arbitrary commands as
if they were specified on the command line. This interactive shell should
provide completion and history support.
The options are as follows:
-d-u-vlldpcli version.-f
format-c
file.conf. Order is alphabetical.When invoked as lldpctl,
lldpcli will display detailed information about each
neighbors on the specified interfaces or on all interfaces if none are
specified. This command is mostly kept for backward compatibility with older
versions.
The following commands are supported by
lldpcli. When there is no ambiguity, the keywords
can be abbreviated. For example, show neighbors ports eth0
summary and sh neigh p eth0 sum are the same
command.
exit
lldpcli.help [...]
lldpcli was compiled without readline support but
help command is always available.show neighbors [ports
ethX [,...]] [details |
summary] [hidden]
summary, only
a the name and the port description of each remote host will be displayed. On
the other hand, with details, all available
information will be displayed, giving a verbose view. When using
hidden, also display remote ports hidden by the smart
filter. When specifying one or several ports, the information displayed is
limited to the given list of ports.watch [ports ethX
[,...]] [details | summary]
[hidden]
hidden,
summary and details have the
same meaning than previously described.show configuration
show statistics [ports
ethX [,...]] [summary]
summary the statistics of each port is summed.update
configure system
description description
configure system
platform description
configure system
interface pattern pattern
lldpd will listen on all available
interfaces. This option can use wildcards. Several interfaces can be specified
separated by commas. It is also possible to blacklist an interface by
suffixing it with an exclamation mark. When an interface is both specified
with and without an exclamation mark, it is blacklisted. For example, with
eth*,!eth1,!eth2
lldpd will only listen to interfaces starting by
eth with the
exception of
eth1 and
eth2.configure system
interface description
lldpd to
override this description with the name of the peer neighbor if one is found
or with the number of neighbors found.configure lldp
tx-interval interval
configure lldp
tx-hold hold
configure system
bond-slave-src-mac-type value
Valid types are:
Default value for bond-slave-src-mac-type
is fixed
configure med fast-start
enable | tx-interval
interval
lldpd to shorten the interval between two LLDPDU.
enable should enable LLDP-MED fast start while
tx-interval specifies the interval between two LLDPDU
in seconds. The default interval is 1 second. Once 4 LLDPDU have been sent,
the fast start mechanism is disabled until a new neighbor is detected.unconfigure med fast-start
configure [ports
ethX [,...]] med location
coordinate latitude
latitude longitude
longitude altitude
altitude unit
datum datum
A valid use of this command is:
configure [ports
ethX [,...]] med location
address country country
[type value [...]]
A valid use of this command is:
configure [ports
ethX [,...]] med location elin
number
configure [ports
ethX [,...]] med policy
application application
[unknown] [vlan
vlan] [priority
priority] [dscp
dscp]
The unknown flag tells that the network
policy for the specified application type is required by the device but is
currently unknown. This is used by Endpoint Devices, not by Network
Connectivity Devices. If not specified, the network policy for the given
application type is defined.
When a VLAN is specified with vlan tells
which 802.1q VLAN ID has to be advertised for the network policy. A valid
value is between 1 and 4094. priority allows one to
specify IEEE 802.1d / IEEE 802.1p Layer 2 Priority, also known as Class of
Service (CoS), to be used for the specified application type. It should be
one of those values:
dscp represents the DSCP value to be advertised for the given network policy. DiffServ/Differentiated Services Code Point (DSCP) value as defined in IETF RFC 2474 for the specified application type. Value: 0 (default per RFC 2475) through 63. Note: The class selector DSCP values are backwards compatible for devices that only support the old IP precedence Type of Service (ToS) format. (See the RFCs for what these values mean)
A valid use of this command is:
configure [ports
ethX [,...]] med power pse |
pd source
source priority
priority value
value
lldpcli does not enforce this: a port can be set
as PD or PSE. LLDP-MED also requires for a PSE to only have one power
source (primary or backup). Again, lldpcli does
not enforce this. Each port can have its own power source. The same
applies for PD and power priority. LLDP-MED MIB does not allow this kind
of representation.Valid types are:
Valid sources are:
Valid priorities are:
value should be the total power in milliwatts required by the PD device or available by the PSE device.
Here is an example of use:
configure [ports
ethX [,...]] dot3 power pse |
pd [supported]
[enabled] [paircontrol]
powerpairs powerpairs
[class class]
[type type
source source
priority priority
requested requested
allocated allocated]
supported means that MDI power is supported on the given port while enabled means that MDI power is enabled. paircontrol is used to indicate if pair selection can be controlled. Valid values forr powerpairs are:
When specified, class is a number between 0 and 4.
The remaining parameters are in conformance with 802.3at and are optional. type should be either 1 or 2, indicating which if the device conforms to 802.3at type 1 or 802.3at type 2. Values ofr source and priority are the same as for LLDP-MED POE-MDI TLV. requested and allocated are expressed in milliwats.
Here are two valid uses of this command:
pause
lldpd operations.
lldpd will not send any more frames or receive ones.
This can be undone with resume command.resume
lldpd operations.
lldpd will start to send and receive frames. This
command is issued internally after processing configuration but can be used at
any time if a manual pause command is issued.The lldpcli program was written by
Vincent Bernat ⟨bernat@luffy.cx⟩.