Command Line Interface

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

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

Command Line Keys

Key Description
help Shows this help.
tcpport [ -d | <port> ] Set TCP-port.
list [-i|[-s] [<devId>]] Lists USB devices and shared USB ports;
-s - shows only devId without additional info (name, status, etc.);
-i <devId> - lists interfaces of a device which has devId identifier (for composite devices).
share <devId> Shares the USB devices which has devId identifier.
unshare <devId> Unshares the USB device which has devId identifier.
shareport <devId> Shares the USB port where the USB device with devId identifier is plugged.
unshareport <devId> Unshares the USB port.
callback add <host> [<port>] [-m <message>] [-p <password>] Initiates a callback connection to the Client.
port - TCP-port of the Client;
-m <message> - text message that will be shown in the request window at the Client side;
-p <password> - password if required by the Client.
callback list Lists callback connections.
callback del <callback id> Removes the callback connection specified by callback id.
ssl [=0|=1] Gets, enables or disables SSL settings.
ssl cert [<path>] Path to the PEM-encoded Certificate file for the Server.
ssl key [<path>] Path to the PEM-encoded Private Key file for the Server, Private Key must be unencrypted.
ssl use_chain [=0|=1] Gets, enables or disables using of certification authorities chain file.
ssl chain [<path>] Path to the PEM-encoded CA Certificate files.
ssl use_auth [=0|=1] Gets, enables or disables Clients authentication.
ssl auth [<path>] Path to the PEM-encoded client authentication certificate list file.
ssl use_revoc [=0|=1] Gets, enables or disables the use of the certificate revocation list.
ssl revoc [<path>] Path to the certificate revocation list.
lickey [[-f] <key file path>] Applies the license key from a specified path;
-f - applies the license key even if it is outdated.
export [<path>] Export the program configuration to a specified path.
import [<path>] Import the program configuration from a specified path.
log [level error|debug]|[show] Specifies the logging level (error or debug) or shows the program log in notepad.

Command Line Usage Examples:

Get the list of available USB devices:

C:\Program Files\USB over Network>usbsrvcmd list
devID:0 - USB Mouse  (unshared)
devID:3 - TTDC TTDC PPG Receiver  (unshared)
devID:4 - PANTECH USB MMC Storage  (unshared)

To share a device use the "share" key and specify its devId:

C:\Program Files\USB over Network>usbsrvcmd share 4
Device shared successfully.

To unshare a USB device use the "unshare" key and specify its devId:

C:\Program Files\USB over Network>usbsrvcmd unshare 4
Device unshared successfully.