Template - updateByDBKey
Template - updateByDBKey
Description :
This command updates the destination template using the contents of the source template. For information about the update process, see Import-and-export-concepts.
Return type : com.bladelogic.om.infra.model.template.Template
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
srcTemplateDBKey | DBKey | Handle to the source template. |
destTemplateDBKey | DBKey | Handle to the destination template. |
Example
The following example gets a handle to the source template and a handle to the destination template. Then it updates the destination template.
Script
DBKEY_SRC=`blcli Template getDBKeyByGroupAndName /group2 newTemplate`
DBKEY_DEST=`blcli Template getDBKeyByGroupAndName /group1 oldTemplate`
blcli Template updateByDBKey $DBKEY_SRC $DBKEY_DEST
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*