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.

DistributeConfigurationObjectsJob - addGlobalConfigObjectToJob


DistributeConfigurationObjectsJob - addGlobalConfigObjectToJob

Description :

This command adds a specified version of a global configuration object to an existing Distribute Configuration Objects job.

The jobKey argument is a DBKey referring to the job to be modified. The configObjectName argument is the internal name of the configuration object to be added. The configObjectVersion argument is the version of the configuration object to be added.

This command returns a handle to the updated job. Note that this handle is different than any existing handle to this job. All older handles are invalid.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobKey

DBKey

Handle to the job

configObjectName

String

Internal name of the configuration object to be added to the job

configObjectVersion

Integer

Version of the configuration object to be added to the job

Example

The following example shows how to add a specified version of a global configuration object to an existing Distribute Configuration Objects job.

Script


JOB_KEY=`blcli DistributeConfigurationObjectsJob getDBKeyByGroupAndName group1 distrib_co_job`

Use the ConfigurationObjectClass listAllRootClasses and listAllClassVersions commands to list all global configuration objects which can be distributed (e.g., BMC_UnixUsers)



JOB_KEY=`blcli DistributeConfigurationObjectsJob addGlobalConfigObjectToJob $JOB_KEY BMC_UnixUsers 1`

 

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

BMC Server Automation Command Line Interface 8.3