Yes, it's fairly easy to filter out individual lines by editing the
filter inside the perl scripts to make them go away. I have done this
many, many times. The only trick is that when you upgrade you might lose
your change, so save a copy or diff that you can re-apply later.
In this case, the place where you'd put the filter is in
~rancid/bin/hrancid in the routine "ShowTechTransceivers"
Right at the top where it has 'next if (...)'
either above or below that you can add a line that says something like
next if (/thing I want to match here/) which will skip that line.
On 2/19/2018 9:12 AM, Aleksander Vines wrote:
> Hi all,
> Is there a way of altering the output of rancid, or which commands it
> runs, or how the 'diff'ing' works?
> We seem to have a problem with the latest hp software, where 'show
> tech transceivers' seems to include a call to 'show time'. Hence it
> notices a diff in the output timestamp and and it's fairly annoying if
> you actually want to keep track of changes.
> Aleksander Vines
> Rancid-discuss mailing list
Fairless Hills, PA
Rancid-discuss mailing list