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.

Component - setPropertyValue


Component - setPropertyValue

Description :

This command sets a property value on a component. The property name must be defined in the Component property class, or as a local property in the component's component template. The property must be defined as editable.

You can use the BMC BladeLogic blenc encryption utility to encrypt values you set with this command. For syntax and sample usage, see Server : setPropertyValue .

Return type : com.bladelogic.om.infra.model.component.Component

Command Input :

Variable Name

Variable Type

Description

objectKey

DBKey

DBKey of the component.

propertyName

String

Name of the property.

valueAsString

String

Value of the property.

Example

The following example script assumes that a component key is present in the CLI variable COMPONENT_KEY. It also assumes that a property called install_dir has been defined as a local property in the component's component template.

Script





Component setPropertyValue $COMPONENT_KEY install_dir "/c/tmp"



 

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

BMC Server Automation Command Line Interface 8.3