Command Line Utility
To use the USB over Network (Linux version) Client run the command line utility with the corresponding command:
$ /opt/ftvusbnet/bin/ftvusbnetctl <command>
Command-line syntax cheat sheet
Notation | Example | Description |
---|---|---|
Text without brackets | command | Items which must be typed as shown. |
Text in square brackets | [optional] | Optional parameter. |
Text in angle brackets | <value> | Placeholder for user-provided values. |
Text in curly braces | { required_value =0|=1 } | Group of required choices. At least one option must be included. |
Pipe | option_1|option_2 | Divider between alternative options. Only one option can be selected. |
Command | Description |
---|---|
help | Show this help. |
show | List available servers and USB devices. |
server add [-a] [-p password] host[:port] | Add server specified by its hostname or IP address and TCP port and connect to it.
|
server set [-h host[:port]] [-a|-A] [-p password|-P] host[:port] | Set or change settings of the server specified by its hostname or IP address and TCP port.
|
server remove [-f] host[:port] | Remove the server specified by its hostname or IP address and TCP port.
|
server connect host[:port] | Connect to the server specified by its hostname or IP address and TCP port. |
server disconnect [-f] host[:port] | Disconnect from the server specified by its hostname or IP address and TCP port.
|
device connect [-p password] [-s serial] host[:port] id|vid:pid[:rev] | Connect shared device specified by its ID or vid:pid[:rev].
|
device disconnect [-s serial] host[:port] id|vid:pid[:rev] | Disconnect the device specified by its ID or vid:pid[:rev].
|
import configuration_file | Import settings from configuration file. Root privileges are required. |
export configuration_file | Export settings to configuration file. |
ping timeout[:interval] | Change default ping timings.
|
callback enable [-r] [-p password] [-i ip[:port]|:port] | Enable callback connections.
|
callback disable | Disable callback connections. |
callback wait_request | Waiting for callback connection request from the Server if confirm UI option is enabled for callback connections. |
Examples
Add the server:
$ /opt/ftvusbnet/bin/ftvusbnetctl server add 10.0.0.185
Show the list of the servers and devices:
$ /opt/ftvusbnet/bin/ftvusbnetctl show 10.0.0.185:33000 - connected (2/2) 0105 - 046d:c045:2730 - avail - USB Optical Mouse (1-1) 0107 - 0457:0151:0100 - avail - USB Mass Storage Device (2-1, 83b0cc764a50a1)
Connect a device:
$ /opt/ftvusbnet/bin/ftvusbnetctl device connect 10.0.0.185 0107
Disconnect a device:
$ /opt/ftvusbnet/bin/ftvusbnetctl device disconnect 10.0.0.185 0107
Remove the server:
$ /opt/ftvusbnet/bin/ftvusbnetctl server remove 10.0.0.185