VSMDiscoveryJob - createVSMDiscoveryJobForServer


VSMDiscoveryJob - createVSMDiscoveryJobForServer

Description :

This command creates a VSM Discovery Job that is run against a server.

The jobGroupName argument provides the fully qualified path to the parent group. The targetServerName argument provides the target server 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.

targetServerName

String

Name of the target server.

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 server.

Script





JOB_NAME=Run VSM Discovery Job on a Server

JOB_GROUP=/VSMDiscoveryJobs

TARGET_SERVER=localhost

IS_AUTO_REGISTER=true

IS_DISCOVER_ORPHANS=true

IS_DISCOVER_TEMPLATES=true

JOB_KEY=`blcli VSMDiscoveryJob createVSMDiscoveryJobForServer $JOB_NAME $JOB_GROUP $TARGET_SERVER $IS_AUTO_REGISTER $IS_DISCOVER_ORPHANS $IS_DISCOVER_TEMPLATES`



 

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

TrueSight Server Automation Command Line Interface 20.02