Command Line Interface (CLI)
- 1 Introduction
- 2 CLI Functions
- 3 Command Line Syntax
- 4 Special Characters Restrictions
- 5 Pre-6.2.0.0 CLI Functions
- 6 Return Codes
- 7 Supported Platforms
- 8 CLI Login
- 9 Global Parameters
- 9.1 Specifying Global Parameters
- 9.1.1 CA Certificate List
- 9.1.2 Configuration File
- 9.1.3 CRL File
- 9.1.4 Encrypted File
- 9.1.5 Encrypted File Key
- 9.1.6 Help
- 9.1.7 Message Level
- 9.1.8 OMS NFT
- 9.1.9 OMS Servers
- 9.1.10 Password
- 9.1.11 Queue Name
- 9.1.12 SSL/TLS
- 9.1.13 SSL/TLS Cipher List
- 9.1.14 SSL/TLS 1.3 Cipher Suites
- 9.1.15 SSL/TLS Implementation
- 9.1.16 SSL/TLS Minimum Protocol Version
- 9.1.17 SSL/TLS Maximum Protocol Version
- 9.1.18 Timeout
- 9.1.19 User ID
- 9.1.20 Version
- 9.1 Specifying Global Parameters
- 10 Function-Specific Parameters
- 10.1 Modifying Variables
- 11 Using the CLI for z/OS
Introduction
The Universal Controller Command Line Interface (CLI) is implemented as a set of functions that perform specific actions in a Universal Controller. The results of the actions are written to the CLI standard output.
The CLI command, uagcmd, executes a function according to information specified in its required and optional Global parameters and function-specific parameters.
CLI Functions
CLI functions perform specific actions in a Universal Controller.
The CLI command, uagcmd, can execute functions on any system that has TCP/IP connectivity to the Universal Message Service (OMS).
The command line syntax for each execution of uagcmd must specify a single CLI function, required / optional Global parameters, and required / optional function-specific parameters. You must use the required Global parameters to connect to OMS Servers and to log on to a Controller (User ID and Password).
(See Pre-6.2.0.0 CLI Functions for a backward-compatible version of this syntax that can be used for pre-6.2.0.0 CLI functions.)
The following information is provided for each CLI Function:
Description
Command line syntax
Function-specific parameters
Example
Functions are listed alphabetically, by category, on the following pages:
Command Line Syntax
The following command line syntax is used for issuing the CLI command, uagcmd:
uagcmd functionGlobal parametersfunction-specific parameter(s)
Command Line Entry | Description |
|---|---|
uagcmd | CLI command that executes all CLI functions. |
CLI function that performs a specific action in a Universal Controller. | |
CLI parameters (required and optional) available for all functions. | |
CLI parameters (required and optional) specific to one or more functions. |
For example:
uagcmd ops-task-launch -c config.cfg -x encryptedfile.txt task-type=unix task-name=task01
In this example, the required Global Parameters are contained in the config.cfg configuration file.
Note
For backward-compatibility, you can exclude uagcmd from the command line for all pre-6.2.0.0 CLI functions.
Special Characters Restrictions
The following restrictions apply to the use of special characters in CLI function parameters.
Special Characters | Restrictions | Examples |
|---|---|---|
| | Can be used only if enclosed in double quotation marks. | C:\Program Files\Universal\OpsCli\bin>uagcmd.exe ops-task-launch -c c.cfg task-name=A|B |
~ | Cannot be used, even if enclosed in double quotation marks. | C:\Program Files\Universal\OpsCli\bin>uagcmd.exe ops-task-launch -c c.cfg task-name="A~B" |
= | Cannot be used, even if enclosed in double quotation marks; prevents a CLI function from running. | C:\Program Files\Universal\OpsCli\bin>uagcmd.exe ops-task-launch -c c.cfg task-name="A=B" |
+ | Can be used with or without double quotation marks. | C:\Program Files\Universal\OpsCli\bin>uagcmd.exe ops-task-launch -c c.cfg task-name="A+B" |
Restrictions for task-variables= Parameter
None of these special characters identified in Special Characters Restrictions - =, |, +, and ~ - can be use in a task-variables= parameter.
Examples
C:\Program Files\Universal\OpsCli\bin>uagcmd.exe ops-task-launch -c c.cfg task-name=AB task-variables={variable1="V=1" variable2=V2}
Valid format for variables: {variable=value}.
opscmd-complete
C:\Program Files\Universal\OpsCli\bin>uagcmd.exe ops-task-launch -c c.cfg task-name=AB task-variables={variable1="V|1" variable2=V2}
Valid format for variables: {variable=value}.
opscmd-complete
C:\Program Files\Universal\OpsCli\bin>uagcmd.exe ops-task-launch -c c.cfg task-name=AB task-variables={variable1="V+1" variable2=V2}
Valid format for variables: {variable=value}.
opscmd-complete
C:\Program Files\Universal\OpsCli\bin>uagcmd.exe ops-task-launch -c c.cfg task-name=AB task-variables={variable1="V~1" variable2=V2}
Parameter CMDVERB contains malformed name/value pair(s).
opscmd-complete
Pre-6.2.0.0 CLI Functions
For backward-compatibility, you can exclude uagcmd from the command line for all pre-6.2.0.0 CLI functions:
Return Codes
The following table identifies all return codes that can be returned in response to a function:
Return Code | Description |
|---|---|
0 | Completed successfully. |
1 | Configuration error (incorrect command line or configuration file entries). |
2 | Error processing the request. |
Supported Platforms
For all supported platforms, the CLI is included in the Universal Agent 7.2.x package.
UNIX | The CLI functions are installed in the following directory:
Replace |
|---|---|
Windows | The CLI functions are installed in the following directory:
Replace:
Note Do not use fully qualified file names (that is, with the .exe extension) in CLI for Windows parameters; an error will occur. |
z/OS | The CLI is implemented with a single program, |
CLI Login
User Restriction
You can be restricted from logging in to the CLI either of two ways:
The system level default for CLI access, specified by the System Default Command Line Access Universal Controller system property, has been set to No, and the Command Line Access field in the User Details for your user account is set to -- System Default --."
The Command Line Access field in the User Details for your user account is set to No, which overrides the System Default Command Line Access value.
If either restriction is in place, the following error message will display when you issue a CLI command:
User <your user name> not permitted to use the command line interface. Please check with your administrator.
To remove the restriction, the system administrator must either:
Set the System Default Command Line Access property to Yes and set the Command Line access field on the User Definition screen for your user account to -- System Default --.
Set the Command Line access field on the User Definition screen for your user account to Yes.
Password Expiration
While a password is expired, CLI access will be prohibited until the password has been changed.
Note
Password expiration is not applicable to LDAP authenticated users.
Global Parameters
The CLI provides the following Global parameters for use with any CLI function:
Parameter | Required | Optional |
|---|---|---|
| ||
| ||
| ||