Runtime command line options¶
The UbiquityRuntimeCli program can be launched using some command options. For example, you can assign these commands to actions coming from an HMI application in order to make the Runtime presence completely transparent.
The executable file UbiquityRuntimeCli is available for UBIQUITY Runtime version 11.10 or higher, however, to maintain compatibility with existing systems, you can still use the executable file Runtime.exe. For more information, see Runtime command line options (legacy version).
Note
Command line parameters are only supported on the following systems: HMI Linux, Linux Debian 10/Ubuntu 20 and Windows, except Windows CE and Windows XP SP2.
Parameters |
Description |
|
---|---|---|
|
It connects “Runtime” to the UBIQUITY servers, making it visible to Control Center. You use this option when Runtime is already running but disconnected, because, as default, runtime connects automatically, unless the option -disconnect is not specified. |
|
|
If Runtime is already running and connected to the servers, this command disconnects it from them, making Runtime unavailable to the Control Center. Active remote sessions with Control Center is dropped while Runtime continues to run. If Runtime is not running, it will start it, but it will not connect it to the remote assistance service. |
|
|
It shows the assistance chat window. |
|
|
It disconnects runtime from the remote assistance service. |
|
|
It opens or closes the system keyboard. |
|
|
It opens or closes the system keyboard. |
|
|
It indicates the Runtime connection status. Possible values:
Exit codes:
|
|
|
It indicates the number of Control Center supervisors connected to the Runtime. Exit codes:
|
|
|
The ID and password values required to register an anonymous device to a Domain. Exit codes:
|
|
|
It enables a request for assistance. If The user must provide contact details when assistance is requested is enabled, then three additional parameters Exit codes:
|
|
|
It closes a request for assistance. For more information, see Request for Assistance. Exit codes:
|
|
|
It checks the status of a request for assistance. Possible values:
Exit codes:
|
|
|
It checks if a request for assistance can be opened. For more information, see Request for Assistance. Possible values:
Exit codes:
|
|
|
It exports connection logs. The parameters Exit codes:
|
|
|
It is being used only with the Runtime already running. It disconnects and closes runtime. |
|
|
It shows the Runtime version. |
|
|
It shows the list of available commands. |
Exit codes
The output value of the commands is printed on the standard output (stdout).
Exit codes
The exit codes represent the correct execution of a command or the generated error.
0
Success
1
Unable to connect to the Runtime.
2
,3
See table of commands.
Examples:
<path>
identifies the installation path of UBIQUITY Runtime, for example
C:\Program Files (x86)\ASEM\Ubiquity\Runtime\
"<path>\UbiquityRuntimeCli" --connect
It disconnects Runtime from the remote assistance service.
"<path>\UbiquityRuntimeCli" --disconnect
It disconnects Runtime from the remote assistance service.
"<path>\UbiquityRuntimeCli" –-quit
Runtime closes permanently.
"<path>\UbiquityRuntimeCli" –-showChat\hideChat
It opens or closes the chat window.
"<path>\UbiquityRuntimeCli" –-showKeyboard\hideKeyboard
It opens or closes the system keyboard.
"<path>\UbiquityRuntimeCli" –-remoteAccessServiceConnected
It indicates the status of the connection with the server.
"<path>\UbiquityRuntimeCli" –-remoteAccessSessionCount
It indicates the number of Control Center supervisors connected to the Runtime.
"<path>\UbiquityRuntimeCli" --getAnonymousID
It indicates the ID and the password of the device.
Below is an example of a Runtime query with a
--getAnonymousID
parameter using .NET:var process = new Process(); process.StartInfo.FileName = @"C:\Program Files (x86)\ASEM\Ubiquity\Runtime\UbiquityRuntimeCli.exe"; process.StartInfo.Arguments = "--getAnonymousID"; process.StartInfo.CreateNoWindow = true; process.StartInfo.RedirectStandardOutput = true; process.StartInfo.UseShellExecute = false; process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; process.Start(); process.WaitForExit(); Console.WriteLine("AnonymousID, Password: " + process.StandardOutput.ReadToEnd()); Console.WriteLine("exit code: " + process.ExitCode); Console.ReadLine();
"<path>\UbiquityRuntimeCli" –-requestAssistance
It enables a request for assistance.
"<path>\UbiquityRuntimeCli" –-requestAssistance --name "John Doe" --contact "john.doe@email.com" --description "A brief description of the problem"
It enables a request for assistance by passing the three parameters Name, Contact information and Description.
"<path>\UbiquityRuntimeCli" –-closeAssistance
It closes a request for assistance.
"<path>\UbiquityRuntimeCli" –-canRequestAssistance
It asks the Runtime if a request for assistance can be openend.
"<path>\UbiquityRuntimeCli" –-getRequestAssistanceStatus
It asks the Runtime about the status of a request for assistance.
"<path>\UbiquityRuntimeCli" --exportConnectionLog --fromDate "2020-06-06" --toDate "2020-06-07" --outputDirectory "/tmp"
Export connection logs from 6 June 2020 to 7 June 2020 to the
tmp
folder."<path>\UbiquityRuntimeCli" -–version
It shows the Runtime version.
"<path>\UbiquityRuntimeCli" –-help
It shows the available commands.