Using Command Line Interface

Use USBCLNCmd.exe console program to configure the program via command line interface.

Command line USBCLNCmd.exe file is created during the program installation. You can find it in USB over Network Client program folder.

Command Line Keys

Key Description
help Shows this help.
add [-a] <host> [<port>] Adds a new USB over Network Server.
host - hostname or IP-address of the Server;
port - TCP-port;
-a - auto-connect all available devices from the server.
del <srvId> Removes the USB over Network Server with srvId identifier.
autoconnect <srvId> [=1|=0] Enables or disables autoconnection of all available USB devices from the server.
list [-a] Displays the list of remote shared USB devices.
connect <srvId>|-ip <server:port> <devId> |-p <VID:PID:PORT> |-s <VID:PID:Serial> Connects the USB device. USB device can be specified using the following combinations of identifiers:
srvId (or IP:port) and devId
srvId (or IP:port) and VID:PID:PORT
srvId (or IP:port) and VID:PID:Serial
disconnect <srvId>|-ip <server:port> <devId> |-p <VID:PID:PORT> |-s <VID:PID:Serial> Disconnects the USB device. USB device can be specified using the following combinations of identifiers:
srvId (or IP:port) and devId
srvId (or IP:port) and VID:PID:PORT
srvId (or IP:port) and VID:PID:Serial
export [<path>] Exports the program configuration to a specified path.
import [<path>] Imports the program configuration from a specified path.
callback Lists callback-connected USB Servers.
callback deny Denies callback connections to this Client.
callback allow [-r] Allows callback connections to this Client;
-r - allows callback connections with confirmation. USB over Network Client GUI must be launched to show callback connection request.
callback port [<tcp port>] Sets the TCP-port for callback connections.
callback pass -t <password> Sets the password for callback connections.
callback pass -e Enables password verification for callback connections.
callback pass -d Disables password verification for callback connections.
ssl [=1|=0] Enables or disables SSL.
ssl use_trusted [=1|=0] Gets, enables or disables the use of a trusted authority file.
ssl trusted [<path>] Path to the PEM-encoded trusted authority for the Server.
ssl use_cert [=1|=0] Gets, enables or disables the use of the Client's authentication certificate file.
ssl cert [<path>] Path to the PEM-encoded authentication certificate for the Client.
ssl use_key [=1|=0] Gets, enables or disables the use of a private key file.
ssl key [<path>] Path to the PEM-encoded private key file for the Client.
ssl chk_name [=1|=0] Gets, enables or disables checking of common name.
log [level error|debug]|[show] Specifies the logging level (error or debug) or shows the program log in notepad.

Command Line Usage Examples:

Add USB over Network Server:

C:\Program Files\USB over Network>usbclncmd add 10.0.40.193 33000
Host added successfully.

Get the list of servers:

C:\Program Files\USB over Network>usbclncmd list
srvID:1  -  10.0.40.193:33000 (available connections: 1 of 1)

---Discovered servers---
VM-XP -  10.0.40.207:33000 
LAB-3 - 10.0.40.236:33000

Get the list of remote shared USB devices:

C:\Program Files\USB over Network>usbclncmd.exe list -a
srvID:1  -  10.0.40.193:33000 (available connections: 1 of 1)
        devID:0 - Microsoft MicrosoftŠ¾ Fingerprint Reader (VID: 0x45e PID: 0xca, port: 257, serial: (null)) (shared)
        devID:1 - JetFlash Mass Storage Device (VID: 0x58f PID: 0x6387, port: 1027, serial: (null)) (shared)

---Discovered servers---
VM-XP -  10.0.40.207:33000 
LAB-3 - 10.0.40.236:33000

Connect specified remote shared USB device:

C:\Program Files\USB over Network>usbclncmd connect 1 1
Device is connected