Re: [rancid] router config diffs

2018-10-21 Thread heasley
Sun, Oct 21, 2018 at 05:45:41PM -0400, Lee:
> On 10/21/18, Wayne Eisenberg  wrote:
> > Hi,
> >
> > I'm using SVN, not CVS.
> >
> > I probably didn't do a good job of explaining. I'm not getting the same diff
> > over and over. They are new versions, valid diffs. I don't see how svn could
> > get out of sync, when the crontab was inactive (everything rem'ed out) so
> > there was no activity during the upgrade. Before the upgrade, I know there
> > were router config changes taking place and I did not get an email about
> > them. Now I do. So I'm hunting for how to turn the notifications off.
> 
> I'd go with changing control_rancid.  Search for
> 
> # Mail out the diffs (if there are any).
> if [ -s $TMP.diff ] ; then
> 
> which looks like the line to change to turn notifications off.  Or
> check the FAQ:
> Q. I just want to store configrurations, I do not want to receive diffs.  How
>can I accomplish this?
> A. Use procmail to filter them out of your inbox.
>OR, redirect the mail aliases in your MTA's aliases file or database to a
>mailman list with no subscribers.
>OR, redirect the mail aliases to /dev/null.
>OR, set DIFFSCRIPT in rancid.conf to something that eats it's input, such
>as "dd of=/dev/null bs=16k".

Ja.  or if it is a diff repeatedly of something that ought to be ignored,
share examples.

> Regards,
> Lee
> >
> > I'm also noticing a .cvsignore file in the 'configs' folder in WebSVN. Not
> > sure why that is there or if I should care. It wasn't there before the
> > upgrade.

its also used for svn

> > Thanks,
> > Wayne
> >
> >
> > -Original Message-
> > From: heasley [mailto:h...@shrubbery.net]
> > Sent: Friday, October 19, 2018 11:47 AM
> > To: Wayne Eisenberg 
> > Cc: 'rancid-discuss@shrubbery.net' 
> > Subject: Re: [rancid] router config diffs
> >
> > Fri, Oct 19, 2018 at 05:54:48AM +, Wayne Eisenberg:
> >> I just upgraded from 3.1 to 3.8, and all of a sudden I am getting emails
> >> every time there is a change in the config - 'router config diff' emails.
> >> I must have tweaked something in the previous version so that I wasn't
> >> getting them for every change in config, but I don't remember what. Is
> >> there a switch or conf variable that can turn it off? I just want to be
> >> notified if rancid can't contact a device.
> >>
> >
> > please see the FAQ S2 Q4.  your cvs working directory is most likely out of
> > sync somehow.
> >
> >
> > 
> >
> 
> ___
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss

___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] router config diffs

2018-10-21 Thread Lee
On 10/21/18, Wayne Eisenberg  wrote:
> Hi,
>
> I'm using SVN, not CVS.
>
> I probably didn't do a good job of explaining. I'm not getting the same diff
> over and over. They are new versions, valid diffs. I don't see how svn could
> get out of sync, when the crontab was inactive (everything rem'ed out) so
> there was no activity during the upgrade. Before the upgrade, I know there
> were router config changes taking place and I did not get an email about
> them. Now I do. So I'm hunting for how to turn the notifications off.

I'd go with changing control_rancid.  Search for

# Mail out the diffs (if there are any).
if [ -s $TMP.diff ] ; then

which looks like the line to change to turn notifications off.  Or
check the FAQ:
Q. I just want to store configrurations, I do not want to receive diffs.  How
   can I accomplish this?
A. Use procmail to filter them out of your inbox.
   OR, redirect the mail aliases in your MTA's aliases file or database to a
   mailman list with no subscribers.
   OR, redirect the mail aliases to /dev/null.
   OR, set DIFFSCRIPT in rancid.conf to something that eats it's input, such
   as "dd of=/dev/null bs=16k".

Regards,
Lee
>
> I'm also noticing a .cvsignore file in the 'configs' folder in WebSVN. Not
> sure why that is there or if I should care. It wasn't there before the
> upgrade.
>
> Thanks,
> Wayne
>
>
> -Original Message-
> From: heasley [mailto:h...@shrubbery.net]
> Sent: Friday, October 19, 2018 11:47 AM
> To: Wayne Eisenberg 
> Cc: 'rancid-discuss@shrubbery.net' 
> Subject: Re: [rancid] router config diffs
>
> Fri, Oct 19, 2018 at 05:54:48AM +, Wayne Eisenberg:
>> I just upgraded from 3.1 to 3.8, and all of a sudden I am getting emails
>> every time there is a change in the config - 'router config diff' emails.
>> I must have tweaked something in the previous version so that I wasn't
>> getting them for every change in config, but I don't remember what. Is
>> there a switch or conf variable that can turn it off? I just want to be
>> notified if rancid can't contact a device.
>>
>
> please see the FAQ S2 Q4.  your cvs working directory is most likely out of
> sync somehow.
>
>
> 
>

___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


Re: [rancid] router config diffs

2018-10-21 Thread Wayne Eisenberg
Hi,

I'm using SVN, not CVS.

I probably didn't do a good job of explaining. I'm not getting the same diff 
over and over. They are new versions, valid diffs. I don't see how svn could 
get out of sync, when the crontab was inactive (everything rem'ed out) so there 
was no activity during the upgrade. Before the upgrade, I know there were 
router config changes taking place and I did not get an email about them. Now I 
do. So I'm hunting for how to turn the notifications off.

I'm also noticing a .cvsignore file in the 'configs' folder in WebSVN. Not sure 
why that is there or if I should care. It wasn't there before the upgrade.

Thanks,
Wayne


-Original Message-
From: heasley [mailto:h...@shrubbery.net]
Sent: Friday, October 19, 2018 11:47 AM
To: Wayne Eisenberg 
Cc: 'rancid-discuss@shrubbery.net' 
Subject: Re: [rancid] router config diffs

Fri, Oct 19, 2018 at 05:54:48AM +, Wayne Eisenberg:
> I just upgraded from 3.1 to 3.8, and all of a sudden I am getting emails 
> every time there is a change in the config - 'router config diff' emails. I 
> must have tweaked something in the previous version so that I wasn't getting 
> them for every change in config, but I don't remember what. Is there a switch 
> or conf variable that can turn it off? I just want to be notified if rancid 
> can't contact a device.
>

please see the FAQ S2 Q4.  your cvs working directory is most likely out of 
sync somehow.




The information in this Internet e-mail (and any attachments) is confidential, 
may be legally privileged and is intended solely for the Addressee(s) named 
above. If you are not the intended recipient, or the employee or agent 
responsible for delivering it to the intended recipient, then any dissemination 
or copying of this e-mail (and any attachments) is prohibited and may be 
unlawful. If you received this e-mail in error, please immediately notify us by 
e-mail or telephone, then delete the message. Thank you.

___
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss