Information

This site will undergo a brief period of maintenance on Thursday, 23 April at 2:30 AM Central/1:00 PM IST. During a 30 minute window, site availability may be intermittent.

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.

DeployJob - addNamedServerToJobByJobDBKey


DeployJob - addNamedServerToJobByJobDBKey

Description :

This command adds a server to an existing Deploy Job. You can also perform the same action with Job addTargetServer .

The deployJobKey argument provides a DBKey referring to the deploy job to be modified. The serverName argument identifies the target server to be added.

This command returns a handle to the updated Deploy Job. Note that this handle is different than any existing handle to this Deploy Job. All older handles are invalid.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

deployJobKey

DBKey

Handle to the Deploy Job.

serverName

String

Name of the server to be added.

Example

The following example shows how to add a server to an existing Deploy Job.

Script


SERVER=nocdb1

DEPLOY_JOB_GROUP=/nocdeploy

DEPLOY_JOB_NAME=configdeploy

DEPLOY_JOB_KEY=`blcli DeployJob getDBKeyByGroupAndName $DEPLOY_JOB_GROUP $DEPLOY_JOB_NAME`

DEPLOY_JOB_KEY=`blcli DeployJob addNamedServerToJobByJobDBKey $DEPLOY_JOB_KEY $SERVER`



 

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

BMC Server Automation Command Line Interface 8.5