The Command Line Console (CLC) enables administrators to use the command line to execute certain GAX functions on solution definitions (SPDs) and installation packages (IPs). For example, you might use the CLC to silently deploy SPDs onto remote hosts.
You must be able to access the operating system's command-line interface to use the CLC. If you are not on the GAX host machine, you must have the CLC tool (gaxclc.jar) available on the local machine.
To access CLC's embedded Help file, execute one of the following commands:
java –jar gaxclc.jar help
java –jar gaxclc.jar ?
Important
As you execute commands with CLC, a log file is generated in the same location as where the tool is executed.
Structure
CLC supports commands that use the following structure:
-u:user is the user name to log in to Configuration Server.
-p:password is the password to log in to Configuration Server. CLC assumes there is no password if this flag does not specify a value.
-s instructs CLC to use a secure https connection to the GAX server. If this flag is not specified, CLC uses http.
-h:<host>:<port> specifies the host and port of the GAX server. If this flag is not specified, CLC uses the following value: -h:localhost:8080.
<function> can be either ip or spd.
<operation> specifies the operation to be executed. The valid values for this flag are specific to the function you specified in the previous step (ip or spd).
<args> specifies the operation arguments. The valid values for this flag are specific to the <function> and <operation> parameters you specified in the previous steps.
This operation adds an SPD to the GAX database. If the SPD already exists, as determined by the name and version in the SPD XML, this operation replaces the existing SPD.
If successful, the operation returns the ID of the added SPD.
The encrypted input file is stored in the location specified by "encrypted output file path". If the file already exists at this location, it is overwritten.
Example:
java -jar gaxclc.jar -u:default -p:password spd -encrypted "c:\GAX\input.txt" "c:\GAX\encrypted.txt"
java -jar gaxclc.jar -u:default -p:password spd -encrypted "input.txt" "encrypted.txt"
"input file"—Specifies the input file that contains SPD parameters. If -encrypted is set, the input file is encrypted.
The input file must be in JSONObject format and include SPD parameters for a specific profile. The file must be encoded in UTF-8 format.
CLC intersects (AND) filters defined in the SPD file and input file for a selectOne input. The filter criteria should be different in an SPD input file and filter names should differ in the same filter definition.
The operation returns two applications named SIP_lrm26 and SIP_lrm27.
The input structure for a selectOne/selectMultiple/boolean type with <selection> tag is described below:
{
"Dialog name" : {
"Input name" : {
"selection" : {
"option" : [{
"value" : "option value assigned to the input parameter",
"name" : "option name is displayed in UI"
}
]
}
}
}
}
CLC selects options defined in the SPD input file. Multiple options can be specified only for the selectMultiple input type.
Example
SPD Profile
<profile name="Install">
<dialog step="Application Parameters">
<input name="DATA_MODEL" title="Binary Version (32-bit or 64-bit)" default="64" type="selectOne" required="true">
<description>This parameter defines the 32-bit or the 64-bit version of the binary to be deployed. </description>
<selection>
<option name="32" value="32"/>
<option name="64" value="64"/>
</selection>
</input>
</dialog>
<execution>
<script>
log('test selection support' );
</script>
</execution>
If the input file does not specify a value for a SPD parameter, the value defined in the default attribute of the input element will be used.
If an SPD input element has the required attribute set to true, but there is no corresponding input value that is supplied in either the SPD (as a default) or in the input file, then the SPD execution fails.
If an SPD input element has the readonly attribute value set to true, then the value in the default attribute value is used for the execution, if defined.
If the readonly attribute value is set to true, required is set to false, and the default attribute is not defined, then the following logic is used for input value determination:
For the boolean input type, the input value is set to false.
For the string and password input types, the input value is set to "".
For the integer input type, the input is not propagated.
If a dialog cond attribute value evaluates to false, the dialog is skipped by the CLC tool.
Example: