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 - createAgentInstallerJobWithOperationTypeAndTargetGroup

AgentInstallerJob - createAgentInstallerJobWithOperationTypeAndTargetGroup

Description :

This command creates an Agent Installer Job that can be used for executing specified operation type on a specified server group. The possible operation type values can one of following : 1. INSTALL 2. UPGRADE 3. INSTALL_AND_UPGRADE Once the job is created with given operation type, it can not be changed. e.g. If a Agent Installer Job is created for INSTALL operation, that can not be modified later for executing UPGRADE operation. Another instance of Agent Installer Job with operation type UPGRADE has to be created. The job instance created by this CLI will have all the default values for other job options. For changing the default values, BLCLIs for setting that particular job option has to be invoked following this execution of this CLI. Below are the default values of various job options Install Options: Update Server Properties : True Update Config Object registration : True Push Agent ACLs : True Upgrade Options: Push Agent ACLs : False Skip upgrade if server is in use : True Ignore Running Jobs : False Job Option: Preserve staging area on failure : True This command returns a handle to the newly created Agent Installer Job. The handle can be used in other commands that need to reference the Agent Installer Job.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobName

String

Name of the job.

groupName

String

Fully qualified path to the job folder containing the job.

bundleGroup

String

Fully qualified path to the depot folder containing the agent bundle.

bundleName

String

Name of the agent bundle.

serverGroup

String

Name of the initial target server group.

operationType

String

Operation Type

Example

The following example creates an Agent Installer Job with a single target server group and agent bundle for an Upgrade operation type:

Script





SERVER_GROUP=/servergroup 

JOB_GROUP=/installjobs 

AGENT_BUNDLE_GROUP=/Bundles 

AGENT_BUNDLE=AgentBundleTest 

JOB_KEY=`blcli AgentInstallerJob createAgentInstallerJobWithOperationTypeAndTargetGroup installerJobName $JOB_GROUP $AGENT_BUNDLE_GROUP $AGENT_BUNDLE $SERVER_GROUP UPGRADE` 



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

Comments