| 1 |
.. _labgrid-exporter: |
| 2 |
|
| 3 |
================== |
| 4 |
labgrid-exporter |
| 5 |
================== |
| 6 |
|
| 7 |
labgrid-exporter interface to control boards |
| 8 |
============================================ |
| 9 |
|
| 10 |
SYNOPSIS |
| 11 |
-------- |
| 12 |
|
| 13 |
``labgrid-exporter`` ``--help`` |
| 14 |
|
| 15 |
``labgrid-exporter`` ``*.yaml`` |
| 16 |
|
| 17 |
DESCRIPTION |
| 18 |
----------- |
| 19 |
Labgrid is a scalable infrastructure and test architecture for embedded (linux) systems. |
| 20 |
|
| 21 |
This is the man page for the exporter, supporting the export of serial ports, |
| 22 |
USB devices and various other controllers. |
| 23 |
|
| 24 |
OPTIONS |
| 25 |
------- |
| 26 |
-h, --help |
| 27 |
display command line help |
| 28 |
-x, --coordinator |
| 29 |
coordinator ``HOST[:PORT]`` to connect to, defaults to ``127.0.0.1:20408`` |
| 30 |
-i, --isolated |
| 31 |
enable isolated mode (always request SSH forwards) |
| 32 |
-n, --name |
| 33 |
the public name of the exporter |
| 34 |
--hostname |
| 35 |
hostname (or IP) published for accessing resources |
| 36 |
--fqdn |
| 37 |
use fully qualified domain name as default for hostname |
| 38 |
-d, --debug |
| 39 |
enable debug mode |
| 40 |
|
| 41 |
-i / --isolated |
| 42 |
~~~~~~~~~~~~~~~ |
| 43 |
This option enables isolated mode, which causes all exported resources being |
| 44 |
marked as requiring SSH connection forwarding. |
| 45 |
Isolated mode is useful when resources (such as NetworkSerialPorts) are not |
| 46 |
directly accessible from the clients. |
| 47 |
The client will then use SSH to create a port forward to the resource when |
| 48 |
needed. |
| 49 |
|
| 50 |
-n / --name |
| 51 |
~~~~~~~~~~~ |
| 52 |
This option is used to configure the exporter name under which resources are |
| 53 |
registered with the coordinator, which is useful when running multiple |
| 54 |
exporters on the same host. |
| 55 |
It defaults to the system hostname. |
| 56 |
|
| 57 |
--hostname |
| 58 |
~~~~~~~~~~ |
| 59 |
For resources like USBSerialPort, USBGenericExport or USBSigrokExport, the |
| 60 |
exporter needs to provide a host name to set the exported value of the "host" |
| 61 |
key. |
| 62 |
If the system hostname is not resolvable via DNS, this option can be used to |
| 63 |
override this default with another name (or an IP address). |
| 64 |
|
| 65 |
--fqdn |
| 66 |
~~~~~~ |
| 67 |
In some networks the fully qualified domain name may be needed to reach resources |
| 68 |
on an exporter. This option changes the default to fqdn when no --hostname is |
| 69 |
explicitly set. |
| 70 |
|
| 71 |
CONFIGURATION |
| 72 |
------------- |
| 73 |
The exporter uses a YAML configuration file which defines groups of related |
| 74 |
resources. |
| 75 |
See <https://labgrid.readthedocs.io/en/latest/configuration.html#exporter-configuration> |
| 76 |
for more information. |
| 77 |
|
| 78 |
ENVIRONMENT VARIABLES |
| 79 |
--------------------- |
| 80 |
The following environment variable can be used to configure labgrid-exporter. |
| 81 |
|
| 82 |
LG_COORDINATOR |
| 83 |
~~~~~~~~~~~~~~ |
| 84 |
This variable can be used to set the default coordinator in the format |
| 85 |
``HOST[:PORT]`` (instead of using the ``-x`` option). |
| 86 |
|
| 87 |
EXAMPLES |
| 88 |
-------- |
| 89 |
|
| 90 |
Start the exporter with the configuration file ``my-config.yaml``: |
| 91 |
|
| 92 |
.. code-block:: bash |
| 93 |
|
| 94 |
$ labgrid-exporter my-config.yaml |
| 95 |
|
| 96 |
Same as above, but with name ``myname``: |
| 97 |
|
| 98 |
.. code-block:: bash |
| 99 |
|
| 100 |
$ labgrid-exporter -n myname my-config.yaml |
| 101 |
|
| 102 |
SEE ALSO |
| 103 |
-------- |
| 104 |
|
| 105 |
``labgrid-client``\(1), ``labgrid-device-config``\(5) |