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


AgentInstallerJob - createAgentInstallerJobWithOperationTypeAndTargetServer

Description :

This command creates an Agent Installer Job that can be used for executing passed operation type on a specified target server. The possible operation type values can be 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.

serverName

String

Name of the initial target server.

operationType

String

Operation Type

Example

The following example creates an Agent Installer Job with a single target server and agent bundle:

Script





TARGET_SERVER=targetdevice

JOB_GROUP=/installjobs

AGENT_BUNDLE_GROUP=/Bundles

AGENT_BUNDLE=AgentBundleTest

JOB_KEY=`blcli AgentInstallerJob createAgentInstallerJobWithOperationTypeAndTargetServer installerJobName $JOB_GROUP $AGENT_BUNDLE_GROUP $AGENT_BUNDLE $TARGET_SERVER UPGRADE`



 

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