Diagnosis Commands
Call up
-
Interactive mode
startcli [-u <user name>] [-p <password>] ... <Option> [<arg>]
-
Script mode
startcli [-u <user name>] [-p <password>] --execCommand "<Option> [<arg>]"
Command options
Option | Description | ||
---|---|---|---|
|
Displays the help |
||
|
Returns the current client version (in script mode only) |
||
|
Returns all local IPv4 network interfaces (in script mode only) |
||
|
Starts the interactive CLI mode using the trace mode
|
||
|
In the interactive CLI mode, switch on/off the trace mode of the interactive mode |
Example
-
Interactive mode
debug on
-
Script mode
startcli -v CLI 7.1.0.4 Copyright (C) Virtimo AG https://www.virtimo.de/ Supported INUBIT Process Engine versions from 4.0.1 to 7.1.0.4. startcli -a <IP address> (<hostname>) startcli --debug
Display Running Processes using CLI
You can use the ps
command to display the details of all processes or to display only specific workflows.
Call up
-
Interactive mode
startcli [-u <user account>] [-p <password>] ... ps [option(s)]
-
Script mode
startcli --execCommand "ps [option(s)]"
Command options
Option | Description | ||||
---|---|---|---|---|---|
|
Shows all entries. |
||||
|
Shows only the number of entries. |
||||
|
Uses CSV output format instead of table. |
||||
|
Shows only error workflows. |
||||
|
Filters processes using the |
||||
|
Filters processes with the given workflow name
To filter both the workflow name and the tag, use the following syntax:
|
||||
|
Filters processes with the given tag name
|
||||
|
Displays this help. |
||||
|
Limits output to X rows. |
||||
|
Shows only queued workflows. |
||||
|
Shows specified user-defined column(s) as well. Possible indices: 1..5. Leave index blank to show all columns. |
||||
|
Optionally: Filtering user-defined column(s) to be displayed based on user defined data.
|
||||
|
Shows only waiting workflows. |
Example
-
Interactive mode
startcli -u root Password: ps -a CLI|root@be6vw0149> ps -a NODE UID PID PRIO STATE DATE WORKFLOW MODULE TAG __NotAssigned__ jh 7 normal Waiting 2016-05-31T15:42:30 ErrorExit FTP(2120723586) alpha <hostname>.......... miller 8 normal Error 2016-05-31T17:13:15 InvoiceSupplierA Invoice openTRANS .. <hostname>.......... jh 19 normal Error 2016-05-31T17:42:57 ValidationWorkflowCreate_Query(21223.. <hostname>.......... jh 20 normal Error 2016-05-31T17:54:08 Location_Hamburg Wait10m(4) Total: 4
-
Script mode
startcli --execCommand "ps -a -csv" Password: NODE,UID,PID,PRIO,STATE,DATE,WORKFLOW,MODULE,TAG __NotAssigned__,jh,7,normal,Waiting,2016-05-31T15:42:30,ErrorExit,FTP(2120723586),alpha <hostname>,miller,8,normal,Error,2016-05-31T17:13:15,InvoiceSupplierA,Invoice openTRANS output(16066), <hostname>,jh,19,normal,Error,2016-05-31T17:42:57,ValidationWorkflow,Create_Query(2122359735), <hostname>,jh,20,normal,Error,2016-05-31T17:54:08,Location_Hamburg,Wait10m(4), Total: 4 startcli --execCommand "ps -a -f 'workflow=Location_Hamburg AND tag=1.4Beta'" NODE UID PID PRIO STATE DATE WORKFLOW MODULE TAG __NotAssigned__ jh 26 normal Waiting 2016-05-31T22:27:42 Location_Hamburg Wait10m(4) 1.4Beta Total: 1
Displaying and Configuring the Database Connection Tolerance
You can use the dbconnectiontolerance
command to both display and set the parameters to configure the disconnection tolerance to the internal databases.
Call up
-
Interactive mode
startcli [-u <user account>] [-p <password>] ... dbconnectiontolerance [option(s)]
-
Script mode
startcli --execCommand "dbconnectiontolerance [option(s)]"
Command options
Option | Description |
---|---|
|
Displays the help. |
|
Displays the current settings
|
|
Sets the values for the following parameters:
|
Example
-
Interactive mode
startcli CLI|root@be6vw0149> dbconnectiontolerance set interval 180 Error level: 0% Fault threshold: 25 Drop rate: 4% Drop interval (s): 180 seconds
-
Script mode
startcli --execCommand "dbconnectiontolerance show" Password: Error level: 0% Fault threshold: 25 Drop rate: 1% Drop interval (s): 180 seconds
System Monitoring Using CLI
You start the commands for system monitoring directly as a CLI option, but in distinction from the script mode without the
execCommand
command.
Call up
startcli [-u <user name>] [-p <Password>] \{Option} [Process-Engine-URL]
If you do not specify a user, If you do not specify a password, you are prompted to enter a password after the program has started. If you do not specify a Process Engine URL, |
Among others, the following commands/options are available:
Command/Option | Description | ||
---|---|---|---|
|
Displays all users who are logged in at the Process Engine via Workbenches.
|
||
|
Number of Workbench users who are logged in |
||
|
Number of processes in Error state |
||
|
Number of processes in Processing state, that is, currently executed processes |
||
|
Number of processes in Waiting state |
||
|
Number of processes in Queued state |
||
|
Display queue |
||
|
Display the Process Engine’s product version |
||
|
Display information about JVM memory consumption |
||
|
Display the Process Engine’s maintenance mode status |
||
|
Returns the Process Engine’s version |
||
|
Returns the Process Engine’s current time and uptime |
||
|
Returns the Process Engine’s date and time. |
||
|
Displays amount of free and used Virtual Machine memory.
|
||
|
Shows local directory content. |
||
|
Sends message to specific user or a group.
|
||
|
Returns a list of ID, subject, sender, date, and time of incoming messages |
||
|
Displays the content of the user message specified by the message ID.
Y
ou can determine the ID by the |
||
|
Deletes user messages.
|
||
|
License timeout
|
Example
startcli -who
Password:
SYSTEM-ID SYSTEM TYPE STATE VERSION IDLE
<host name> (<user>) Toolset OK Head 0:00:07s
msgsend inubit_group -s 'Please log out ...' Your Process Engine will switch to
maintenance mode at 6.00 p.m.
Setting Server Trace using CLI
You start the trace
command in interactive mode after being logged in to the CLI.
Call up
startcli [-u <user name>] [-p <password>] [Process Engine URL]
The following commands/options are available:
Command/Option | Description |
---|---|
|
Setting the Trace level |
|
Switching Server trace on/off |
|
To display the current trace state (on/off) |
Example
Execute the following commands to set the Trace level to error
, to switch the Server trace on
, and to display the current trace state.
startcli -u root
Password:
trace -l error
Successfully changed level to ERROR
trace on
trace
Trace is currently on.
Getting the Blocking Queue Size Using the CLI
The blocking queue size is configured in the logsDbConfig.xml
file.
The value is based on how the workflows are designed and executed.
The size of the blocking queue at any given point of time should be known to decide on the actual size of the queue.
This CLI command is required to get the current value of the blocking queue size.
Call up
-
Interactive mode
startcli [-u <user account>] [-p <password>] ... getBlockingQueueSize [option(s)]
-
Script mode
startcli --execCommand "getBlockingQueueSize [option(s)]"
Command options
-h
, --help
Displays the help.
Return value
The current size of the blocking queue as an integer value.
Example
-
Interactive mode
startcli CLI|root@localhost> getBlockingQueueSize 100
-
Script mode
startcli --execCommand "getBlockingQueueSize" 100