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