Page History
...
--url
- Specifies the URL by which JOC Cockpit is accessible using
<http|https>://<host>:<port>
. - Example: http://centostest-primary.sos:4446
- Example: https://centostest-primary.sos:4443
- Specifies the URL by which JOC Cockpit is accessible using
--user
- Specifies the user account for login to JOC Cockpit.
--user=<account>
can be specified to cause the password to be prompted.--user=<account>:<password>
can be specified.
--controller-id
- Specifies the Controller ID to which the updated job resource should be deployed.
--job-resource
- Specifies the path to the job resource in the JOC Cockpit inventory.
--key
- Specifies the name of the variable in the job resource specified with the
--job-resource
option. - Job Resource variables are case-sensitive.
- Specifies the name of the variable in the job resource specified with the
--value
- Specifies the value of the variable in the job resource specified with the
--job-resource
option.
- Specifies the value of the variable in the job resource specified with the
--cacert
- Specifies the path to a .pem file that holds the Root CA Certificate and optionally Intermediate CA Certificates to verify HTTPS connections to JOC Cockpit.
--client-cert
- Specifies the path to a .pem file that holds the Client Certificate if HTTPS mutual authentication is used..
--client-key
- Specifies the path to a .pem file that holds the Client Privae Key if HTTPS mutual authentication is used..
--log-dir
- If a log directory is specified then the script will log information about processing steps to a log file in this directory.
- File names are created according to the pattern:
set_job_resource.<yyyy>-<MM>-<dd>T<hh>-<mm>-<ss>.log
- For example:
set_job_resource.2022-03-19T20-50-45.log
...
Code Block | ||||
---|---|---|---|---|
| ||||
./set_job_resource.sh \ --url=http://joc-2-0-primary:7446 \ --controller-id=controller \ --user=root:root \ --job-resource=/ProductDemo/Variables/pdBusinessDate \ --key=BusinessDatebusinessDate \ --value=$(date +'%Y-%m-%d') # updates the job resource variable "BusinessDatebusinessDate" from the current date # the connection to JOC Cockpit is established by HTTP |
...
Code Block | ||||
---|---|---|---|---|
| ||||
./set_job_resource.sh \ --url=https://joc-2-0-primary:7446 \ --cacert=/home/sos/jstest/certs/root-ca.pem \ --controller-id=controller \ --user=root:root \ --job-resource=/ProductDemo/Variables/pdBusinessDate \ --key=BusinessDatebusinessDate \ --value=$(date +'%Y-%m-%d') # updates the job resource variable "BusinessDatebusinessDate" from the current date # the connection to JOC Cockpit is established by HTTPS and the Root CA Certificate is specified from the path to a .pem file |
...
Overview
Content Tools