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.

ApplicationDiscoveryJob - addNamedServerToJobByJobDBKey


ApplicationDiscoveryJob - addNamedServerToJobByJobDBKey

Description :

This command adds a server by name to an existing Application Discovery Job.

The jobKey argument identifies the Application Discovery Job to be modified. The serverName argument provides a name for the server being added to the job.

This command performs the same action as addTargetServer . This command returns a handle to the updated job. Note that this handle is different than any previous handle to this job. All older handles are invalid.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobKey

String

Handle to the Application Discovery Job.

serverName

String

Name of the server to be added.

Example

The following example shows how to add target server to an existing Application Discovery Job.

Script


JOB_FOLDER="/ApplicationDiscoveryJobs"

JOB_NAME="Run Application Discovery Job on all Servers"

JOB_HANDLE=`blcli ApplicationDiscoveryJob getDBKeyByGroupAndName $JOB_FOLDER $JOB_NAME`

SERVER_NAME="localhost"

JOB_KEY=`blcli ApplicationDiscoveryJob addNamedServerToJobByJobDBKey $JOB_HANDLE $SERVER_NAME`



 

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

BMC Server Automation Command Line Interface 8.3