17.8 Editing System Requirements

The purpose of the system requirements is to limit some policies to run on devices that have the necessary requirements to enforce the policy. When more than one GConf-based policy of the same type is assigned, the first policy that meets the requirements is enforced on managed devices. All effective Remote Execute and Text File policies are enforced on managed devices.

You can specify the system requirements by defining certain conditions, called filters. You can set up simple system requirements that contain only one filter, or you can set up complex system requirements containing multiple filters or groups of filters. If you set up system requirements using more than one filter, you must also specify the logical relationship between the filters.

To set up a filter:

  1. In the ZENworks Control Center, click the Policies tab.

  2. Select a policy for which you want to edit the system requirements.

  3. Click the Details tab.

  4. In the Combine Filters Using field, select AND or OR.

    This setting lets you specify the logical relationship between filter sets and filters. Select And to satisfy all the sets of filters and select Or to satisfy any one of the filter sets. By default, the filters are defined in one filter set. Within a filter set, select OR to satisfy any one of the filter conditions and select AND to satisfy all the filter conditions.

  5. (Optional) Click Add filter. The new filter is added and it is applied based on the logical relationship you have defined in Step 4.

  6. (Optional) Click Add filter set to add a new filter set. This filter is also applied based on the logical relationship you have defined in Step 4.

  7. Select a value from the first drop-down list.

    The operator list and other text boxes are displayed based on the value you have selected in the first drop-down list.

  8. Specify a value in the text box. The following table describes values you can select in the first drop-down list and corresponding examples you can specify:

    Criteria

    Field 1

    Field 2

    Field 3

    Date of File

    Filename with complete path

    Logical condition

    Date

    Distribution

    Logical condition

    Distribution name with version number

    -

    Environment

    Environment Variable

    Logical condition

    Value

    Find File

    Filename with full path

    Logical condition

    -

    Find RPM

    RPM name

    Make sure that the RPM name you specify is case-sensitive.

    Logical condition

    -

    Free Disk Space

    File system. For example, /dev/hda1.

    Logical condition

    Value in KB

    Kernel

    Logical condition

    Linux kerne_version. For example, Linux 2.6.5-7.111

    -

    Processor

    Logical condition

    -

    Size of file

    Filename with complete path

    Logical condition

    Size in bytes

    Total Disk Space

    File system. For example, /dev/hda1.

    Logical condition

    Value in KB

    Used Disk Space

    File System. For example, /dev/hda1

    Logical condition

    Value in KB

    Version of RPM

    RPM name

    Make sure that the RPM name you specify is case-sensitive.

    Logical condition

    Version (2.0.1)

  9. Select an operator from the drop-down list.

    The operator drop-down list is displayed based on the value you have selected in the first drop-down list. For example, if you select Version of RPM, the available operators are Equal to, Not Equal to, Less Than, Greater than, > Greater than or equal to, and Less than or equal to. If you select Size of file, the available operators are Less than, Greater than, Greater than or equal to, and Less than or equal to. If you select Date of file, the available options are On, > After, On or after, Before, and On or before. If you select Date of file, you can also select a specific date.

  10. Click Apply.