Comparing Archives

To compare revisions of archived configuration files, follow these steps:

  1. In the Junos Scope main window, click Configuration > Repository > Compare. The Compare—Select Options dialog box appears.
    Image s001433.gif
  2. Do one of the following:
    • To compare archived configurations, ensure that Archived Configuration is selected in the Configuration File drop-down list box, then go to Step 3.
    • To compare imported configuration files, select the filename of the file you want to load in the Configuration File drop-down list box, then skip to
      Step 4.

      The names of the imported configuration files are listed in the Configuration File drop-down list box. When you select an imported configuration file, the Device drop-down list box is disabled because the file is not associated with any device.

  3. In the Device drop-down list box, select a device for which you want to compare two configuration files.
  4. Click Next. The Compare—Select configurations dialog box appears with the available configuration files listed by the date on which they were stored in the CVS repository, and a revision level.
    Image s001434.gif

    Configuration file revisions are displayed in the Compare Archived Configurations dialog box when you have archived or imported a configuration file. There must be at least two configuration file revisions to compare. If no archived configuration revisions are displayed, you have not archived a configuration file yet.

    To archive a configuration file, see Archiving and Manipulating Device Configurations. To import a configuration file, see Importing and Deleting Configuration Files.

  5. Select the check boxes for the two configuration file revisions to compare.
  6. To compare the older file version to the new version, click the Swap revisions (Compare older revision to newer) check box.

    By default, the Junos Scope software compares the newer revision of a configuration file to the older revision.

  7. Select the compare output format—Colored Diff or Unidiff.

    For more information about Colored Diff, see Colored Diff Compare Output Type. For more information about Unidiff, see Unidiff Output Compare Type.

  8. Click Finish. The configuration file difference(s) display in the View Differences dialog box.

Colored Diff Compare Output Type

If you selected the Colored Diff compare output option to view differences between two configurations in color, the following compare output appears.

Image s001435.gif

The Colored Diff highlights lines in the configuration file content that have been removed in the older version, or changed or added in the newer version.

You can change the compare output type by selecting Unidiff in the Compare Output Type drop-down list box.

Click OK to return to the Compare—Select Configurations dialog box.

Unidiff Output Compare Type

Image s001436.gif

If you selected the Unidiff compare output option, the following compare output appears.

A minus sign (-) represents a difference in one revision of the configuration file; a plus sign (+) represents a difference in the other.

You can change the compare output type by selecting Colored Diff in the Compare Output Type drop-down list box.

Click OK to return to the Compare—Select Configurations dialog box.