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