[rancid] Re: Ignore memory changes?

Schmidt, Daniel dan.schmidt at uplinkdata.com
Wed Nov 4 18:53:52 UTC 2009


For those interested:

Until such time as there is a better fix, a quick work around is to
ignore those lines in the flash and ignore nvram entirely.  

Change line 707:
/\s+(multiple-fs|nv_hdr|vlan\.dat)$/ && next;
To:
/\s+(config.text|private-config.text|multiple-fs|nv_hdr|vlan\.dat)$/ &&
next;

And comment out nvram lines 1880,1893,1902.  

-----Original Message-----
From: john heasley [mailto:heas at shrubbery.net] 
Sent: Monday, November 02, 2009 11:48 PM
To: Schmidt, Daniel
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Re: Ignore memory changes?

Mon, Nov 02, 2009 at 04:07:51PM -0700, Schmidt, Daniel:
> Sorry, I see this was brought up before - don't mean to kick a dead
> horse!  I could easily remove nvram dirs from rancid, but I thought
> there should be more elegant solution.  
> 
> 95% of my spurious diffs could be eliminated by ignoring the
> startup-config & the bytes free.  

the premise is that you want to know if the device is filling or
if someone is writing files there.  to smooth the notices for the
former, we thought that could be rewritten in exponential format
(printf %E)....just havent done anything about it yet.

> Adding a simple "| exc startup-config|bytes free" should work, but you
> can't grep on a dir statement for some lousy reason.   But, aren't we
> skipping other stuff?  (Apologies, can't speak Perl)
> 
>  739         # filter frequently changing files from IOX bootflash
>  740         if ($dev =~ /bootflash/) {
>  741             next if (/temp_cont\s*$/);
>  742             next if (/uptime_cont\s*$/);
>  743         }
> 
> -----Original Message-----
> From: rancid-discuss-bounces at shrubbery.net
> [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Schmidt,
> Daniel
> Sent: Monday, November 02, 2009 8:53 AM
> To: rancid-discuss at shrubbery.net
> Subject: [rancid] Ignore memory changes?
> 
> Is there any way to ignore flash changes?  Sorry if this has been
asked
> before, I can't seem to find it.  
> 
> - !Flash:   475  -rwx        8271   Nov 1 2009 03:47:10 -07:00
> config.text
> + !Flash:   473  -rwx        8271   Nov 2 2009 03:45:18 -07:00
> config.text
> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> _______________________________________________
> 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