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