Just a quick post to show how one can compared what is in the startup-configuration
compared to the running-configuration or to compare to different configurations
stored on flash on Cisco devices.

The device boots up with the startup-configuration. Then we add some commands to
the running-configuration but we do not save them.

Then the show archive command is used to show what’s different between the two versions.

Commands with a + sign in front of it are present in the startup-configuration but
not in the running-configuration. If there is a – sign then they are present in the
running-configuration but not in startup-configuration.

It is also possible to compare a file stored in NVRAM to the running-configuration.

Just a little tool that may be helpful to see what is different between versions. It
could be used for such things as editing an ACL by uploading a file to the device.
Then do a diff between the files to see what is changing in the ACL.

Cisco diff – compare configurations
Tagged on:                 

4 thoughts on “Cisco diff – compare configurations

  • February 2, 2014 at 10:25 pm
    Permalink

    Hi Daniel, I am sure you know this already. There is another command that will give a clean list of commands — as they should be applied to rollback: This allows for a straight-forward cut-(edit)-and-paste.

    show archive config INCREMENTAL-DIFFS flash:config.old

    Love your blog.

    Reply
    • February 6, 2014 at 11:25 pm
      Permalink

      Thanks for the kind words Mark and thanks for contributing in the comments!

      I’m thinking if I know any else of these things that could help my readers out.

      Reply
  • February 19, 2014 at 10:46 am
    Permalink

    Hi Daniel,
    Very good post indeed, I discovered a useful new thing. Keep on

    Mohamed Nidhal beyrem Jaziri
    CCIE # 38232
    Tunisia

    Reply
  • June 10, 2015 at 10:18 pm
    Permalink

    HI ,

    My GSR router has installed image : IOS ™ GS Software (C12KPRP-K4P-M), Version 12.0(32)SY12, RELEASE SOFTWARE (fc1) . It doesn’t support sh archive config diff. How to compare the difference between running-config and startup-config ?

    Thanks

    lily

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: