SmartDepotGroup - setMatchAll
SmartDepotGroup - setMatchAll
Description :
This command sets the Match All / Match Any value for a smart depot group. Match All means that in order for a depot to belong to this group, it must match all of the membership conditions defined for this group. Match Any means that a depot can belong to this group if it matches at least one of the membership conditions.
This command returns a handle to the depot 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 depot must match all conditions before it can join this group. Set this variable to false if a depot 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 SmartDepotGroup setMatchAll $SMARTGROUP $MATCHALL`