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"