Configuring compliance constants
Compliance constants can be used in criteria as placeholders for values. The constants defined here can be used in any compliance rule to be defined.
You can execute following operations on compliance constants:
Creating a constant
Compliance constants can be used in criteria as placeholders for values. The constants defined here can be used in any compliance rule to be defined. To create the constant that represents the BMC Client Management installation directory, proceed as follows.
- Select the Constants tab.
- Click Create Constant .
- Enter PATH CM Client as the constant name.
- Enter C:/Program Files/BMC Software/Client Management as the value that the constant represents.
- Click OK to confirm and add the new constant.
The constant is now created and can be used in compliance rules.
Creating a compliance rule using a constant
This compliance rule finds all clients on which the CM client is not installed in its default directory. This rule will use a constant instead of entering a value or selecting it from the lists provided by the search functionality. This rule will have one criteria group.
- Click Create Compliance Rule .
- Enter CM Client Installation Directory into the Name box and then click OK .
- Double-click the new rule in the table to the right.
- Select the Criteria tab.
- Click Add Criteria Group .
- Enter Client Path into the Name box.
This group will find all devices on which the client is installed in the specified directory.
- In the Class list, select the Software Inventory value.
The following Table box will update its contents to the fields available for the software inventory.
- Select the value Scanned Application (Deprecated) in the Table box.
- Select the criterion Installation Directory .
- Click Constant next to the Value box.
- Select the PATH CM Client constant and click OK.
- Click Add .
- Click OK to add the criteria group to the rule.
- To activate the compliance rule select the green colored option active instead of the currently displayed red option inactive in the Status list.
You have now created a compliance rule that uses a constant. To check for device compliance assign this rule to the required devices/device groups and evaluate.