DistributeConfigurationObjectsJob - executeJobAndWait
DistributeConfigurationObjectsJob - executeJobAndWait
Description :
This command executes a Distribute Configuration Job and waits for the job to end before returning. This command returns a handle to the job run. It can be used in other commands that need to reference the Distribute Configuration Job run.
Return type : com.bladelogic.om.infra.app.service.job.JobRunKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
jobKey | DBKey | Handle to the Distribute Configuration Objects Job to be executed. |
Example
The following example shows you how to execute an existing Distribute Configuration Job.
Script
# Name of the existing Distribute Configuration Job.
DISTRIBUTE_CONFIG_OBJECT_JOB_NAME="distConfgObjJob1"
# Job group in which Distribute Configuration Job is stored.
DISTRIBUTE_CONFIG_OBJECT_JOB_GROUP="/parent/group1"
# Get the Distribute Configuration Job DBKey using the above information.
DISTRIBUTE_CONFIG_OBJECT_JOB_DBKEY=`blcli DistributeConfigurationObjectsJob getDBKeyByGroupAndName $DISTRIBUTE_CONFIG_OBJECT_JOB_GROUP $DISTRIBUTE_CONFIG_OBJECT_JOB_NAME`
# Now execute the Distribute Configuration Job.
DISTRIBUTE_CONFIG_OBJECT_JOB_RUN_DBKEY=`blcli DistributeConfigurationObjectsJob executeJobAndWait $DISTRIBUTE_CONFIG_OBJECT_JOB_DBKEY`
# Use the returned job run DBKey in commands that need to reference the job run.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*