R12.1 JA-2025July15

Method 2: Reverse Engineering from Group of Devices

This method allows you to calculate the configuration from a batch of devices, potentially identifying the Golden information. On a specified set of devices, calculate the values for the target-config or config variables. Aggregate the results to identify the number of distinct values and the corresponding device count for each value.

Sort these values in descending order based on the number of devices. Configurations with a device count exceeding a pre-configured threshold, will be designated as candidate golden config templates. From these, only the top configurations determined by another pre-configured threshold will be selected as candidates. You can then review these candidates and choose the final golden config template. The definition flow is as follows:

A diagram of a processDescription automatically generated

  1. Add the target devices by clicking +Add, select all devices that need to comply with the current golden configuration rule.
  2. You can choose a Normalized Config Variable for calculation. If Normalized Config variable is not selected, target Config Variable will be directly used for calculation.
  3. Config normalization is the process of replacing specific values in a configuration file with placeholders (such as $_dummy, $vlan, $ip, etc.). These placeholders allow flexibility, and they are not required to match a specific pattern during the verification of the golden configuration template.


  4. Click Calculate to perform calculations, you can modify the calculation settings such as minimal devices, maximum golden config and instance conditions settings for the calculation from the A blue and white logoDescription automatically generated.

  5. Upon matching the number of devices/instances conditions, the system will display the configlets.
  6. Click the link XX Devices (XX Instances) in the table column Calculated Devices to view the details of the specific devices/instances with the current config variable information:
    • If Normalized Config is selected: This window will also display the Original Config information. The columns will include:
      • Device
      • Instance
      • Target Config Variable
    • If Normalized Config is not selected and Target Variable Config is directly used for calculation, the Target Config Variable will no longer be displayed.

  7. Define and Test: The settings are same as in the Forward Engineering, refer to Section Define and Test.
  8. Click Add to Golden to move the Candidate Golden Config information into the Golden Config. Upon adding the current record to the Golden Config successfully, a Golden label will appear on the entry, indicating it as Golden Config Template. And the last column Add to Golden will display Added label. After a successful Add, you can view and edit the Golden entry by opening it from the Golden section.
  9. Update Device Scope: To recalculate the latest golden information based on the most recent configuration, click Calculate.
    If the Golden information does not completely match the calculated devices device scope, a function Update Device Scope will appear in the last column.
  10. Batch Add Golden Config to Adopted Golden Config Template: You can add multiple candidate golden config templates to the Adopted golden config at once by selecting multiple check boxes provided on the left side of the pane.

  11. Information

    Note: When adding multiple Candidate configs to the Golden Config, the system will check for the following conflicts:

    1. Name Conflict: If the names are same, the system will prompt that it cannot be duplicated and the item cannot be added again.
    2. Existing Golden Config Template: The system will provide options for handling a Golden Config Template that already exists. The options include:
      • Append: Add the new information to the existing Golden Config.
      • Overwrite: Replace the existing Golden Config information with the new one.
      • Cancel: Abort the addition process.

You can select a single or multiple Golden Config Templates and:

  1. Export as a CSV file
  2. Save them as Golden Config Parameters.

Export as a CSV file

Using this function, all the selected configuration variables can be exported as a CSV file:

  1. Select multiple config templates.
  2. Navigate to Add To and choose Export-CSV.

    The exported CSV file includes the following columns:

    A screenshot of a computerAI-generated content may be incorrect.

Add to Golden Parameter

  1. Select multiple config templates, click Add to > Config Parameter.
  2. A new window Add to Golden Parameter will appear on screen.

    1. Create a Golden Config Parameter without a Device Group:
      1. Add a name to the config parameter.
      2. Select the appropriate location for the config parameter from the Location drop down menu.
      3. Click OK to save and close the window.

      4. Information

        Note: A prompt will appear on screen with Success message. You can Open Config Parameter from the prompt and refine the parameter criteria.

    2. Create a Golden Config Parameter With Device Group:
    3. To create a new device group with the calculated devices for each corresponding configuration:

      1. Select the checkbox for the Add to DeviceGroup option.
      2. Choose the folder location to save the device groups for each config.
      3. Edit the default device group names as needed.
      4. Click OK to save and close the window.