UpgradeModelObjectsJob - executeJobAndWait


UpgradeModelObjectsJob - executeJobAndWait

Description :

This command executes a Upgrade Model Objects 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 Upgrade Model Objects job run.

Return type : com.bladelogic.om.infra.app.service.job.JobRunKey

Command Input :

Variable Name

Variable Type

Description

jobKey

DBKey

Handle to the Upgrade Model Objects Job to be executed.

Example

The following example shows you how to execute an existing Upgrade Model Objects job.

Script


# Name of the existing Upgrade Model Objects job.

UPGRADE_MODEL_OBJECTS_JOB_NAME="umoJob1"

# Job group in which Upgrade Model Objects job is stored.

UPGRADE_MODEL_OBJECTS_JOB_GROUP="/parent/group1"

# Get the Upgrade Model Objects job DBKey using the above information.

UPGRADE_MODEL_OBJECTS_JOB_DBKEY=`blcli UpgradeModelObjectsJob getDBKeyByGroupAndName  $UPGRADE_MODEL_OBJECTS_JOB_GROUP $UPGRADE_MODEL_OBJECTS_JOB_NAME`

# Now execute the Upgrade Model Objects.

UPGRADE_MODEL_OBJECTS_JOB_RUN_DBKEY=`blcli UpgradeModelObjectsJob executeJobAndWait $UPGRADE_MODEL_OBJECTS_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*