[rancid] Revision Searches

Gauthier, Chris cgauthier at comscore.com
Thu Oct 19 17:48:10 UTC 2017


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-2704cgauthier at comscore.com
317 SW Alder Street, Suite 700 | Portland | OR97204
............................................................................................................................................................................................................................

From: Rancid-discuss <rancid-discuss-bounces at shrubbery.net> on behalf of Matthew Goeres <mgoeres at gmail.com>
Date: Thursday, October 19, 2017 at 10:38 AM
To: "rancid-discuss at shrubbery.net" <rancid-discuss at 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20171019/578460a5/attachment.html>


More information about the Rancid-discuss mailing list