Information

This site will undergo a brief period of maintenance on Thursday, 23 April at 2:30 AM Central/1:00 PM IST. During a 30 minute window, site availability may be intermittent.

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.

SmartJobGroup - setMatchAll


SmartJobGroup - setMatchAll

Description :

This command sets the Match All / Match Any value for a smart job group. Match All means that in order for a job to belong to this group, it must match all of the membership conditions defined for this group. Match Any means that a job can belong to this group if it matches at least one of the membership conditions.

This command returns a handle to the job 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 job must match all conditions before it can join this group. Set this variable to false if a job 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 SmartJobGroup setMatchAll $SMARTGROUP $MATCHALL`



 

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

BMC Server Automation Command Line Interface 8.3