cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
37024
Views
84
Helpful
20
Comments
Cedric Dessez
Community Member

Tool available at: https://cway.cisco.com/tools/confdiff/

Description

Have you ever struggled comparing two network configuration files?

Of course there exist numerous diff scripts and tools (Unix “diff” command, WinMerge…) but they are well suited for programming code or articles. When used on Cisco configuration files, they tend to flood relevant exception in a large amount of false positives, which might lead to mistakes and impact your productivity.

This tool addresses the problem with an approach that understands the hierarchical structure of Cisco configuration files and an output that facilitates comparison by reordering and aligning the files such that matching parts and corresponding sections are facing each other.

How to interpret the output:

  • Red lines are different or missing in the other file
  • Orange lines are headers or footers of sections containing red lines. They do have a matching line in the other configuration. Yet, they are highlighted because you have to type them to enter the right configuration context to configure or fix red lines (in other words, orange highlights the location of red lines in the configuration hierarchy)
  • Blue icons are warnings about reordered lines: while the order of line in a given section is most of the time not meaningful, there are a few exceptions such as old IOS access-lists or IOS-XR route-policies, to which you must pay attention (hence the warning)
  • At the top, two text zones give the raw unformatted diff (just red and orange lines) which you can easily copy/paste

NB: this tool infers the hierarchical structure of configurations from their indentation (spaces at the beginning of the line), so it is essential that indentation of input files follows the format of a show run.

Use Cases

  • Comparing versions of the configuration for a given device and assess the evolution over time
  • Verifying the changes performed in the network during a maintenance window
  • Comparing configurations of devices with similar roles to work towards better standardisation
  • Comparing the actual show run to the expected configuration (for example generated from the initial network design)

Technologies covered

Because it is based almost only on indentation, this tool is platform agnostic: it can be used for configuration files of IOS, IOS-XE, IOS-XR, NX-OS...

Tool developers

  • Cedric Dessez – Network Consulting Engineer, Cisco Advanced Services – Amsterdam (NL)
  • Guillaume Mulocher – Network Consulting Engineer, Cisco Advanced Services – Reading (UK)

Feedback

Your feedback is valuable to help us improve the tool. Do not hesitate to add a comment using the icon in the upper right corner of the page.

Comments
shinji7800
Level 1
Level 1
hello thanks for sharing. I tried to use it but after login I have blank page it is normal ?
Tcs network
Level 1
Level 1

I am not able to upload the file now. It was working for past 2 weeks. Suddenly it throws error from today.

jahedgecoe1
Level 1
Level 1

I am getting a blank page when trying to use the link that should direct me to the tool. Is it also a possibility to compare configurations of two different devices? this way you can see if they are standardized?

why this tool not active now ? any idea 

Rich R
VIP
VIP

@Semil thai Kandy 

Thank you for visiting the Configuration Diff BETA tool!

Unfortunately, we have had to make the hard decision to retire this BETA tool. Fear not, we are constantly developing more tools to facilitate your support needs. Check out our Tools Catalog to see what's currently available.

Config diff functionality is already integrated into the 9800 series WLCs GUI to compare startup and running configurations before saving. 

And IOS-XE has for a long time supported "Contextual Configuration Diff Utility":
https://www.cisco.com/c/en/us/td/docs/routers/ios/config/17-x/syst-mgmt/b-system-management/m_cm-config-diff-0.html

If you just want to compare 2 arbitrary config files there are dozens of file comparison tools out there - just do a search and try them to see what works best for you.  Even Notepad++ has a compare plug-in https://github.com/pnedev/compare-plugin
and some users have written UDL definitions for Cisco configs: https://www.google.co.uk/search?q=notepad%252B%252B+cisco+ios

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking for a $25 gift card