SmartServerGroup - setMatchAll
SmartServerGroup - setMatchAll
Description :
This command sets the Match All / Match Any value for a smart server group. Match All means that in order for a server to belong to this group, it must match all of the membership conditions defined for this group. Match Any means that a server can belong to this group if it matches at least one of the membership conditions.
This command returns a handle to the server group.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
groupName | String | Fully qualified path to the group. |
matchAll | Boolean | Set this variable to true if a server must match all conditions before it can join this group. Set this variable to false if a server can join this group if it matches at least one condition. |
Example
The following example shows how to set Match All to true for a smart group called /Location/test.
Script
SMARTGROUP="/Location/test"
MATCHALL="true"
# Now set match all
NEWGROUP_KEY=`blcli SmartServerGroup setMatchAll $SMARTGROUP $MATCHALL`