Examples of editing templates and compliance rules

This page presents videos with examples of edits that you can perform in templates for creating specific types of compliance rules.

Including a command in a compliance rule

The following video shows how to include a command in a compliance rule:

  https://youtu.be/pZf6CTiED4M

This video demonstrates the following actions:

  1. On the Parts tab in an existing component template, create a part based on a command.
  2. On the Compliance tab, create a compliance rule that contains your custom part. Then test the rule.

Including an external script in a compliance rule

The following video shows how to include an external script in a compliance rule:

  https://youtu.be/m8I1qzeKKRM

This video demonstrates the following actions:

  1. Copy an external, non-NSH script into the directory that is used by scriptutil. Then perform a test run of the script, using scriptutil through NSH.
  2. On the Local Configuration Objects tab in an existing component template, create an extended object in which scriptutil executes your external script.
  3. On the Parts tab, ensure that a part was automatically created for the extended object, and create an additional part for the extended object entry.
  4. On the Compliance tab, create a compliance rule that contains the part that represents your extended object entry. Then test the rule.
Was this page helpful? Yes No Submitting... Thank you

Comments