[rancid] Can I search (a la grep) a devices change history?
on at LEFerguson.com
on at LEFerguson.com
Wed Feb 11 19:36:07 UTC 2026
Almost perfect, I need to look closely and see if I can add a version or date to it, but it worked great (first is 'cd' not cat for those following along at home).
But that gets me close enough even if I can't find the version.
Thank you!!!
Linwood
-----Original Message-----
From: heasley <heas at shrubbery.net>
Sent: Wednesday, February 11, 2026 2:33 PM
To: on at LEFerguson.com
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Can I search (a la grep) a devices change history?
Wed, Feb 11, 2026 at 04:33:22PM +0000, on at LEFerguson.com:
> Some searching seems to yield the answer "no" but....
>
> I am using CVS and ViewVC.
>
> Is there a way to search the change history of a device using grep (or something similar).
>
> I want to pull out one defined line (notably flash free space) over time, and have about 400 entries for each of three devices that are of interest. It's in there, it's easily identified, but apparently the saved configs are not readily accessible as text.
the data is all just text, though not really in a convenient format.
something like:
cat ~rancid/<group>/configs
fgrep -r "<some text to match>" `cat CVS/Root`/`cat CVS/Respository
format as you wish from there.
It would be more complicated for svn or git, but this is a quick/dirty way for CVS.
More information about the Rancid-discuss
mailing list