Unsupported content

 

This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

AgentInstallerJob - executeJobAndWait

AgentInstallerJob - executeJobAndWait

Description :

This command executes an Agent Installer Job and waits for the job to end before returning. If approval is enabled for the job type use the other command which takes in approval id as an additional input.

Use this command to execute a job unless the job should be scheduled. Because this command does not return until the job completes, it effectively pauses execution of any script running this command. This command returns a handle to the job run, which can be used in other commands that need to reference the Agent Installer Job run.

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

Command Input :

Variable Name

Variable Type

Description

jobKey

DBKey

A handle to the Agent Installer Job to be executed.

Example

The following example shows how to execute an Agent Installer Job.

Script





JOB_NAME=agentInstallerJob 

JOB_GROUP=/installjobs 

JOB_DBKEY=`blcli AgentInstallerJob getDBKeyByGroupAndName $JOB_GROUP $JOB_NAME` 

JOB_RUN_KEY=`blcli AgentInstallerJob executeJobAndWait $JOB_DBKEY` 



Was this page helpful? Yes No Submitting... Thank you

Comments