Information
Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

SmartServerGroup - resetConditions


SmartServerGroup - resetConditions

Description :

This command clears all the old conditions from a smart server group, then adds a new condition to that group. 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 modified group.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

groupName

String

Fully qualified name of the smart group.

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 reset conditions on a smart server group whose name is /root/allSolaris. The new condition for the group is to select all servers whose descriptions start with "solaris 9."

Script





SmartServerGroup resetConditions /root/allSolaris  "Description" "contains" "solaris 9"



 

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

BMC Server Automation Command Line Interface 8.3