AgentInstallerJob - createAgentInstallerJobWithTargetServer
AgentInstallerJob - createAgentInstallerJobWithTargetServer
Description :
This command creates an Agent Installer Job that is run against one server. 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. |
uspEnabled | Boolean | Update server properties as part of the job (true=enabled, false=disabled). |
configRegistrationEnabled | Boolean | Register configuration objects as part of the job (true=enabled, false=disabled). |
aclPushEnabled | Boolean | Push ACLs as part of the job (true=enabled, false=disabled). |
preserveStagingEnabled | Boolean | Preserve Staging Area On Failure as part of the job (true=enabled, false=disabled). |
Example
The following example creates an Agent Installer Job with a single target server and agent bundle:
Script
TARGET_SERVER=agentlessdevice
JOB_GROUP=/installjobs
AGENT_BUNDLE_GROUP=/Bundles
AGENT_BUNDLE=AgentBundleTest
JOB_KEY=`blcli AgentInstallerJob createAgentInstallerJobWithTargetServer agentInstallerJobForServer $JOB_GROUP $AGENT_BUNDLE_GROUP $AGENT_BUNDLE $TARGET_SERVER true true true false`