labgrid-exporter --help
labgrid-exporter *.yaml
Labgrid is a scalable infrastructure and test architecture for embedded (linux) systems.
This is the man page for the exporter, supporting the export of serial ports, USB devices and various other controllers.
| -h, --help | display command line help |
| -x, --coordinator | |
coordinator HOST[:PORT] to connect to, defaults to 127.0.0.1:20408 | |
| --tls | enable TLS gRPC channel |
| --cacert | path to CA certificate or CA bundle for verifying the coordinator (in PEM format) |
| -i, --isolated | enable isolated mode (always request SSH forwards) |
| -n, --name | the public name of the exporter |
| --hostname | hostname (or IP) published for accessing resources |
| --fqdn | use fully qualified domain name as default for hostname |
| -d, --debug | enable debug mode |
This option enables isolated mode, which causes all exported resources being marked as requiring SSH connection forwarding. Isolated mode is useful when resources (such as NetworkSerialPorts) are not directly accessible from the clients. The client will then use SSH to create a port forward to the resource when needed.
This option is used to configure the exporter name under which resources are registered with the coordinator, which is useful when running multiple exporters on the same host. It defaults to the system hostname.
For resources like USBSerialPort, USBGenericExport or USBSigrokExport, the exporter needs to provide a host name to set the exported value of the "host" key. If the system hostname is not resolvable via DNS, this option can be used to override this default with another name (or an IP address).
In some networks the fully qualified domain name may be needed to reach resources on an exporter. This option changes the default to fqdn when no --hostname is explicitly set.
The exporter uses a YAML configuration file which defines groups of related resources. See <https://labgrid.readthedocs.io/en/latest/configuration.html#exporter-configuration> for more information.
The following environment variable can be used to configure labgrid-exporter.
This variable can be used to set the default coordinator in the format
HOST[:PORT] (instead of using the -x option).
Start the exporter with the configuration file my-config.yaml:
$ labgrid-exporter my-config.yamlSame as above, but with name myname:
$ labgrid-exporter -n myname my-config.yamlSame as above, but connecting to a labgrid-coordinator that uses TLS gRPC channels:
$ labgrid-exporter --tls [--cacert PATH] -n myname my-config.yamllabgrid-client(1), labgrid-device-config(5)