LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2011, 03:40 AM   #1
noony123
Member
 
Registered: Oct 2010
Posts: 167

Rep: Reputation: 0
File comparison tool


Hi all.

I need to monitor the configuration of 100+ sites (cisco routers) on almost daily basis. I will be saving the base config and then need to compare by downloading the config of every site.

I have used Rancid for downloading the config. Now i need some other tool ( i know rancid provides diff to check the difference but still).

The file comparison tool should ignore blank space, carriage line feeds, spaces, tabs.

Can someone pls refer me a good tool for that ?
 
Old 01-28-2011, 05:39 AM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Greetingz!

Just a few come to mind; grep, diff, maybe egrep. Oh, and sort!

Code:
grep -v "^#" /path/to/config1 | tee -a ~/config1
grep -v "^#" /path/to/config2 | tee -a ~/config2
diff ~/config1 ~/config2
You could also setup a "Version Control" repository like SVN or CVS to store the configuration files into, and then you could do compares between "versions".
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
more file comparison Stannjudy Linux - Newbie 7 04-15-2008 12:08 PM
RPM Report / Comparison tool muz_j Linux - Newbie 2 08-30-2007 09:32 PM
Looking for directory tree comparison tool joeljkp Linux - Server 5 02-22-2007 12:44 PM
Gimp Tool Kit gchar Widget comparison... chewysplace Programming 2 01-30-2004 04:30 PM
DIFF (or other file comparison) ciscokid1967 Linux - General 1 12-11-2003 02:13 PM


All times are GMT -5. The time now is 10:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration