VSMDiscoveryJob - createVSMDiscoveryJobForTargetGroup
VSMDiscoveryJob - createVSMDiscoveryJobForTargetGroup
Description :
This command creates a VSM Discovery Job that is run against a server group.
The jobGroupName argument provides the fully qualified path to the parent group. The targetGroupName argument provides the target group name for the new VSM Discovery Job. This command returns a handle to the newly created VSM Discovery Job. The handle can be used in other commands that need to reference the VSM Discovery Job.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
jobName | String | Name of the job. |
groupName | String | Parent group for this job. |
targetGroupName | String | Name of the target server group. |
autoRegister | Boolean | Flag indicating whether or not to auto-register discovered virtual machines (true/false). |
discoverOrphans | Boolean | Flag indicating whether or not to discover orphan virtual machines (true/false). |
discoverTemplates | Boolean | Flag indicating whether or not to discover templates (true/false). |
Example
The following example creates a VSM Discovery Job with a single target group.
Script
JOB_NAME=Run VSM Discovery Job on Target Group
JOB_GROUP=/VSMDiscoveryJobs
TARGET_GROUP=/VC-Server-Group
IS_AUTO_REGISTER=true
IS_DISCOVER_ORPHANS=true
IS_DISCOVER_TEMPLATES=true
JOB_KEY=`blcli VSMDiscoveryJob createVSMDiscoveryJobForTargetGroup $JOB_NAME $JOB_GROUP $TARGET_GROUP $IS_AUTO_REGISTER $IS_DISCOVER_ORPHANS $IS_DISCOVER_TEMPLATES`