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`