SmartServerGroup - createGroup

SmartServerGroup - createGroup

Description :

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

This command returns a handle to the newly created 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 servers whose names start with "solaris."

Script





SmartServerGroup createGroup /root allSolaris  "all solaris servers" Name "starts with" solaris 



Was this page helpful? Yes No Submitting... Thank you

Comments