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 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.
-a
Connect all devices shared on this server automatically.
-p
Specify server's password.
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.
-h
New hostname and/or TCP-port.
-a
Connect all devices shared on this server automatically.
-A
Do not connect all devices shared on this server automatically.
-p
Specify server's password.
-P
Remove server's password.
-i
Caching time for audio devices (milliseconds).
server remove [-f] host[:port] Remove the server specified by its hostname or IP address and TCP-port.
-f
Force removal even if there are connected devices from this server.
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.
-f
Force disconnect even if there are connected devices from this server.
device connect [-p password] [-s serial] host[:port] id|vid:pid[:rev] Connect shared device specified by its ID or vid:pid[:rev].
-p
Specify device's password.
-s
Specify device's serial number if there are several devices with the same vid:pid[:rev] on the server.
device disconnect [-s serial] host[:port] id|vid:pid[:rev] Disconnect the device specified by its ID or vid:pid[:rev].
-s
Specify device's serial number if there are several devices with the same vid:pid[:rev] on the server.
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.
timeout
Time in seconds to wait ping packet before considering connection as broken.
interval
Interval in seconds between sending ping packets.
wait Wait for changes of device list or device state.

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