Information
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.

SystemPackage - setPostInstlBatchJob


SystemPackage - setPostInstlBatchJob

Description :

This command sets the post-install Batch Job for a system package. This Batch Jobs runs after the provisioning process is complete.

Return type : com.bladelogic.om.provisioning.model.provision.systempackage.SystemPackage

Command Input :

Variable Name

Variable Type

Description

spkey

DBKey

The DBKey associated with the system package.

bjobkey

DBKey

The DBKey associated with the Batch Job.

Example

The following example shows how to get the Batch Job DBKey, get the system package DBKey, and then set the post-install Batch Job for the system package.

Script


# Name of the existing Batch Job.

BATCHJOB_NAME="batchjob1"

# Job group in which the Batch Job is stored.

BATCHJOB_GROUP="/parent/group1"

# Get the Batch Job DBKey using the above information.

BATCHJOB_DBKEY=`blcli BatchJob getDBKeyByGroupAndName $BATCHJOB_GROUP $BATCHJOB_NAME`

# Name of the group containing the system package.

SYS_PACK_GROUP="/SysPackGrp/Windows"

# Name of the system package.

SYS_PACK_NAME="Win2k3"

# Get the system package DBKey using the above information.

SYS_PACK_KEY=`blcli SystemPackage getDBKeyByGroupAndName $SYS_PACK_GROUP $SYS_PACK_NAME`

# Set the post-install batch job for this system package.

`blcli SystemPackage setPostInstlBatchJob $SYS_PACK_KEY $BATCHJOB_DBKEY`



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Server Automation Command Line Interface 8.3