Creating and Editing a Configuration File Association

You can create a new configuration file association to the list of configuration associations. You can also edit an existing configuration file association.

Figure 6: Add New Configuration Association page

Image s001438.gif

To add or edit a configuration file association, follow these steps:

  1. In the Junos Scope main window, click Home > Configuration > Repository > Config Associations > Add Config Association. The Add New Configuration Association page appears. This page enables you to create a new configuration file association.
    To edit an existing configuration file association, select the configuration association from the list of configuration associations. This takes you to the Edit Configuration Association page where you can edit that configuration file association.
  2. Select a configuration file from the Imported Configuration Files list. This list contains all the configuration files that were imported into Junos Scope.
  3. Select the revision of the configuration file that Junos Scope returns to the device, from the Imported Config Versions table. This is the version of the configuration file that is returned to the device if the device attributes match the criteria of that configuration association. This table lists the Revision number as well as the date when the configuration file was last revised. The content in this table changes when a different configuration file is selected.
    If you select the Latest Revision option, Junos Scope always returns the last revised version of the configuration file that is, the dynamic latest. This option is selected by default.
    If you select a particular version number, Junos Scope always returns that version of the configuration file even if there are newer versions of that configuration file available.
  4. In the Comment text box, type an optional descriptive comment about the configuration file association.
  5. In the Enter a Criteria list, specify a rule by doing one of the following actions:
    • Default — Select this option if you want Junos Scope to return a default configuration file if none of the device attributes match any of the criteria in the configuration associations. You cannot associate criteria to a configuration file that has been designated as the default configuration association.
    • Device Attributes — Select this option to specify a set of rules that the returned configuration file must match to.
      Select the parameter from the Device Attribute list. The options are Hostname, Model, OS Version, and Serial Number.
      Set a rule for the parameter by selecting a combination of the options from the two lists. The options for the first list are does, and does not. The options for the second list are contain, begin with, end with, and equal. This sets the condition for the selected parameter.
      Specify a value that the device attribute must match in order to satisfy the criteria.
    • Device in Group — Select this option if you want Junos Scope to return the associated configuration file if the requesting device belongs to a certain group. You can select the group from the list. The hostname is used to check if the device belongs to the selected group of devices.
  6. In the Action list, select one of the two options in the Logic list and click Add to add the rule to the Criteria list.
    • Select AND if you want the device to match both the rules that are combined by AND. This is the default selection.
    • Select OR if you want the device to match either of the rules that are combined by OR.
  7. You can move the rules in the Criteria list by selecting the rule you want to move and clicking one of these buttons:
    • Move Up — Moves the selected rule to one row above its current position.
    • Move Down — Moves the selected rule to one row below its current position.

    You can also remove rules from the Criteria list by selecting the rule and clicking Remove. Click Remove All to remove all the rules from the Criteria list.

  8. Click Save to save the configuration file association. After saving the configuration association, the Config Associations page, which contains the list of configuration file associations is displayed. The new configuration association gets added to the end of the list of configuration associations.
    Click Reset to restore all the field values to their default value. If you are editing a configuration association, then the field values change back to the last saved values of that configuration association.
    Click Cancel to go back to the Config Associations page which contains the list of configuration file associations.