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.

ComponentDiscoveryJob - createComponentDiscoveryJob


ComponentDiscoveryJob - createComponentDiscoveryJob

Description :

This command creates a Component 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 Component Discovery Job. The example uses a server group for its target servers.

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

Script





SERVER_ID=`blcli Server getServerIdByName $TARGETSERVER`

JOB_GROUP_ID=`blcli JobGroup groupNameToId /ComponentDiscoveryJobs`

TEMPLATE_KEY=`blcli Template getDBKeyByGroupAndName /filesystem basefiles`

JOB_KEY=`blcli ComponentDiscoveryJob createComponentDIscoveryJob basefileecdjob $JOB_GROUP_ID $TEMPLATE_KEY $TARGETSERVER`

JOB_KEY=`blcli Job addTargetGroup $JOB_KEY $TARGETGROUP`



 

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

BMC Server Automation Command Line Interface 8.3