Orchestration CLI return codes
Orchestration CLI return codes
Orchestration CLI return-code management
- On Windows Operating systems:
echo %ERRORLEVEL%
- On UNIX Operating systems:
echo $?
The Orchestration CLI command line provides the following return codes for the Orchestration CLI plan and model commands:
Return code | Description |
---|---|
0 | The model command completed successfully. Run the add command for a simple job that will finish successfully:
This returns code result 0 |
4 | The model command generated a warning. For example, try to add an existing item
such as
where <file_path> is the path of the file that
contains the definition of the The following error message is displayed:
Do you want to replace the item (enter "y" for yes, "n" for no)?
This returns code result 4 |
8 | The model command generated an error. For example, define an item with an invalid
syntax. For the purposes of this example, attempt to define a job without
including
This returns code result 8 |
0 | The plan command completed successfully. For example, run a sj command on a valid Job Stream as follows :
Workstation Job Stream SchedTime Job State Pr Start Elapse ReturnCode Dependencies WS_AGT_0 #JS_ADJ_115749800 1139 02/17 **************************************** HOLD 10(02/18) JS_RS_2115749800 HOLD 10
This returns code result 0 |
8 | The plan command generates an error. For example, run an sbj command on a job that doesn't exist.
This returns code result 8 |