Debian Codegraph @

man/labgrid-client.1

raw
1 .\" Man page generated from reStructuredText.
2 .
3 .
4 .nr rst2man-indent-level 0
5 .
6 .de1 rstReportMargin
7 \\$1 \\n[an-margin]
8 level \\n[rst2man-indent-level]
9 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
10 -
11 \\n[rst2man-indent0]
12 \\n[rst2man-indent1]
13 \\n[rst2man-indent2]
14 ..
15 .de1 INDENT
16 .\" .rstReportMargin pre:
17 . RS \\$1
18 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
19 . nr rst2man-indent-level +1
20 .\" .rstReportMargin post:
21 ..
22 .de UNINDENT
23 . RE
24 .\" indent \\n[an-margin]
25 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
26 .nr rst2man-indent-level -1
27 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
28 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
29 ..
30 .TH "LABGRID-CLIENT" "1" "2025" "" "labgrid"
31 .SH NAME
32 labgrid-client \- labgrid's client interface to control boards
33 .sp
34 Labgrid is a scalable infrastructure and test architecture for embedded (linux) systems.
35 .sp
36 This is the client to control a boards status and interface with it on remote machines.
37 .SH LABGRID-CLIENT
38 .INDENT 0.0
39 .INDENT 3.5
40 .sp
41 .EX
42 usage: labgrid\-client [\-x ADDRESS] [\-c CONFIG] [\-p PLACE] [\-s STATE]
43 [\-i INITIAL_STATE] [\-d] [\-v] [\-P PROXY]
44 COMMAND ...
45 .EE
46 .UNINDENT
47 .UNINDENT
48 .INDENT 0.0
49 .TP
50 .B \-x <address>, \-\-coordinator <address>
51 coordinator HOST[:PORT] (default: value from env variable LG_COORDINATOR, otherwise 127.0.0.1:20408)
52 .UNINDENT
53 .INDENT 0.0
54 .TP
55 .B \-c <config>, \-\-config <config>
56 env config file (default: value from env variable LG_ENV)
57 .UNINDENT
58 .INDENT 0.0
59 .TP
60 .B \-p <place>, \-\-place <place>
61 place name/alias (default: value from env variable LG_PLACE)
62 .UNINDENT
63 .INDENT 0.0
64 .TP
65 .B \-s <state>, \-\-state <state>
66 strategy state to switch into before command (default: value from env varibale LG_STATE)
67 .UNINDENT
68 .INDENT 0.0
69 .TP
70 .B \-i <initial_state>, \-\-initial\-state <initial_state>
71 strategy state to force into before switching to desired state
72 .UNINDENT
73 .INDENT 0.0
74 .TP
75 .B \-d, \-\-debug
76 enable debug mode (show python tracebacks)
77 .UNINDENT
78 .INDENT 0.0
79 .TP
80 .B \-v, \-\-verbose
81 .UNINDENT
82 .INDENT 0.0
83 .TP
84 .B \-P <proxy>, \-\-proxy <proxy>
85 proxy connections via given ssh host
86 .UNINDENT
87 .SS labgrid\-client acquire|lock
88 .sp
89 acquire a place
90 .INDENT 0.0
91 .INDENT 3.5
92 .sp
93 .EX
94 usage: labgrid\-client acquire|lock [\-\-allow\-unmatched]
95 .EE
96 .UNINDENT
97 .UNINDENT
98 .INDENT 0.0
99 .TP
100 .B \-\-allow\-unmatched
101 allow missing resources for matches when locking the place
102 .UNINDENT
103 .SS labgrid\-client add\-alias
104 .sp
105 add an alias to a place
106 .INDENT 0.0
107 .INDENT 3.5
108 .sp
109 .EX
110 usage: labgrid\-client add\-alias alias
111 .EE
112 .UNINDENT
113 .UNINDENT
114 .INDENT 0.0
115 .TP
116 .B alias
117 .UNINDENT
118 .SS labgrid\-client add\-match
119 .sp
120 add one (or multiple) match pattern(s) to a place
121 .INDENT 0.0
122 .INDENT 3.5
123 .sp
124 .EX
125 usage: labgrid\-client add\-match PATTERN [PATTERN ...]
126 .EE
127 .UNINDENT
128 .UNINDENT
129 .INDENT 0.0
130 .TP
131 .B pattern
132 .UNINDENT
133 .SS labgrid\-client add\-named\-match
134 .sp
135 add one match pattern with a name to a place
136 .INDENT 0.0
137 .INDENT 3.5
138 .sp
139 .EX
140 usage: labgrid\-client add\-named\-match PATTERN NAME
141 .EE
142 .UNINDENT
143 .UNINDENT
144 .INDENT 0.0
145 .TP
146 .B pattern
147 .UNINDENT
148 .INDENT 0.0
149 .TP
150 .B name
151 .UNINDENT
152 .SS labgrid\-client allow
153 .sp
154 allow another user to access a place
155 .INDENT 0.0
156 .INDENT 3.5
157 .sp
158 .EX
159 usage: labgrid\-client allow user
160 .EE
161 .UNINDENT
162 .UNINDENT
163 .INDENT 0.0
164 .TP
165 .B user
166 <host>/<username>
167 .UNINDENT
168 .SS labgrid\-client audio
169 .sp
170 start a audio stream
171 .INDENT 0.0
172 .INDENT 3.5
173 .sp
174 .EX
175 usage: labgrid\-client audio [\-\-name NAME]
176 .EE
177 .UNINDENT
178 .UNINDENT
179 .INDENT 0.0
180 .TP
181 .B \-\-name <name>, \-n <name>
182 optional resource name
183 .UNINDENT
184 .SS labgrid\-client bootstrap
185 .sp
186 start a bootloader
187 .INDENT 0.0
188 .INDENT 3.5
189 .sp
190 .EX
191 usage: labgrid\-client bootstrap [\-w WAIT] [\-\-name NAME] filename ...
192 .EE
193 .UNINDENT
194 .UNINDENT
195 .INDENT 0.0
196 .TP
197 .B filename
198 filename to boot on the target
199 .UNINDENT
200 .INDENT 0.0
201 .TP
202 .B arg
203 extra bootstrap arguments
204 .UNINDENT
205 .INDENT 0.0
206 .TP
207 .B \-w <wait>, \-\-wait <wait>
208 .UNINDENT
209 .INDENT 0.0
210 .TP
211 .B \-\-name <name>, \-n <name>
212 optional resource name
213 .UNINDENT
214 .SS labgrid\-client cancel\-reservation
215 .sp
216 cancel a reservation
217 .INDENT 0.0
218 .INDENT 3.5
219 .sp
220 .EX
221 usage: labgrid\-client cancel\-reservation [token]
222 .EE
223 .UNINDENT
224 .UNINDENT
225 .INDENT 0.0
226 .TP
227 .B token
228 .UNINDENT
229 .SS labgrid\-client console|con
230 .sp
231 connect to the console
232 .INDENT 0.0
233 .INDENT 3.5
234 .sp
235 .EX
236 usage: labgrid\-client console|con [\-l] [\-o] [\-\-logfile FILE] [name]
237 .EE
238 .UNINDENT
239 .UNINDENT
240 .INDENT 0.0
241 .TP
242 .B name
243 optional resource name
244 .UNINDENT
245 .INDENT 0.0
246 .TP
247 .B \-l, \-\-loop
248 keep trying to connect if the console is unavailable
249 .UNINDENT
250 .INDENT 0.0
251 .TP
252 .B \-o, \-\-listenonly
253 do not modify local terminal, do not send input from stdin
254 .UNINDENT
255 .INDENT 0.0
256 .TP
257 .B \-\-logfile <file>
258 Log output to FILE
259 .UNINDENT
260 .SS labgrid\-client create
261 .sp
262 add a new place with the name specified via \-\-place or the LG_PLACE environment variable
263 .INDENT 0.0
264 .INDENT 3.5
265 .sp
266 .EX
267 usage: labgrid\-client create
268 .EE
269 .UNINDENT
270 .UNINDENT
271 .SS labgrid\-client del\-alias
272 .sp
273 delete an alias from a place
274 .INDENT 0.0
275 .INDENT 3.5
276 .sp
277 .EX
278 usage: labgrid\-client del\-alias alias
279 .EE
280 .UNINDENT
281 .UNINDENT
282 .INDENT 0.0
283 .TP
284 .B alias
285 .UNINDENT
286 .SS labgrid\-client del\-match
287 .sp
288 delete one (or multiple) match pattern(s) from a place
289 .INDENT 0.0
290 .INDENT 3.5
291 .sp
292 .EX
293 usage: labgrid\-client del\-match PATTERN [PATTERN ...]
294 .EE
295 .UNINDENT
296 .UNINDENT
297 .INDENT 0.0
298 .TP
299 .B pattern
300 .UNINDENT
301 .SS labgrid\-client delete
302 .sp
303 delete an existing place
304 .INDENT 0.0
305 .INDENT 3.5
306 .sp
307 .EX
308 usage: labgrid\-client delete
309 .EE
310 .UNINDENT
311 .UNINDENT
312 .SS labgrid\-client dfu
313 .sp
314 communicate with device in DFU mode
315 .INDENT 0.0
316 .INDENT 3.5
317 .sp
318 .EX
319 usage: labgrid\-client dfu [\-\-wait WAIT] [\-\-name NAME]
320 {download,detach,list} [altsetting] [filename]
321 .EE
322 .UNINDENT
323 .UNINDENT
324 .INDENT 0.0
325 .TP
326 .B action
327 action
328 .UNINDENT
329 .INDENT 0.0
330 .TP
331 .B altsetting
332 altsetting name or number (download, detach only)
333 .UNINDENT
334 .INDENT 0.0
335 .TP
336 .B filename
337 file to write into device (download only)
338 .UNINDENT
339 .INDENT 0.0
340 .TP
341 .B \-\-wait <wait>
342 .UNINDENT
343 .INDENT 0.0
344 .TP
345 .B \-\-name <name>, \-n <name>
346 optional resource name
347 .UNINDENT
348 .SS labgrid\-client env
349 .sp
350 generate a labgrid environment file for a place
351 .INDENT 0.0
352 .INDENT 3.5
353 .sp
354 .EX
355 usage: labgrid\-client env
356 .EE
357 .UNINDENT
358 .UNINDENT
359 .SS labgrid\-client export
360 .sp
361 export driver information to a file (needs environment with drivers)
362 .INDENT 0.0
363 .INDENT 3.5
364 .sp
365 .EX
366 usage: labgrid\-client export [\-\-format {shell,shell\-export,json}] filename
367 .EE
368 .UNINDENT
369 .UNINDENT
370 .INDENT 0.0
371 .TP
372 .B filename
373 output filename
374 .UNINDENT
375 .INDENT 0.0
376 .TP
377 .B \-\-format {shell,shell\-export,json}
378 output format (default: shell\-export)
379 .UNINDENT
380 .SS labgrid\-client fastboot
381 .sp
382 run fastboot
383 .INDENT 0.0
384 .INDENT 3.5
385 .sp
386 .EX
387 usage: labgrid\-client fastboot [\-\-wait WAIT] [\-\-name NAME] ...
388 .EE
389 .UNINDENT
390 .UNINDENT
391 .INDENT 0.0
392 .TP
393 .B arg
394 fastboot arguments
395 .UNINDENT
396 .INDENT 0.0
397 .TP
398 .B \-\-wait <wait>
399 .UNINDENT
400 .INDENT 0.0
401 .TP
402 .B \-\-name <name>, \-n <name>
403 optional resource name
404 .UNINDENT
405 .SS labgrid\-client flashscript
406 .sp
407 Run arbitrary script with arguments to flash device
408 .INDENT 0.0
409 .INDENT 3.5
410 .sp
411 .EX
412 usage: labgrid\-client flashscript [\-\-name NAME] script ...
413 .EE
414 .UNINDENT
415 .UNINDENT
416 .INDENT 0.0
417 .TP
418 .B script
419 Flashing script
420 .UNINDENT
421 .INDENT 0.0
422 .TP
423 .B arg
424 script arguments
425 .UNINDENT
426 .INDENT 0.0
427 .TP
428 .B \-\-name <name>, \-n <name>
429 optional resource name
430 .UNINDENT
431 .SS labgrid\-client forward
432 .sp
433 forward local port to remote target
434 .INDENT 0.0
435 .INDENT 3.5
436 .sp
437 .EX
438 usage: labgrid\-client forward [\-\-name NAME] [\-\-local [LOCAL:]REMOTE]
439 [\-\-remote REMOTE:LOCAL]
440 .EE
441 .UNINDENT
442 .UNINDENT
443 .INDENT 0.0
444 .TP
445 .B \-\-name <name>, \-n <name>
446 optional resource name
447 .UNINDENT
448 .INDENT 0.0
449 .TP
450 .B \-\-local, \-L
451 Forward local port LOCAL to remote port REMOTE. If LOCAL is unspecified, an arbitrary port will be chosen
452 .UNINDENT
453 .INDENT 0.0
454 .TP
455 .B \-\-remote, \-R
456 Forward remote port REMOTE to local port LOCAL
457 .UNINDENT
458 .SS labgrid\-client io
459 .sp
460 change (or get) a digital IO status
461 .INDENT 0.0
462 .INDENT 3.5
463 .sp
464 .EX
465 usage: labgrid\-client io {high,low,get} [name]
466 .EE
467 .UNINDENT
468 .UNINDENT
469 .INDENT 0.0
470 .TP
471 .B action
472 action
473 .UNINDENT
474 .INDENT 0.0
475 .TP
476 .B name
477 optional resource name
478 .UNINDENT
479 .SS labgrid\-client monitor
480 .sp
481 monitor events from the coordinator
482 .INDENT 0.0
483 .INDENT 3.5
484 .sp
485 .EX
486 usage: labgrid\-client monitor
487 .EE
488 .UNINDENT
489 .UNINDENT
490 .SS labgrid\-client netns
491 .sp
492 start a network namespace with access to NetworkInterface
493 .INDENT 0.0
494 .INDENT 3.5
495 .sp
496 .EX
497 usage: labgrid\-client netns [\-\-name NAME] [\-\-address ADDRESS]
498 [\-\-mac\-address MAC_ADDRESS] [\-\-nsenter [NSENTER]]
499 ...
500 .EE
501 .UNINDENT
502 .UNINDENT
503 .INDENT 0.0
504 .TP
505 .B cmd
506 command to execute in the namespace. If unspecified, $SHELL is invoked
507 .UNINDENT
508 .INDENT 0.0
509 .TP
510 .B \-\-name <name>, \-n <name>
511 optional resource name
512 .UNINDENT
513 .INDENT 0.0
514 .TP
515 .B \-\-address <address>, \-a <address>
516 assign address to interface (CIDR notation)
517 .UNINDENT
518 .INDENT 0.0
519 .TP
520 .B \-\-mac\-address <mac_address>
521 assign MAC address to interface
522 .UNINDENT
523 .INDENT 0.0
524 .TP
525 .B \-\-nsenter <nsenter>, \-e <nsenter>
526 create nsenter wrapper script
527 .UNINDENT
528 .SS labgrid\-client places|p
529 .sp
530 list available places
531 .INDENT 0.0
532 .INDENT 3.5
533 .sp
534 .EX
535 usage: labgrid\-client places|p [\-a] [\-r] [\-\-sort\-last\-changed]
536 .EE
537 .UNINDENT
538 .UNINDENT
539 .INDENT 0.0
540 .TP
541 .B \-a, \-\-acquired
542 .UNINDENT
543 .INDENT 0.0
544 .TP
545 .B \-r, \-\-released
546 .UNINDENT
547 .INDENT 0.0
548 .TP
549 .B \-\-sort\-last\-changed
550 sort by last changed date (oldest first)
551 .UNINDENT
552 .SS labgrid\-client power|pw
553 .sp
554 change (or get) a place\(aqs power status
555 .INDENT 0.0
556 .INDENT 3.5
557 .sp
558 .EX
559 usage: labgrid\-client power|pw [\-t DELAY] [\-\-name NAME] {on,off,cycle,get}
560 .EE
561 .UNINDENT
562 .UNINDENT
563 .INDENT 0.0
564 .TP
565 .B action
566 .UNINDENT
567 .INDENT 0.0
568 .TP
569 .B \-t <delay>, \-\-delay <delay>
570 wait time in seconds between off and on during cycle
571 .UNINDENT
572 .INDENT 0.0
573 .TP
574 .B \-\-name <name>, \-n <name>
575 optional resource name
576 .UNINDENT
577 .SS labgrid\-client release\-from
578 .sp
579 atomically release a place, but only if locked by a specific user
580 .INDENT 0.0
581 .INDENT 3.5
582 .sp
583 .EX
584 usage: labgrid\-client release\-from HOST/USER
585 .EE
586 .UNINDENT
587 .UNINDENT
588 .INDENT 0.0
589 .TP
590 .B host/user
591 User and host to match against when releasing
592 .UNINDENT
593 .sp
594 Note that this command returns success as long as the specified user no longer owns the place, meaning it may be acquired by another user or not at all.
595 .SS labgrid\-client release|unlock
596 .sp
597 release a place
598 .INDENT 0.0
599 .INDENT 3.5
600 .sp
601 .EX
602 usage: labgrid\-client release|unlock [\-k]
603 .EE
604 .UNINDENT
605 .UNINDENT
606 .INDENT 0.0
607 .TP
608 .B \-k, \-\-kick
609 release a place even if it is acquired by a different user
610 .UNINDENT
611 .SS labgrid\-client reservations
612 .sp
613 list current reservations
614 .INDENT 0.0
615 .INDENT 3.5
616 .sp
617 .EX
618 usage: labgrid\-client reservations
619 .EE
620 .UNINDENT
621 .UNINDENT
622 .SS labgrid\-client reserve
623 .sp
624 create a reservation
625 .INDENT 0.0
626 .INDENT 3.5
627 .sp
628 .EX
629 usage: labgrid\-client reserve [\-\-wait] [\-\-shell] [\-\-prio PRIO]
630 KEY=VALUE [KEY=VALUE ...]
631 .EE
632 .UNINDENT
633 .UNINDENT
634 .INDENT 0.0
635 .TP
636 .B key=value
637 required tags
638 .UNINDENT
639 .INDENT 0.0
640 .TP
641 .B \-\-wait
642 wait until the reservation is allocated
643 .UNINDENT
644 .INDENT 0.0
645 .TP
646 .B \-\-shell
647 format output as shell variables
648 .UNINDENT
649 .INDENT 0.0
650 .TP
651 .B \-\-prio <prio>
652 priority relative to other reservations (default 0)
653 .UNINDENT
654 .SS labgrid\-client resources|r
655 .sp
656 list available resources
657 .INDENT 0.0
658 .INDENT 3.5
659 .sp
660 .EX
661 usage: labgrid\-client resources|r [\-a] [\-e EXPORTER]
662 [\-\-sort\-by\-matched\-place\-change]
663 [match]
664 .EE
665 .UNINDENT
666 .UNINDENT
667 .INDENT 0.0
668 .TP
669 .B match
670 .UNINDENT
671 .INDENT 0.0
672 .TP
673 .B \-a, \-\-acquired
674 .UNINDENT
675 .INDENT 0.0
676 .TP
677 .B \-e <exporter>, \-\-exporter <exporter>
678 .UNINDENT
679 .INDENT 0.0
680 .TP
681 .B \-\-sort\-by\-matched\-place\-change
682 sort by matched place\(aqs changed date (oldest first) and show place and date
683 .UNINDENT
684 .SS labgrid\-client rsync
685 .sp
686 transfer files via rsync
687 .INDENT 0.0
688 .INDENT 3.5
689 .sp
690 .EX
691 usage: labgrid\-client rsync [\-\-name NAME] src dst
692 .EE
693 .UNINDENT
694 .UNINDENT
695 .INDENT 0.0
696 .TP
697 .B src
698 source path (use :dir/file for remote side)
699 .UNINDENT
700 .INDENT 0.0
701 .TP
702 .B dst
703 destination path (use :dir/file for remote side)
704 .UNINDENT
705 .INDENT 0.0
706 .TP
707 .B \-\-name <name>, \-n <name>
708 optional resource name
709 .UNINDENT
710 .sp
711 Additional arguments are passed to the rsync subprocess.
712 .SS labgrid\-client scp
713 .sp
714 transfer file via scp
715 .INDENT 0.0
716 .INDENT 3.5
717 .sp
718 .EX
719 usage: labgrid\-client scp [\-\-name NAME] src dst
720 .EE
721 .UNINDENT
722 .UNINDENT
723 .INDENT 0.0
724 .TP
725 .B src
726 source path (use :dir/file for remote side)
727 .UNINDENT
728 .INDENT 0.0
729 .TP
730 .B dst
731 destination path (use :dir/file for remote side)
732 .UNINDENT
733 .INDENT 0.0
734 .TP
735 .B \-\-name <name>, \-n <name>
736 optional resource name
737 .UNINDENT
738 .SS labgrid\-client sd\-mux
739 .sp
740 switch USB SD Muxer or get current mode
741 .INDENT 0.0
742 .INDENT 3.5
743 .sp
744 .EX
745 usage: labgrid\-client sd\-mux [\-\-name NAME] {dut,host,off,client,get}
746 .EE
747 .UNINDENT
748 .UNINDENT
749 .INDENT 0.0
750 .TP
751 .B action
752 .UNINDENT
753 .INDENT 0.0
754 .TP
755 .B \-\-name <name>, \-n <name>
756 optional resource name
757 .UNINDENT
758 .SS labgrid\-client set\-comment
759 .sp
760 update the place comment
761 .INDENT 0.0
762 .INDENT 3.5
763 .sp
764 .EX
765 usage: labgrid\-client set\-comment comment [comment ...]
766 .EE
767 .UNINDENT
768 .UNINDENT
769 .INDENT 0.0
770 .TP
771 .B comment
772 .UNINDENT
773 .SS labgrid\-client set\-tags
774 .sp
775 update the place tags
776 .INDENT 0.0
777 .INDENT 3.5
778 .sp
779 .EX
780 usage: labgrid\-client set\-tags KEY=VALUE [KEY=VALUE ...]
781 .EE
782 .UNINDENT
783 .UNINDENT
784 .INDENT 0.0
785 .TP
786 .B key=value
787 use an empty value for deletion
788 .UNINDENT
789 .SS labgrid\-client show
790 .sp
791 show a place and related resources
792 .INDENT 0.0
793 .INDENT 3.5
794 .sp
795 .EX
796 usage: labgrid\-client show
797 .EE
798 .UNINDENT
799 .UNINDENT
800 .SS labgrid\-client ssh
801 .sp
802 connect via ssh (with optional arguments)
803 .INDENT 0.0
804 .INDENT 3.5
805 .sp
806 .EX
807 usage: labgrid\-client ssh [\-\-name NAME]
808 .EE
809 .UNINDENT
810 .UNINDENT
811 .INDENT 0.0
812 .TP
813 .B \-\-name <name>, \-n <name>
814 optional resource name
815 .UNINDENT
816 .sp
817 Additional arguments are passed to the ssh subprocess.
818 .SS labgrid\-client sshfs
819 .sp
820 mount via sshfs (blocking)
821 .INDENT 0.0
822 .INDENT 3.5
823 .sp
824 .EX
825 usage: labgrid\-client sshfs [\-\-name NAME] path mountpoint
826 .EE
827 .UNINDENT
828 .UNINDENT
829 .INDENT 0.0
830 .TP
831 .B path
832 remote path on the target
833 .UNINDENT
834 .INDENT 0.0
835 .TP
836 .B mountpoint
837 local path
838 .UNINDENT
839 .INDENT 0.0
840 .TP
841 .B \-\-name <name>, \-n <name>
842 optional resource name
843 .UNINDENT
844 .SS labgrid\-client telnet
845 .sp
846 connect via telnet
847 .INDENT 0.0
848 .INDENT 3.5
849 .sp
850 .EX
851 usage: labgrid\-client telnet
852 .EE
853 .UNINDENT
854 .UNINDENT
855 .SS labgrid\-client tmc
856 .sp
857 control a USB TMC device
858 .INDENT 0.0
859 .INDENT 3.5
860 .sp
861 .EX
862 usage: labgrid\-client tmc [\-\-name NAME] SUBCOMMAND ...
863 .EE
864 .UNINDENT
865 .UNINDENT
866 .INDENT 0.0
867 .TP
868 .B \-\-name <name>, \-n <name>
869 optional resource name
870 .UNINDENT
871 .SS labgrid\-client tmc channel
872 .sp
873 use a channel
874 .INDENT 0.0
875 .INDENT 3.5
876 .sp
877 .EX
878 usage: labgrid\-client tmc channel channel {info,values}
879 .EE
880 .UNINDENT
881 .UNINDENT
882 .INDENT 0.0
883 .TP
884 .B channel
885 .UNINDENT
886 .INDENT 0.0
887 .TP
888 .B action
889 .UNINDENT
890 .SS labgrid\-client tmc cmd|c
891 .sp
892 execute raw command
893 .INDENT 0.0
894 .INDENT 3.5
895 .sp
896 .EX
897 usage: labgrid\-client tmc cmd|c command [command ...]
898 .EE
899 .UNINDENT
900 .UNINDENT
901 .INDENT 0.0
902 .TP
903 .B command
904 .UNINDENT
905 .SS labgrid\-client tmc query|q
906 .sp
907 execute raw query
908 .INDENT 0.0
909 .INDENT 3.5
910 .sp
911 .EX
912 usage: labgrid\-client tmc query|q query [query ...]
913 .EE
914 .UNINDENT
915 .UNINDENT
916 .INDENT 0.0
917 .TP
918 .B query
919 .UNINDENT
920 .SS labgrid\-client tmc screen
921 .sp
922 show or save a screenshot
923 .INDENT 0.0
924 .INDENT 3.5
925 .sp
926 .EX
927 usage: labgrid\-client tmc screen {show,save}
928 .EE
929 .UNINDENT
930 .UNINDENT
931 .INDENT 0.0
932 .TP
933 .B action
934 .UNINDENT
935 .SS labgrid\-client usb\-mux
936 .sp
937 switch USB Muxer
938 .INDENT 0.0
939 .INDENT 3.5
940 .sp
941 .EX
942 usage: labgrid\-client usb\-mux [\-\-name NAME]
943 {off,dut\-device,host\-dut,host\-device,host\-dut+host\-device}
944 .EE
945 .UNINDENT
946 .UNINDENT
947 .INDENT 0.0
948 .TP
949 .B links
950 .UNINDENT
951 .INDENT 0.0
952 .TP
953 .B \-\-name <name>, \-n <name>
954 optional resource name
955 .UNINDENT
956 .SS labgrid\-client version
957 .sp
958 show version
959 .INDENT 0.0
960 .INDENT 3.5
961 .sp
962 .EX
963 usage: labgrid\-client version
964 .EE
965 .UNINDENT
966 .UNINDENT
967 .SS labgrid\-client video
968 .sp
969 start a video stream
970 .INDENT 0.0
971 .INDENT 3.5
972 .sp
973 .EX
974 usage: labgrid\-client video [\-q QUALITY] [\-c CONTROLS] [\-\-name NAME]
975 .EE
976 .UNINDENT
977 .UNINDENT
978 .INDENT 0.0
979 .TP
980 .B \-q <quality>, \-\-quality <quality>
981 select a video quality (use \(aqlist\(aq to show options)
982 .UNINDENT
983 .INDENT 0.0
984 .TP
985 .B \-c <controls>, \-\-controls <controls>
986 configure v4l controls (such as \(aqfocus_auto=0,focus_absolute=40\(aq)
987 .UNINDENT
988 .INDENT 0.0
989 .TP
990 .B \-\-name <name>, \-n <name>
991 optional resource name
992 .UNINDENT
993 .SS labgrid\-client wait
994 .sp
995 wait for a reservation to be allocated
996 .INDENT 0.0
997 .INDENT 3.5
998 .sp
999 .EX
1000 usage: labgrid\-client wait [token]
1001 .EE
1002 .UNINDENT
1003 .UNINDENT
1004 .INDENT 0.0
1005 .TP
1006 .B token
1007 .UNINDENT
1008 .SS labgrid\-client who
1009 .sp
1010 list acquired places by user
1011 .INDENT 0.0
1012 .INDENT 3.5
1013 .sp
1014 .EX
1015 usage: labgrid\-client who [\-e]
1016 .EE
1017 .UNINDENT
1018 .UNINDENT
1019 .INDENT 0.0
1020 .TP
1021 .B \-e, \-\-show\-exporters
1022 show exporters currently used by each place
1023 .UNINDENT
1024 .SS labgrid\-client write\-files
1025 .sp
1026 copy files onto mass storage device
1027 .INDENT 0.0
1028 .INDENT 3.5
1029 .sp
1030 .EX
1031 usage: labgrid\-client write\-files [OPTION]... \-T SOURCE DEST
1032 labgrid\-client write\-files [OPTION]... [\-t DIRECTORY] SOURCE...
1033 .EE
1034 .UNINDENT
1035 .UNINDENT
1036 .INDENT 0.0
1037 .TP
1038 .B source
1039 source file(s) to copy
1040 .UNINDENT
1041 .INDENT 0.0
1042 .TP
1043 .B dest
1044 destination file name for SOURCE
1045 .UNINDENT
1046 .INDENT 0.0
1047 .TP
1048 .B \-w <wait>, \-\-wait <wait>
1049 storage poll timeout in seconds
1050 .UNINDENT
1051 .INDENT 0.0
1052 .TP
1053 .B \-p <0\-255>, \-\-partition <0\-255>
1054 partition number to mount or 0 to mount whole disk (default: 1)
1055 .UNINDENT
1056 .INDENT 0.0
1057 .TP
1058 .B \-t <directory>, \-\-target\-directory <directory>
1059 copy all SOURCE files into DIRECTORY (default: partition root)
1060 .UNINDENT
1061 .INDENT 0.0
1062 .TP
1063 .B \-T
1064 copy SOURCE file and rename to DEST
1065 .UNINDENT
1066 .INDENT 0.0
1067 .TP
1068 .B \-\-name <name>, \-n <name>
1069 optional resource name
1070 .UNINDENT
1071 .SS labgrid\-client write\-image
1072 .sp
1073 write an image onto mass storage
1074 .INDENT 0.0
1075 .INDENT 3.5
1076 .sp
1077 .EX
1078 usage: labgrid\-client write\-image [\-w WAIT] [\-p PARTITION] [\-\-skip SKIP]
1079 [\-\-seek SEEK] [\-\-mode {dd,bmaptool}]
1080 [\-\-name NAME]
1081 filename
1082 .EE
1083 .UNINDENT
1084 .UNINDENT
1085 .INDENT 0.0
1086 .TP
1087 .B filename
1088 filename to boot on the target
1089 .UNINDENT
1090 .INDENT 0.0
1091 .TP
1092 .B \-w <wait>, \-\-wait <wait>
1093 .UNINDENT
1094 .INDENT 0.0
1095 .TP
1096 .B \-p <partition>, \-\-partition <partition>
1097 partition number to write to
1098 .UNINDENT
1099 .INDENT 0.0
1100 .TP
1101 .B \-\-skip <skip>
1102 skip n 512\-sized blocks at start of input
1103 .UNINDENT
1104 .INDENT 0.0
1105 .TP
1106 .B \-\-seek <seek>
1107 skip n 512\-sized blocks at start of output
1108 .UNINDENT
1109 .INDENT 0.0
1110 .TP
1111 .B \-\-mode {dd,bmaptool}
1112 Choose tool for writing images (default: dd)
1113 .UNINDENT
1114 .INDENT 0.0
1115 .TP
1116 .B \-\-name <name>, \-n <name>
1117 optional resource name
1118 .UNINDENT
1119 .SH CONFIGURATION FILE
1120 .sp
1121 The configuration file follows the description in \fBlabgrid\-device\-config\fP(5).
1122 .SH ENVIRONMENT VARIABLES
1123 .sp
1124 Various labgrid\-client commands use the following environment variable:
1125 .SS LG_PLACE
1126 .sp
1127 This variable can be used to specify a place without using the \fB\-p\fP option, the \fB\-p\fP option overrides it.
1128 .SS LG_TOKEN
1129 .sp
1130 This variable can be used to specify a reservation for the \fBwait\fP command and
1131 for the \fB+\fP place expansion.
1132 .SS LG_STATE
1133 .sp
1134 This variable can be used to specify a state which the device transitions into
1135 before executing a command. Requires a configuration file and a Strategy
1136 specified for the device.
1137 .SS LG_INITIAL_STATE
1138 .sp
1139 This variable can be used to specify an initial state the device is known to
1140 be in.
1141 This is useful during development. The Strategy used must implement the
1142 \fBforce()\fP method.
1143 A desired state must be set using \fBLG_STATE\fP or \fB\-s\fP/\fB\-\-state\fP\&.
1144 .SS LG_ENV
1145 .sp
1146 This variable can be used to specify the configuration file to use without
1147 using the \fB\-\-config\fP option, the \fB\-\-config\fP option overrides it.
1148 .SS LG_COORDINATOR
1149 .sp
1150 This variable can be used to set the default coordinator in the format
1151 \fBHOST[:PORT]\fP (instead of using the \fB\-x\fP option).
1152 .SS LG_PROXY
1153 .sp
1154 This variable can be used to specify a SSH proxy hostname which should be used
1155 to connect to the coordinator and any resources which are normally accessed
1156 directly.
1157 .SS LG_HOSTNAME
1158 .sp
1159 Override the hostname used when accessing a resource. Typically only useful for
1160 CI pipelines where the hostname may not be consistent between pipeline stages.
1161 .SS LG_USERNAME
1162 .sp
1163 Override the username used when accessing a resource. Typically only useful for
1164 CI pipelines where the username may not be consistent between pipeline stages.
1165 .SS LG_SSH_CONNECT_TIMEOUT
1166 .sp
1167 Set the connection timeout when using SSH (The \fBConnectTimeout\fP option). If
1168 unspecified, defaults to 30 seconds.
1169 .SS LG_AGENT_PREFIX
1170 .sp
1171 Add a prefix to \fB\&.labgrid_agent_{agent_hash}.py\fP allowing specification for
1172 where on the exporter it should be uploaded to.
1173 .SH MATCHES
1174 .sp
1175 Match patterns are used to assign a resource to a specific place. The format is:
1176 exporter/group/cls/name, exporter is the name of the exporting machine, group is
1177 a name defined within the exporter, cls is the class of the exported resource
1178 and name is its name. Wild cards in match patterns are explicitly allowed, *
1179 matches anything.
1180 .SH ADDING NAMED RESOURCES
1181 .sp
1182 If a target contains multiple Resources of the same type, named matches need to
1183 be used to address the individual resources. In addition to the \fImatch\fP taken by
1184 \fBadd\-match\fP, \fBadd\-named\-match\fP also takes a name for the resource. The other
1185 client commands support the name as an optional parameter and will inform the
1186 user that a name is required if multiple resources are found, but no name is
1187 given.
1188 .sp
1189 If one of the resources should be used by default when no resource name is
1190 explicitly specified, it can be named \fBdefault\fP\&.
1191 .SH EXAMPLES
1192 .sp
1193 To retrieve a list of places run:
1194 .INDENT 0.0
1195 .INDENT 3.5
1196 .sp
1197 .EX
1198 $ labgrid\-client places
1199 .EE
1200 .UNINDENT
1201 .UNINDENT
1202 .sp
1203 To access a place, it needs to be acquired first, this can be done by running
1204 the \fBacquire command\fP and passing the placename as a \-p parameter:
1205 .INDENT 0.0
1206 .INDENT 3.5
1207 .sp
1208 .EX
1209 $ labgrid\-client \-p <placename> acquire
1210 .EE
1211 .UNINDENT
1212 .UNINDENT
1213 .sp
1214 Open a console to the acquired place:
1215 .INDENT 0.0
1216 .INDENT 3.5
1217 .sp
1218 .EX
1219 $ labgrid\-client \-p <placename> console
1220 .EE
1221 .UNINDENT
1222 .UNINDENT
1223 .sp
1224 Add all resources with the group \(dqexample\-group\(dq to the place example\-place:
1225 .INDENT 0.0
1226 .INDENT 3.5
1227 .sp
1228 .EX
1229 $ labgrid\-client \-p example\-place add\-match */example\-group/*/*
1230 .EE
1231 .UNINDENT
1232 .UNINDENT
1233 .SH SEE ALSO
1234 .sp
1235 \fBlabgrid\-exporter\fP(1)
1236 .SH AUTHOR
1237 Jan Luebbe, Rouven Czerwinski
1238 .SH COPYRIGHT
1239 2016-2025 Pengutronix, Jan Luebbe and Rouven Czerwinski
1240 .\" Generated by docutils manpage writer.
1241 .