[rancid] Re: Filtering files pre-checkin
Mike Ashcraft
mashcraft at omniture.com
Fri Sep 5 04:42:28 UTC 2008
The issue at hand is that rancid can't be everything for everyone out of the box. There are too many opinions out there as to what should/should not be included. And everyone has valid reasoning for their position. This leaves the admin to make a few code adjustments on their own which are easily accomplished.
You can modify bin/rancid (or the appropriate script if your device is not a cisco) so that lines are not output based on regular expression matches. You could also comment out the router command that generates the undesired output. There are a number of these exceptions already in the code if you need a sample code snippet. Some common exceptions are even triggered by environmental variables to make them easy to turn on/off.
Another option would be to add some code to bin/control_rancid to strip the undesired content before the diff is generated (to prevent e-mail) or before the file is checked in.
Mike
-----Original Message-----
From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Jonathan Hansen
Sent: Thursday, September 04, 2008 2:45 PM
To: rancid-discuss at shrubbery.net
Subject: [rancid] Filtering files pre-checkin
I am trying to find a way to filter a few lines like temperature and
up time from the SVN checkin so that I only see actual changes.
I have been able to filter them in the update emails, but not the
checkin itself.
Anyone have a suggestion on how to do this?
Thanks,
Jonathan
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
More information about the Rancid-discuss
mailing list