Discussion:
[rancid] Ignore memory changes?
Schmidt, Daniel
2009-11-02 15:52:45 UTC
Permalink
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
Schmidt, Daniel
2009-11-02 23:07:51 UTC
Permalink
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.

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-***@shrubbery.net
[mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Schmidt,
Daniel
Sent: Monday, November 02, 2009 8:53 AM
To: rancid-***@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
john heasley
2009-11-03 06:47:38 UTC
Permalink
Post by 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.
Post by Schmidt, Daniel
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-----
Daniel
Sent: Monday, November 02, 2009 8:53 AM
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
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Schmidt, Daniel
2009-11-04 18:53:52 UTC
Permalink
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:***@shrubbery.net]
Sent: Monday, November 02, 2009 11:48 PM
To: Schmidt, Daniel
Cc: rancid-***@shrubbery.net
Subject: Re: [rancid] Re: Ignore memory changes?
Post by 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.
Post by Schmidt, Daniel
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-----
Daniel
Sent: Monday, November 02, 2009 8:53 AM
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
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Continue reading on narkive:
Loading...