Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Comparing SRC Configurations

    This sample procedure describes how to use the compare command to display the uncommitted changes against the active configuration.

    To compare uncommitted configuration changes:

    • Use the show | compare command to compare any uncommitted changes made at the CLI with the active configuration.
      [edit]user@host# show | compare
    • Use the show | compare filename command to compare the candidate configuration against a text file containing the configuration. The candidate configuration is a combination of the active configuration and the uncommitted configuration changes.
      [edit]user@host# show | compare filename

    Note: The compare command works only with the text format display.

    The following example displays the show | compare command output, if the edit level of the admin user is changed from normal to expert and a new user guest is configured:

    [edit system login]
    user@host# show | compare 
    +  user guest {
    +    class super-user;
    +    full-name guest;
    +    uid 501;
    +    gid 100;
    +    authentication { 
    +      encrypted-password "{crypt}jWAyE2tHU5EUk";
    +    }
    +    level normal;
    +    complete-on-space on;
    +  }
    [edit system login user admin]
    user@host# show | compare
    -  level normal
    +  level expert

    Note: The plus sign (+) before the statement name indicates new configuration and the minus sign (–) before the statement name indicates deleted configuration.

    Modified: 2014-06-10