Template - addPartToSignatureByTypeName


Template - addPartToSignatureByTypeName

Description :

This command adds any part to a template signature, based on the part's type name. This command also indicates whether the part must exist or must not exist. This command returns a handle to the modified template.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

groupName

String

Name of the template group.

templateName

String

Name of the template.

partType

String

The part type you are adding.

partEscapedPath

String

NSH-style path to the part.

mustExist

Boolean

Set this variable to true if the part must exist. Set this variable to false if the part must not exist.

Example

The following example adds a BMC_UnixUser part to a template signature. The BMC_UnixUser part has its condition set to the user must exist.

Script





Template addPartToSignatureByTypeName /tstTemplateGroup tstTemplate BMC_UnixUser /abc true



 

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