Creating a computer group
In this scenario, an existing relevance for a single property is used to create an automatic group that contains any system that has the BigFix server or relay installed.
This example uses the BigFix console and the Fixlet Debugger to test the Relevance.
- On the BigFix console, select the All Content domain.
- Click the Computers node on the displayed navigation tree.
- Right-click the retrieved properties column headings to display the Column Picker.
- Click Manage Properties at the bottom of the Column Picker window. The Manage Properties Window opens.
- In the left pane, expand the By Site node.
- Click the BES Support site.
- In the right pane, scroll down and click the BES Relay Installed Status property.
- In the Relevance window, select the Relevance statement (CTRL+A) and copy it.
- Click Cancel to close the Manage Properties window.
- Open the Fixlet Debugger by selecting Start > All Programs > BigFix > BigFix Fixlet Debugger.
- Select the (qna) tab.
- Paste the Relevance statement that was copied in Step 8 to this tab. Ensure that you add
Q:
to the start of the statement.- Q: if exists relay service then "Yes - " & state of service "BESRelay" else if exists main gather service then "Main BES Server" else "Not Installed"
- Evaluate the query. You should see the response Main BES Server displayed.
To create a group, you must develop a Relevance query that evaluates to
True
. The following steps take you through this process. - Copy the first
if
expression from the statement that you just evaluated in Step 13 to a new line. It is recommended that when creating Boolean expressions, you use parentheses to define the expressions. Add parentheses around this expression:- Q: (exists relay service)
- At the end of the statement that you created in Step 14, add OR to force the BigFix client to evaluate the second statement if the first statement is False. Add open and closed parentheses after the OR.
- Q: (exists relay service) OR ()
- Copy the nested
if
expression from the statement that you evaluated in Step 13 and paste it inside the blank parentheses in the expression that you created in Step15.- Q: (exists relay service) OR (exists main gather service)
The OR expression checks to see if the Main Gather service is installed. This service is installed on the BigFix server, so you are now checking to see if the endpoint is a BigFix relay or a server.
- Evaluate the query. The query should respond with
True
.You now have the required Relevance to create the wanted automatic group. This group contains the Infrastructure systems or those endpoints that have either the relay service or the main gather service installed.
- Switch to the BigFix console.
- From the menu, select Tools > Create New Automatic Computer Group. The create New Automatic Computer Group window is displayed.
- Enter Infrastructure Systems for the Group name field.
- Leave the Create in site and Create in Domain fields at the default value. In the bottom drop-down box, change the value from Computer Name to Relevance Expression.
- Click Edit Relevance. The Edit Relevance window opens.
- In the Edit Relevance window, remove any current Relevance, copy the Relevance expression that you evalutated in Step 17 and paste it to this window.
- Click OK to save the Relevance and close this window.
- Click Create to create the group.
Within the BigFix console, you now see the group details, not the resulting Relevance for the group.
- To create a group of non-infrastructure systems, you can create a custom copy of this group with a new name and change the condition by completing the following steps:
- Change the condition of the Relevance check from is true to is false.
- Modify the Relevance query itself:
- Q: (NOT exists relay service) AND (NOT exists main gather service)
- Use Group Membership by stating that any endpoint that is not a member of the Infrastructure Systems group is a member of the non-infrastructure group. Because there are only two potential conditions for the original group, true or false, this action ensures that any endpoint that is not a member of the group is added to the non-infrastructure group.