I used WebCVS previously. That allowed me to compare versions nicely. That may not be exactly what youâre looking for, though.
Conceptually, itâs possible to script it with Perl or something like that. In the discussion below, I refer to X and Y, where X is the base version and Version Y is version (X-5).
Write a script that pulls version X and saves it as a unique filename (vX.txt). Do the same for version Y (vY.txt). Then, do a diff of versions X and Y with the output going to diffXY.txt. Grep that output for the code relevant to a zone change or other configuration change you are looking for. Lastly, the script could send an email, with the file diffXY.txt attached, to a designated email address. You could even script this to run just after rancid finishes a poll, but that would take more scripting.
Just a few thoughts.
--Chris
Chris GauthierSenior Network Engineer | comScore, Inc.
o +1 503-331-***@comscore.com
317 SW Alder Street, Suite 700 | Portland | OR97204
............................................................................................................................................................................................................................
From: Rancid-discuss <rancid-discuss-***@shrubbery.net> on behalf of Matthew Goeres <***@gmail.com>
Date: Thursday, October 19, 2017 at 10:38 AM
To: "rancid-***@shrubbery.net" <rancid-***@shrubbery.net>
Subject: [rancid] Revision Searches
Looking for ideas on how I can search back revisions on multiple devices.
Example: I have a folder with around 200 devices in it. I would like to look back at say the last 5 revisions for all devices and grep those changes for something like a zone change. Anyone had some ideas on how to do this with CVS?