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


ApplicationDiscoveryJob - createApplicationDiscoveryJob

Description :

This command creates a Application Discovery Job.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobName

String

Name of job to be created.

groupId

Integer

ID of the job group where this job is stored.

templateKey

DBKey

Handle to the template used to discover components.

serverName

String

Name of target server.

Example

The following example shows how to create a Application Discovery Job. The example uses a server group for its target servers.

For this example, a component template must have been created previously.

If a template is not ACM template the commnad will failed

Script





SERVER_ID=`blcli Server getServerIdByName $TARGETSERVER`

JOB_GROUP_ID=`blcli JobGroup groupNameToId /ApplicationDiscoveryJobs`

TEMPLATE_KEY=`blcli Template getDBKeyByGroupAndName /filesystem basefiles`

JOB_KEY=`blcli ApplicationDiscoveryJob createApplicationDiscoveryJob basefileecdjob $JOB_GROUP_ID $TEMPLATE_KEY $TARGETSERVER`



 

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

BMC Server Automation Command Line Interface 8.3