diff

Description                                                    Display a side-by-side comparison of the commands in a pair of locally stored configurations.

Syntax                                                                  diff {startup-config | profile-name} {running-config | profile-name}

Default                                                                N/A

Mode                                                                   Privileged EXEC mode

Usage                                                                  The following command compares the configuration profile that is currently linked to “startup-config” with the running-config.

diff startup-config running-config

Similarly, the following command compares the configuration profile that is currently linked to “startup-config” with the specified configuration profile:

diff startup-config profile-name

To compare a configuration profile other than the startup-config to the running-config, enter the configuration profile name instead of startup-config.

To compare any two configuration profiles, enter their profile names instead of startup-config or running-config.

In the CLI output, the commands in the first profile name you specify are listed on the left side of the terminal screen. The commands in the other profile that differ from the commands in the first profile are listed on the right side of the screen, across from the commands they differ from. The following flags indicate how the two profiles differ:

     |  – This command has different settings in the two profiles.

     > – This command is in the second profile but not in the first one.

     < – This command is in the first profile but not in the second one.

Table of Contents

Index

Glossary

-Search-

Back