| 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-EXPORTER" "1" "2025" "" "labgrid" |
| 31 |
.SH NAME |
| 32 |
labgrid-exporter \- interface to control boards |
| 33 |
.SH LABGRID-EXPORTER INTERFACE TO CONTROL BOARDS |
| 34 |
.SS SYNOPSIS |
| 35 |
.sp |
| 36 |
\fBlabgrid\-exporter\fP \fB\-\-help\fP |
| 37 |
.sp |
| 38 |
\fBlabgrid\-exporter\fP \fB*.yaml\fP |
| 39 |
.SS DESCRIPTION |
| 40 |
.sp |
| 41 |
Labgrid is a scalable infrastructure and test architecture for embedded (linux) systems. |
| 42 |
.sp |
| 43 |
This is the man page for the exporter, supporting the export of serial ports, |
| 44 |
USB devices and various other controllers. |
| 45 |
.SS OPTIONS |
| 46 |
.INDENT 0.0 |
| 47 |
.TP |
| 48 |
.B \-h\fP,\fB \-\-help |
| 49 |
display command line help |
| 50 |
.TP |
| 51 |
.B \-x\fP,\fB \-\-coordinator |
| 52 |
coordinator \fBHOST[:PORT]\fP to connect to, defaults to \fB127.0.0.1:20408\fP |
| 53 |
.TP |
| 54 |
.B \-i\fP,\fB \-\-isolated |
| 55 |
enable isolated mode (always request SSH forwards) |
| 56 |
.TP |
| 57 |
.B \-n\fP,\fB \-\-name |
| 58 |
the public name of the exporter |
| 59 |
.TP |
| 60 |
.B \-\-hostname |
| 61 |
hostname (or IP) published for accessing resources |
| 62 |
.TP |
| 63 |
.B \-\-fqdn |
| 64 |
use fully qualified domain name as default for hostname |
| 65 |
.TP |
| 66 |
.B \-d\fP,\fB \-\-debug |
| 67 |
enable debug mode |
| 68 |
.UNINDENT |
| 69 |
.SS \-i / \-\-isolated |
| 70 |
.sp |
| 71 |
This option enables isolated mode, which causes all exported resources being |
| 72 |
marked as requiring SSH connection forwarding. |
| 73 |
Isolated mode is useful when resources (such as NetworkSerialPorts) are not |
| 74 |
directly accessible from the clients. |
| 75 |
The client will then use SSH to create a port forward to the resource when |
| 76 |
needed. |
| 77 |
.SS \-n / \-\-name |
| 78 |
.sp |
| 79 |
This option is used to configure the exporter name under which resources are |
| 80 |
registered with the coordinator, which is useful when running multiple |
| 81 |
exporters on the same host. |
| 82 |
It defaults to the system hostname. |
| 83 |
.SS \-\-hostname |
| 84 |
.sp |
| 85 |
For resources like USBSerialPort, USBGenericExport or USBSigrokExport, the |
| 86 |
exporter needs to provide a host name to set the exported value of the \(dqhost\(dq |
| 87 |
key. |
| 88 |
If the system hostname is not resolvable via DNS, this option can be used to |
| 89 |
override this default with another name (or an IP address). |
| 90 |
.SS \-\-fqdn |
| 91 |
.sp |
| 92 |
In some networks the fully qualified domain name may be needed to reach resources |
| 93 |
on an exporter. This option changes the default to fqdn when no \-\-hostname is |
| 94 |
explicitly set. |
| 95 |
.SS CONFIGURATION |
| 96 |
.sp |
| 97 |
The exporter uses a YAML configuration file which defines groups of related |
| 98 |
resources. |
| 99 |
See <\X'tty: link https://labgrid.readthedocs.io/en/latest/configuration.html#exporter-configuration'\fI\%https://labgrid.readthedocs.io/en/latest/configuration.html#exporter\-configuration\fP\X'tty: link'> |
| 100 |
for more information. |
| 101 |
.SS ENVIRONMENT VARIABLES |
| 102 |
.sp |
| 103 |
The following environment variable can be used to configure labgrid\-exporter. |
| 104 |
.SS LG_COORDINATOR |
| 105 |
.sp |
| 106 |
This variable can be used to set the default coordinator in the format |
| 107 |
\fBHOST[:PORT]\fP (instead of using the \fB\-x\fP option). |
| 108 |
.SS EXAMPLES |
| 109 |
.sp |
| 110 |
Start the exporter with the configuration file \fBmy\-config.yaml\fP: |
| 111 |
.INDENT 0.0 |
| 112 |
.INDENT 3.5 |
| 113 |
.sp |
| 114 |
.EX |
| 115 |
$ labgrid\-exporter my\-config.yaml |
| 116 |
.EE |
| 117 |
.UNINDENT |
| 118 |
.UNINDENT |
| 119 |
.sp |
| 120 |
Same as above, but with name \fBmyname\fP: |
| 121 |
.INDENT 0.0 |
| 122 |
.INDENT 3.5 |
| 123 |
.sp |
| 124 |
.EX |
| 125 |
$ labgrid\-exporter \-n myname my\-config.yaml |
| 126 |
.EE |
| 127 |
.UNINDENT |
| 128 |
.UNINDENT |
| 129 |
.SS SEE ALSO |
| 130 |
.sp |
| 131 |
\fBlabgrid\-client\fP(1), \fBlabgrid\-device\-config\fP(5) |
| 132 |
.SH AUTHOR |
| 133 |
Jan Luebbe, Rouven Czerwinski |
| 134 |
.SH COPYRIGHT |
| 135 |
2016-2025 Pengutronix, Jan Luebbe and Rouven Czerwinski |
| 136 |
.\" Generated by docutils manpage writer. |
| 137 |
. |