Document toolboxDocument toolbox

Testing Policy Rules

Rules created in the Raw XML Editor can be validated through the XML schema by simply clicking the Validate button. To test any non-XML rule, do the following:

  1. In the Rules panel, select the rule to be tested.

  2. Click the Test Rule button in the lower right corner. The Test Rule dialog appears.

  3. In the Test Rule dialog, specify what you want to test against:

    1. Click the Test Against Existing Device tab.

    2. Select a Device Group that contains the device of interest.

    3. Select the specific device by clicking on its table row. Note that the IP Address and Network View columns provide links to their respective viewer windows.
      To test against device attributes and/or a configuration file, do the following:

    4. Click the Test Against Attributes/Config File tab.

    5. Enter device attributes (if available) and/or click Browse... to select a configuration file.

Click Test. Results appear in the pop-up Test Results window. You can click the Debug button to watch the rule execution. For more information, see Debugging Rules.

To import a rule, do the following:

  1. Click Import in the upper left corner. The Import Rule dialog appears.

  2. Click the Browse... button, then locate and select the file.

  3. Click the Import button.

To export a rule, do the following:

  1. In the Rules panel, select the rule to be exported.

  2. Click Export in the upper left corner

  3. Take the appropriate action in the resulting dialog.

To copy a rule, do the following:

  1. Click Copy in the upper left corner. The Copy Rule dialog appears.

  2. Enter the Short Name, Name, and Author.

  3. Select a Severity.

  4. Edit the Description as needed.

  5. Edit the Remediation as needed.

  6. Click Save.

To delete a rule, do the following:

  1. In the Rules panel, select the rule to be deleted.

  2. Click Delete in the upper left corner.

  3. Confirm the deletion.