[rancid] Ignore dhcp-binding changes?

Chris Gauthier cgauthier at mapscu.com
Mon Feb 7 19:57:36 UTC 2011


> -----Original Message-----
> From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-
> bounces at shrubbery.net] On Behalf Of john heasley
> Sent: Monday, February 07, 2011 11:07 AM
> To: Nate Gagne
> Cc: rancid-discuss at shrubbery.net
> Subject: Re: [rancid] Ignore dhcp-binding changes?
> 
> Mon, Feb 07, 2011 at 07:48:00AM -0500, Nate Gagne:
> > We have a Cisco 1921 that is spitting out diffs whenever the
> > dhcp-binding table changes.  How can I get RANCID to ignore these?
> >
> > - !Flash: nvram:     6  -rw-        1291                    <no date>
> > dhcp-binding
> >
> > + !Flash: nvram:     6  -rw-        1163                    <no date>
> > dhcp-binding
> 
> it already filters dhcp files that match the filenames suggested by the cisco
> documentation.
> 
>         next if (/dhcp_[^. ]*\.txt/);

I would alter the line to:
           next if (/dhcp[\-\_][^. ]*\.txt/);
I am not sure if the - and the _ need to be escaped, but, never hurts to be explicit.

Chris

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CONFIDENTIALITY NOTICE
Attention: The information contained in this email and/or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any system and destroy any copies.


More information about the Rancid-discuss mailing list