Parameters to Use with the cc Task
The following table lists the parameters you can
use with the
cc tasks when
executing commands on a
Command Central server and/or a
Platform Manager server.
| Parameter and Description |
|---|
accept
Deprecated. Optional. Use
Specifies the format for the returned
data. You supply a content type with the
If you omit the
Note: Use either the
accept or
the
format
parameter to specify the format of the returned data. If you specify both, the
value you specify with the
accept is
used.
|
checkevery
Optional. Specifies the number of
seconds the command waits before checking for expected output specified by the
This parameter is only applicable when
you also specify the
|
command
Optional. Specifies a Command Central or Platform Manager command to execute. For example, to execute the following command:
In a script, use the following:
Another example might be to execute the following command:
In a script, use the following:
Note: Do not include the command
options as described in
Common Options.
Instead use the corresponding attributes listed in this table. For example, if
you want to specify the format “json”, use
format="json" and not
--format
json. In other words, to execute:
In a script, use the following:
|
debug
Optional. Specifies you want extra information returned that you can use for debugging issues, in addition to the returning service output. The extra information includes:
|
error
Optional. Specifies the file for error output. You can specify:
If you omit the
If you specify both the
|
errorproperty
Optional. Specifies the name of a
property where you want error output stored if a command fails and
If you specify both the
|
expectedvalues
Optional. Specifies the expected values from a command. For example:
Use the
Tip: Using
wait="0"
with
expectedvalues acts as s simple
assertion mechanism to confirm that the output contains what you expect before
executing the next step.
If you omit the
If the expected values that you specify do not match the actual values, the build fails and stops. |
failonerror
Optional. Specifies whether to fail the entire script if an error occurs executing the command. Specify:
For example:
If you omit the
|
format
Deprecated. Optional. Use
Specifies the format you want a command to use for the data it returns. For example:
Command Central and Platform Manager support the following formats:
If you omit the
Although Command Central and Platform Manager support these formats, a specific command might only support a subset of the formats. Refer to the documentation for a specific command to determine the exact formats that it supports and to determine the default format for the command. Note: Not all commands support plain
text. If you specify
txt for a
command that does not support this format, the command uses
tsv or
xml based
on the formats the command supports.
Note: Use either the
accept or
the
format
parameter to specify the format of the returned data. If you specify both, the
value you specify with the
accept is
used.
|
info
Optional. Sets the level of information to log to INFO. If you omit both the
|
input
Required for some actions if
When you specify one of the following
actions with the
Additionally, specifying input is
required when using the
Supported file types for an input data file are XML (.xml), JavaScript Object Notation (.json), and properties (.properties). Although Command Central and Platform Manager support these formats, a specific command might only support a subset of the formats. Refer to the documentation for a specific command to determine the exact formats that it supports and to determine the default format for the command. When identifying the input file, you can specify:
|
inputFormat
Optional. Specifies the content type of
the input data for a command. You can specify the same values for
The default value is taken from the input file extension if the extension matches the short version of a supported media type. If the input file extension does not match the short version of a supported media type, the default is text/plain. |
inputstring
Required for some actions if
When you specify one of the following
actions with the
Additionally, specifying input is
required when using the
For example, to change the data for the instance with ID “IS-PRIMARYPORT”, for the component with ID “IntegrationServer-instanceName”, running on the node with ID “sag01”, you could use the following:
Note: Use the
inputstring attribute when the input
data is simple. For more complex data, use the
input
attribute.
|
log
Optional. Specifies the file for log information. Log information is written whether commands are successful or encounter errors. The logged results include:
The log information is written to the
console if you do not specify the
|
mediatype
Deprecated. Optional. Use
|
method
Required if
Command Central and Platform Manager support the following operations:
If you omit the
|
operation
Required if
Command Central and Platform Manager support the following operations:
If you omit the
|
output
Optional. Identifies a file for command output. You can specify:
If you omit the
If you specify both the
|
outputFormat
Optional. Specifies the format you want a command to use for the data it returns. For example:
Command Central and Platform Manager support the following formats:
The
If you omit the
Platform Manager uses the
If you omit the
Although Command Central and Platform Manager support these formats, a specific command might only support a subset of the formats. Refer to the documentation for a specific command to determine the exact formats that it supports and to determine the default format for the command. Note: Not all commands support plain
text. If you specify
txt for a
command that does not support this format, the command uses
tsv or
xml based
on the formats the command supports.
|
outputproperty
Optional. Specifies an ANT property to hold the result of the command. For example:
If you omit the
If you specify both the
|
password
Optional. Specifies the password to use for authentication on the server. For example:
If you omit the
|
path
Required if
or
Note: Use either the
path
parameter or the
service
and
resource
parameters to identify the service and resource on which to act.
|
quiet
Optional. Sets the level of information to log to ERROR. |
resource
Required if
Examples of resources you can supply are:
When you use the
Note: Use either the
service
and
resource
parameters or the
path
parameter to identify the service and resource on which to act.
|
responseCodeProperty
Optional. Specifies an ANT property to hold the response code. For example:
|
retry
Optional. Use only in conjunction with
For example:
If you do not include
Use
|
server
Required if omitted from the
If you omit
|
service
Required if
Examples of services you can supply are:
When you use the
Note: Use either the
service
and
resource
parameters or the
path
parameter to identify the service and resource on which to act.
|
syncJob
Required if
Even if
If you execute a command with
Use
|
username
Optional. Specifies the user name to use for authentication. For example:
The following lists the order used to determine the value used for the user name:
|
wait
Optional. Specifies how many seconds to
wait for a long-running operation to return the expected values specified by
the
This parameter is only applicable when
you also specify the
|
waitForCC
Optional. Specifies the time interval in seconds the command waits for Command Central to come online after starting or restarting Command Central. If you omit this option, the command fails when Command Central is not online. For example:
Both
When you monitor a long-running job, you can use
Using
|