]> git.ipfire.org Git - thirdparty/lldpd.git/blame - src/client/lldpcli.8.in
lldpcli: fix per-port occurrences of "conf lldp"
[thirdparty/lldpd.git] / src / client / lldpcli.8.in
CommitLineData
fe80711e
VB
1.\" Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
2.\" Copyright (c) 2008 Vincent Bernat <bernat@luffy.cx>
3.\"
4.\" Permission to use, copy, modify, and/or distribute this software for any
5.\" purpose with or without fee is hereby granted, provided that the above
6.\" copyright notice and this permission notice appear in all copies.
7.\"
8.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15.\"
16.Dd $Mdocdate: July 16 2008 $
17.Dt LLDPCLI 8
18.Os
19.Sh NAME
20.Nm lldpcli ,
21.Nm lldpctl
22.Nd control LLDP daemon
23.Sh SYNOPSIS
24.Nm
25.Op Fl dv
baaa96d1 26.Op Fl u Ar socket
fe80711e 27.Op Fl f Ar format
6402fd2c 28.Op Fl c Ar file
fe80711e
VB
29.Op Ar command ...
30.Nm lldpctl
31.Op Fl dv
baaa96d1 32.Op Fl u Ar socket
fe80711e
VB
33.Op Fl f Ar format
34.Op Ar interfaces ...
35.Sh DESCRIPTION
36The
37.Nm
38program controls
39.Xr lldpd 8
40daemon.
41.Pp
42When no command is specified,
43.Nm
44will start an interactive shell which can be used to input arbitrary
45commands as if they were specified on the command line. This
46interactive shell should provide completion and history support.
47.Pp
48The options are as follows:
49.Bl -tag -width Ds
50.It Fl d
51Enable more debugging information.
baaa96d1 52.It Fl u Ar socket
0262adbb
ZM
53Specify the Unix-domain socket used for communication with
54.Xr lldpd 8 .
fe80711e
VB
55.It Fl v
56Show
57.Nm
58version.
59.It Fl f Ar format
60Choose the output format. Currently
61.Em plain ,
62.Em xml ,
63.Em json
64and
65.Em keyvalue
66formats are available. The default is
67.Em plain .
6402fd2c
VB
68.It Fl c Ar file
69Read the given configuration file. This option may be repeated several
70times. If a directory is provided, each file contained in it will be
71read if ending by
72.Li .conf .
73Order is alphabetical.
fe80711e 74.El
fe80711e
VB
75.Pp
76When invoked as
77.Nm lldpctl ,
78.Nm
79will display detailed information about each neighbors on the
80specified interfaces or on all interfaces if none are specified. This
81command is mostly kept for backward compatibility with older versions.
fe80711e
VB
82.Pp
83The following commands are supported by
84.Nm .
85When there is no ambiguity, the keywords can be abbreviated. For
86example,
87.Cd show neighbors ports eth0 summary
88and
89.Cd sh neigh p eth0 sum
90are the same command.
fe80711e
VB
91.Bd -ragged -offset XX
92.Cd exit
93.Bd -ragged -offset XXXXXX
94Quit
95.Nm .
96.Ed
97
72706acd
VB
98.Cd help Op ...
99.Bd -ragged -offset XXXXXX
100Display general help or help about a command. Also, you can get help
101using the completion or by pressing the
102.Ic ?
103key. However, completion and inline help may be unavailable if
104.Nm
105was compiled without readline support but
106.Cd help
107command is always available.
108.Ed
109
fe80711e 110.Cd show neighbors
97772619 111.Op ports Ar ethX Op ,...
fe80711e
VB
112.Op Cd details | summary
113.Op Cd hidden
114.Bd -ragged -offset XXXXXX
115Display information about each neighbor known by
116.Xr lldpd 8
117daemon. With
118.Cd summary ,
119only a the name and the port description of each remote host will be
120displayed. On the other hand, with
121.Cd details ,
122all available information will be displayed, giving a verbose
123view. When using
124.Cd hidden ,
125also display remote ports hidden by the smart filter. When specifying
126one or several ports, the information displayed is limited to the
127given list of ports.
128.Ed
129
3407e638
VB
130.Cd show chassis
131.Op Cd details | summary
132.Bd -ragged -offset XXXXXX
133Display information about local chassis. With
134.Cd summary ,
135most details are skipped. On the other hand, with
136.Cd details ,
137all available information will be displayed, giving a verbose
138view.
139.Ed
140
fe80711e 141.Cd watch
97772619 142.Op ports Ar ethX Op ,...
fe80711e
VB
143.Op Cd details | summary
144.Op Cd hidden
145.Bd -ragged -offset XXXXXX
146Watch for any neighbor changes and report them as soon as they
147happen. When specifying ports, the changes are only reported when
148happening on the given ports.
149.Cd hidden , summary
150and
151.Cd details
152have the same meaning than previously described.
153.Ed
154
155.Cd show configuration
156.Bd -ragged -offset XXXXXX
157Display global configuration of
158.Xr lldpd 8
159daemon.
160.Ed
161
885aa4f4
VB
162.Cd show statistics
163.Op ports Ar ethX Op ,...
164.Op Cd summary
165.Bd -ragged -offset XXXXXX
166Report LLDP-related statistics, like the number of LLDPDU transmitted,
167received, discarded or unrecognized. When specifying ports, only the
168statistics from the given port are reported. With
169.Cd summary
170the statistics of each port is summed.
171.Ed
172
fe80711e
VB
173.Cd update
174.Bd -ragged -offset XXXXXX
175Make
176.Xr lldpd 8
177update its information and send new LLDP PDU on all interfaces.
178.Ed
179
17a90fc0
VB
180.Cd configure
181.Cd system hostname Ar name
182.Bd -ragged -offset XXXXXX
183Override system hostname with the provided value. By default, the
184system name is found from the resolved value of
185.Ic uname -n .
186.Ed
187
6dd83015
VB
188.Cd unconfigure
189.Cd system hostname
190.Bd -ragged -offset XXXXXX
191Do not override system hostname and restore the use of the node name.
192.Ed
193
decaec0d
VB
194.Cd configure
195.Cd system description Ar description
196.Bd -ragged -offset XXXXXX
197Override chassis description with the provided value instead of using
198kernel name, node name, kernel version, build date and architecture.
199.Ed
200
6dd83015
VB
201.Cd unconfigure
202.Cd system description
203.Bd -ragged -offset XXXXXX
204Do not override chassis description and use a value computed from node
205name, kernel name, kernel version, build date and architecture instead.
206.Ed
207
3f70e118
VB
208.Cd configure
209.Cd system platform Ar description
210.Bd -ragged -offset XXXXXX
211Override platform description with the provided value instead of using
212kernel name. This value is currently only used for CDP.
213.Ed
214
6dd83015
VB
215.Cd unconfigure
216.Cd system platform
217.Bd -ragged -offset XXXXXX
218Do not override platform description and use the kernel name. This
219option undoes the previous one.
220.Ed
221
f88442ac 222.Cd configure
48d0a4b0 223.Cd system interface pattern Ar pattern
0093777b 224.Bd -ragged -offset XXXXXX
5a1f4586
VB
225Specify which interface to listen and send LLDPDU to. Without this
226option,
0093777b 227.Nm lldpd
5a1f4586 228will use all available physical interfaces. This option can use
0093777b
VB
229wildcards. Several interfaces can be specified separated by commas.
230It is also possible to blacklist an interface by suffixing it with an
3b0273ee
VB
231exclamation mark. It is possible to whitelist an interface by
232suffixing it with two exclamation marks. A whitelisted interface beats
233a blacklisted interfaces which beats a simple matched interface. For
234example, with
0093777b
VB
235.Em eth*,!eth1,!eth2
236.Nm lldpd
5a1f4586 237will only use interfaces starting by
0093777b
VB
238.Em eth
239with the exception of
240.Em eth1
241and
242.Em eth2 .
3b0273ee
VB
243While with
244.Em *,!eth*,!!eth1
245.Nm
5a1f4586 246will use all interfaces, except interfaces starting by
3b0273ee
VB
247.Em eth
248with the exception of
249.Em eth1 .
250When an exact match is found, it will circumvent some tests. For example, if
251.Em eth0.12
252is specified, it will be accepted even if this is a VLAN interface.
0093777b
VB
253.Ed
254
6dd83015
VB
255.Cd unconfigure
256.Cd system interface pattern
257.Bd -ragged -offset XXXXXX
5a1f4586 258Remove any previously configured interface pattern and use all
6dd83015
VB
259physical interafces. This option undoes the previous one.
260.Ed
261
bb37268d
VB
262.Cd configure
263.Cd system interface description
264.Bd -ragged -offset XXXXXX
265Some OS allows the user to set a description for an interface. Setting
266this option will enable
267.Nm lldpd
268to override this description with the name of the peer neighbor if one
269is found or with the number of neighbors found.
270.Ed
271
6dd83015
VB
272.Cd unconfigure
273.Cd system interface descripton
274.Bd -ragged -offset XXXXXX
275Do not update interface description with the name of the peer
276neighbor. This option undoes the previous one.
277.Ed
278
f84199dd
VB
279.Cd configure
280.Cd system interface promiscuous
281.Bd -ragged -offset XXXXXX
0a6f3866 282Enable promiscuous mode on managed interfaces.
f84199dd
VB
283.Pp
284When the interface is not managed any more (or when quitting
285.Nm ) ,
286the interface is left in promiscuous mode as it is difficult to know
287if someone else also put the interface in promiscuous mode.
288.Pp
289This option is known to be useful when the remote switch is a Cisco
0a6f3866
VB
2902960 and the local network card features VLAN hardware
291acceleration. In this case, you may not receive LLDP frames from the
292remote switch. The most plausible explanation for this is the frame is
293tagged with some VLAN (usually VLAN 1) and your network card is
294filtering VLAN. This is not the only available solution to work-around
295this problem. If you are concerned about performance issues, you can
296also tag the VLAN 1 on each interface instead.
297.Pp
298Currently, this option has no effect on anything else than Linux. On
299other OS, either disable VLAN acceleration, tag VLAN 1 or enable
300promiscuous mode manually on the interface.
f84199dd
VB
301.Ed
302
303.Cd unconfigure
304.Cd system interface promiscuous
305.Bd -ragged -offset XXXXXX
306Do not set promiscuous mode on managed interfaces. This option does
307not disable promiscuous mode on interfaces already using this mode.
308.Ed
309
622d14bb
VB
310.Cd configure
311.Cd system ip management pattern Ar pattern
312.Bd -ragged -offset XXXXXX
313Specify the management addresses of this system. As for interfaces
314(described above), this option can use wildcards and inversions.
abfea7d0
VB
315Without this option, the first IPv4 and the first IPv6 are used. If an
316exact IP address is provided, it is used as a management address
317without any check. If only negative patterns are provided, only one
318IPv4 and one IPv6 addresses are chosen. Otherwise, many of them can be
319selected. If you want to blacklist IPv6 addresses, you can use
622d14bb
VB
320.Em !*:* .
321.Ed
322
6dd83015
VB
323.Cd unconfigure
324.Cd system ip management pattern
325.Bd -ragged -offset XXXXXX
326Unset any specific pattern for matching management addresses. This
327option undoes the previous one.
328.Ed
329
3106c706
VB
330.Cd configure
331.Cd system bond-slave-src-mac-type Ar value
332.Bd -ragged -offset XXXXXX
333Set the type of src mac in lldp frames sent on bond slaves
334
335Valid types are:
336.Bl -tag -width "XXX." -compact -offset XX
337.It Sy real
338Slave real mac
339.It Sy zero
340All zero mac
341.It Sy fixed
342An arbitrary fixed value
343.Li ( 00:60:08:69:97:ef )
344.It Sy local
345Real mac with locally administered bit set. If the real mac already
346has the locally administered bit set, fallback to the fixed value.
347.El
348.Pp
349Default value for
350.Nm bond-slave-src-mac-type
351is
352.Nm local .
353Some switches may complain when using one of the two other possible
354values (either because
355.Li 00:00:00:00:00:00
356is not a valid MAC or because the MAC address is flapping from one
357port to another). Using
358.Sy local
359might lead to a duplicate MAC address on the network (but this is
360quite unlikely).
361.Ed
362
bef085b8 363.Cd configure
4edc4960 364.Cd lldp portidsubtype
b3dd61af
VB
365.Cd ifname | macaddress
366.Pp
367.Cd configure
368.Op ports Ar ethX Op ,...
369.Cd lldp portidsubtype
370.Cd local Ar value Op Cd description Ar description
bef085b8
VB
371.Bd -ragged -offset XXXXXX
372Force port ID subtype. By default,
373.Nm
374will use the MAC address as port identifier and the interface name as
375port description, unless the interface has an alias. In this case, the
376interface name will be used as port identifier and the description
377will be the interface alias. With this command, you can force the port
378identifier to be the interface name (with
50a978dc
VB
379.Cd ifname ) ,
380the MAC address (with
381.Cd macaddress )
382or a local value (with
383.Cd value ) .
384In the latest case, the local value should be provided.
385Optionally, a port description can also be provided after the local
386value.
bef085b8
VB
387.Ed
388
48d0a4b0
VB
389.Cd configure
390.Cd lldp tx-interval Ar interval
391.Bd -ragged -offset XXXXXX
392Change transmit delay to the specified value in seconds. The transmit
393delay is the delay between two transmissions of LLDP PDU. The default
394value is 30 seconds.
395.Ed
396
397.Cd configure
398.Cd lldp tx-hold Ar hold
399.Bd -ragged -offset XXXXXX
400Change transmit hold value to the specified value. This value is used
401to compute the TTL of transmitted packets which is the product of this
402value and of the transmit delay. The default value is 4 and therefore
403the default TTL is 120 seconds.
404.Ed
405
24133f55
VB
406.Cd configure
407.Cd lldp custom-tlv oui Ar oui
408.Cd subtype Ar subtype
409.Op Cd oui-info Ar content
410.Bd -ragged -offset XXXXXX
411Emit a custom TLV for OUI
412.Ar oui ,
413with subtype
414.Ar subtype
415and optionnaly with the bytes specified in
416.Ar content .
417Both
418.Ar oui
419and
420.Ar content
421should be a comma-separated list of bytes.
422.Ar oui
423must be exactly 3-byte long.
424.Ed
425
426.Cd unconfigure
427.Cd lldp custom-tlv
428.Bd -ragged -offset XXXXXX
429Remove any previously configured custom TLV.
430.Ed
431
486a6133
VB
432.Cd configure med fast-start
433.Cd enable | tx-interval Ar interval
434.Bd -ragged -offset XXXXXX
435Configure LLDP-MED fast start mechanism. When a new LLDP-MED-enabled
436neighbor is detected, fast start allows
437.Nm lldpd
438to shorten the interval between two LLDPDU.
439.Cd enable
440should enable LLDP-MED fast start while
441.Cd tx-interval
442specifies the interval between two LLDPDU in seconds. The default
443interval is 1 second. Once 4 LLDPDU have been sent, the fast start
444mechanism is disabled until a new neighbor is detected.
445.Ed
446
447.Cd unconfigure med fast-start
448.Bd -ragged -offset XXXXXX
449Disable LLDP-MED fast start mechanism.
450.Ed
451
fe80711e 452.Cd configure
97772619 453.Op ports Ar ethX Op ,...
fe80711e
VB
454.Cd med location coordinate
455.Cd latitude Ar latitude
456.Cd longitude Ar longitude
457.Cd altitude Ar altitude Ar unit
458.Cd datum Ar datum
459.Bd -ragged -offset XXXXXX
460Advertise a coordinate based location on the given ports (or on all
461ports if no port is specified). The format of
462.Ar latitude
463is a decimal floating point number followed either by
464.Em N
465or
466.Em S .
467The format of
468.Ar longitude
469is a decimal floating point number followed either by
470.Em E
471or
472.Em W .
473.Ar altitude
474is a decimal floating point number followed either by
475.Em m
476when expressed in meters or
477.Em f
3fc1a10a
VB
478when expressed in floors. A space is expected between the floating
479point number and the unit.
fe80711e
VB
480.Ar datum
481is one of those values:
482.Bl -bullet -compact -offset XXXXXXXX
483.It
484WGS84
485.It
486NAD83
487.It
488NAD83/MLLW
489.El
490.Pp
491A valid use of this command is:
3fc1a10a 492.D1 configure ports eth0 med location coordinate latitude 48.85667N longitude 2.2014E altitude 117.47 m datum WGS84
fe80711e
VB
493.Ed
494
495.Cd configure
97772619 496.Op ports Ar ethX Op ,...
fe80711e
VB
497.Cd med location address
498.Cd country Ar country
499.Cd Op Ar type value Op ...
500.Bd -ragged -offset XXXXXX
501Advertise a civic address on the given ports (or on all ports if no
502port is specified).
503.Ar country
504is the two-letter code representing the country. The remaining
505arguments should be paired to form the address. The first member of
506each pair indicates the type of the second member which is a free-form
507text. Here is the list of valid types:
508.Bl -bullet -compact -offset XXXXXXXX
509.It
510language
511.It
512country-subdivision
513.It
514county
515.It
516city
517.It
518city-division
519.It
520block
521.It
522street
523.It
524direction
525.It
526trailing-street-suffix
527.It
528street-suffix
529.It
530number
531.It
532number-suffix
533.It
534landmark
535.It
536additional
537.It
538name
539.It
540zip
541.It
542building
543.It
544unit
545.It
546floor
547.It
548room
549.It
550place-type
551.It
552script
553.El
554.Pp
555A valid use of this command is:
120c071a 556.D1 configure ports eth1 med location address country US street Qo Commercial Road Qc city Qo Roseville Qc
fe80711e
VB
557.Ed
558
559.Cd configure
97772619 560.Op ports Ar ethX Op ,...
fe80711e
VB
561.Cd med location elin
562.Ar number
563.Bd -ragged -offset XXXXXX
564Advertise the availability of an ELIN number. This is used for setting
565up emergency call. If the provided number is too small, it will be
566padded with 0. Here is an example of use:
567.D1 configure ports eth2 med location elin 911
568.Ed
569
570.Cd configure
97772619 571.Op ports Ar ethX Op ,...
fe80711e
VB
572.Cd med policy
573.Cd application Ar application
574.Op Cd unknown
17e55ef9 575.Op Cd tagged
fe80711e
VB
576.Op Cd vlan Ar vlan
577.Op Cd priority Ar priority
578.Op Cd dscp Ar dscp
579.Bd -ragged -offset XXXXXX
580Advertise a specific network policy for the given ports (or for all
581ports if no port was provided). Only the application type is
582mandatory.
583.Ar application
584should be one of the following values:
585static const struct value_string port_med_policy_map[] = {
586.Bl -bullet -compact -offset XXXXXXXX
587.It
588voice
589.It
590voice-signaling
591.It
592guest-voice
593.It
594guest-voice-signaling
595.It
596softphone-voice
597.It
598video-conferencing
599.It
600streaming-video
601.It
602video-signaling
603.El
604.Pp
605The
606.Cd unknown
607flag tells that the network policy for the specified application type
608is required by the device but is currently unknown. This is used by
609Endpoint Devices, not by Network Connectivity Devices. If not
610specified, the network policy for the given application type is
611defined.
612.Pp
613When a VLAN is specified with
614.Cd vlan
615tells which 802.1q VLAN ID has to be advertised for the network
616policy. A valid value is between 1 and 4094.
17e55ef9
VB
617.Cd tagged
618tells the VLAN should be tagged for the specified application type.
fe80711e
VB
619.Cd priority
620allows one to specify IEEE 802.1d / IEEE 802.1p Layer 2 Priority, also
621known as Class of Service (CoS), to be used for the specified
17e55ef9
VB
622application type. This field is usually ignored if no VLAN is
623specified. It should be one of those values:
fe80711e
VB
624.Bl -bullet -compact -offset XXXXXXXX
625.It
626background
627.It
628spare
629.It
630best-effort
631.It
632excellent-effort
633.It
634controlled-load
635.It
636video
637.It
638voice
639.It
640network-control
641.El
642.Pp
643.Ar dscp
644represents the DSCP value to be advertised for the given network
645policy. DiffServ/Differentiated Services Code Point (DSCP) value as
646defined in IETF RFC 2474 for the specified application type. Value: 0
647(default per RFC 2475) through 63. Note: The class selector DSCP
648values are backwards compatible for devices that only support the old
649IP precedence Type of Service (ToS) format. (See the RFCs for what
650these values mean)
651.Pp
652A valid use of this command is:
653.D1 configure med policy application voice vlan 500 priority voice dscp 46
654.Ed
655
656.Cd configure
97772619 657.Op ports Ar ethX Op ,...
fe80711e
VB
658.Cd med power pse | pd
659.Cd source Ar source
660.Cd priority Ar priority
661.Cd value Ar value
662.Bd -ragged -offset XXXXXX
663Advertise the LLDP-MED POE-MDI TLV for the given ports or for all
664interfaces if no port is provided. One can act as a PD (power
665consumer) or a PSE (power provider). No check is done on the validity
666of the parameters while LLDP-MED requires some restrictions:
667.Bl -bullet
668.It
669PD shall never request more power than physical 802.3af class.
670.It
671PD shall never draw more than the maximum power advertised by PSE.
672.It
673PSE shall not reduce power allocated to PD when this power is in use.
674.It
675PSE may request reduced power using conservation mode
676.It
677Being PSE or PD is a global paremeter, not a per-port parameter.
678.Nm
679does not enforce this: a port can be set as PD or PSE. LLDP-MED also
680requires for a PSE to only have one power source (primary or
681backup). Again,
682.Nm
683does not enforce this. Each port can have its own power source. The
684same applies for PD and power priority. LLDP-MED MIB does not allow
685this kind of representation.
686.El
687.Pp
688Valid types are:
689.Bl -tag -width "XXX." -compact -offset XX
690.It Sy pse
691Power Sourcing Entity (power provider)
692.It Sy pd
693Power Device (power consumer)
694.El
695.Pp
696Valid sources are:
697.Bl -tag -width "XXXXXXX" -compact -offset XX
698.It Sy unknown
699Unknown
700.It Sy primary
701For PSE, the power source is the primary power source.
702.It Sy backup
703For PSE, the power source is the backup power source or a power
704conservation mode is asked (the PSE may be running on UPS for
705example).
706.It Sy pse
707For PD, the power source is the PSE.
708.It Sy local
709For PD, the power source is a local source.
710.It Sy both
711For PD, the power source is both the PSE and a local source.
712.El
713.Pp
714Valid priorities are:
715.Bl -tag -width "XXXXXXXXX" -compact -offset XX
716.It Sy unknown
717Unknown priority
718.It Sy critical
719Critical
720.It Sy high
721High
722.It Sy low
723Low
724.El
725.Pp
726.Ar value
727should be the total power in milliwatts required by the PD device or
728available by the PSE device.
729.Pp
730Here is an example of use:
731.D1 configure med power pd source pse priority high value 5000
732.Ed
733
734.Cd configure
97772619 735.Op ports Ar ethX Op ,...
fe80711e
VB
736.Cd dot3 power pse | pd
737.Op Cd supported
738.Op Cd enabled
739.Op Cd paircontrol
740.Cd powerpairs Ar powerpairs
741.Op Cd class Ar class
742.Op Cd type Ar type Cd source Ar source Cd priority Ar priority Cd requested Ar requested Cd allocated Ar allocated
743.Bd -ragged -offset XXXXXX
744Advertise Dot3 POE-MDI TLV for the given port or for all ports if none
745was provided. One can act as a PD (power consumer) or a PSE (power
746provider). This configuration is distinct of the configuration of the
747transmission of the LLDP-MED POE-MDI TLV but the user should ensure
748the coherency of those two configurations if they are used together.
749.Pp
750.Ar supported
751means that MDI power is supported on the given port while
752.Ar enabled
753means that MDI power is enabled.
754.Ar paircontrol
755is used to indicate if pair selection can be controlled. Valid values
756forr
757.Ar powerpairs
758are:
759.Bl -tag -width "XXXXXX" -compact -offset XX
760.It Sy signal
761The signal pairs only are in use.
762.It Sy spare
763The spare pairs only are in use.
764.El
765.Pp
766When specified,
767.Ar class
768is a number between 0 and 4.
769.Pp
770The remaining parameters are in conformance with 802.3at and are optional.
771.Ar type
772should be either 1 or 2, indicating which if the device conforms to
773802.3at type 1 or 802.3at type 2. Values ofr
774.Ar source
775and
776.Ar priority
777are the same as for LLDP-MED POE-MDI TLV.
778.Ar requested
779and
780.Ar allocated
781are expressed in milliwats.
782.Pp
783Here are two valid uses of this command:
26498cf4
VB
784.D1 configure ports eth3 dot3 power pse supported enabled paircontrol powerpairs spare class class-3
785.D1 configure dot3 power pd supported enabled powerpairs spare class class-3 type 1 source pse priority low requested 10000 allocated 15000
fe80711e
VB
786.Ed
787
e4ff3ed5
VB
788.Cd pause
789.Bd -ragged -offset XXXXXX
790Pause
791.Nm lldpd
792operations.
793.Nm lldpd
794will not send any more frames or receive ones. This can be undone with
795.Cd resume
796command.
797.Ed
798
799.Cd resume
800.Bd -ragged -offset XXXXXX
801Resume
802.Nm lldpd
803operations.
804.Nm lldpd
805will start to send and receive frames. This command is issued
806internally after processing configuration but can be used at any time
807if a manual
808.Cd pause
809command is issued.
810.Ed
811
fe80711e
VB
812.Ed
813.Sh FILES
2cbc9cc5
VB
814.Bl -tag -width "@LLDPD_CTL_SOCKET@XX" -compact
815.It @LLDPD_CTL_SOCKET@
fe80711e
VB
816Unix-domain socket used for communication with
817.Xr lldpd 8 .
818.El
819.Sh SEE ALSO
820.Xr lldpd 8
821.Sh AUTHORS
822.An -nosplit
823The
824.Nm
825program was written by
826.An Vincent Bernat Aq bernat@luffy.cx .