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


ApplicationDiscoveryJob - addComponentTemplateToJobByJobDBKey

Description :

This command adds a ACM template to an existing Application Discovery Job.

If a new template is not ACM template or its ACM type different form other job templates the command will failed

The jobKey argument identifies the Application Discovery Job to be modified. The templateKey argument provides a key for the template being added to the job.

For this example, a component template must have been created previously. 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.

templateKey

String

Handle to the template to be added.

Example

The following example shows how to add template 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`

TEMPLATE_FOLDER="/ApplicationDiscoveryTemplates"

TEMPLATE_NAME="WAS Servers"

TEMPLATE_KEY=`blcli Template getDBKeyByGroupAndName $TEMPLATE_FOLDER $TEMPLATE_NAME`

JOB_KEY=`blcli ApplicationDiscoveryJob addComponentTemplateToJobByJobDBKey $JOB_HANDLE $TEMPLATE_KEY`



 

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

BMC Server Automation Command Line Interface 8.3