SmartTemplateGroup - createGroup


SmartTemplateGroup - createGroup

Description :

This command creates a smart template group with one condition. When you add a new condition, you must specify its operator type. For a complete list of the operator strings, see the SmartServerGroup : addCondition command.

This command returns a handle to the new group.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

parentGroupName

String

Fully qualified path to the parent group.

groupName

String

Name of the smart group you want to create.

groupDescription

String

Description of the smart group you want to create.

propName

String

Property name to be used in the smart group condition.

operator

String

Operator string to be used in the smart group condition.

propValue

String

Property value to be used in the smart group condition.

Example

The following example shows how to create a smart group called allSolaris in the /root group. This new group has the condition to select all templates whose names start with "solaris."

Script





SmartTemplateGroup createGroup /root allSolaris  "all solaris templates" Name "starts with" solaris



 

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

BMC Server Automation Command Line Interface 8.7