<div dir="ltr">Can someone please look at <a href="http://iosxr.pm">iosxr.pm</a> and see if a similar change is also required? <div><br></div><div>We get a lot of unwanted diffs there for growing files.</div><div><br></div><div>Here:</div><div><div class="inbox-inbox-del" style="color:red;font-family:monospace;font-size:13.3333px;white-space:pre"><div class="inbox-inbox-ctx" style="color:rgb(51,51,51);font-size:13.3333px"> !Flash: harddiska: 3093 -rw- 32 Thu Jul 28 15:47:35 2016 env_hist</div><div class="inbox-inbox-ctx" style="color:rgb(51,51,51);font-size:13.3333px"> !Flash: harddiska: 3094 -rw- 2996 Tue Oct 11 23:18:49 2016 env_cont</div><div class="inbox-inbox-ctx" style="color:rgb(51,51,51);font-size:13.3333px"> !Flash: harddiska: 3095 -rw- 32 Thu Jul 28 15:47:43 2016 genstr_hist</div><div class="inbox-inbox-del" style="font-size:13.3333px">-!Flash: harddiska: 3096 -rw- 977158 Mon Jan 23 16:01:55 2017 genstr_cont</div><div class="inbox-inbox-add" style="color:green;font-size:13.3333px">+!Flash: harddiska: 3096 -rw- 980538 Mon Jan 23 16:56:16 2017 genstr_cont</div><div class="inbox-inbox-ctx" style="color:rgb(51,51,51);font-size:13.3333px"> !Flash: harddiska: 3097 -rw- 32 Thu Jul 28 15:47:39 2016 errmsg_hist</div><div class="inbox-inbox-ctx" style="color:rgb(51,51,51);font-size:13.3333px"> !Flash: harddiska: 3098 -rw- 15531 Wed Oct 12 01:12:37 2016 errmsg_cont</div><div class="inbox-inbox-ctx" style="color:rgb(51,51,51);font-size:13.3333px"> !Flash: harddiska: 3099 -rw- temp_static_data</div>
</div></div><div class="inbox-inbox-add" style="color:green;font-family:monospace;font-size:13.3333px;white-space:pre"><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;white-space:normal">Here:</span>
</div><div class="inbox-inbox-add"><div class="inbox-inbox-del" style="color:red;font-family:monospace;font-size:13.3333px;white-space:pre"><div class="inbox-inbox-ctx" style="color:rgb(51,51,51);font-size:13.3333px"> !Flash: harddiska: 3176 -rw- 1892 Thu Oct 20 03:50:48 2016 temp_hist</div><div class="inbox-inbox-ctx" style="color:rgb(51,51,51);font-size:13.3333px"> !Flash: harddiska: 3177 -rw- temp_cont</div><div class="inbox-inbox-ctx" style="color:rgb(51,51,51);font-size:13.3333px"> !Flash: harddiska: 3178 -rw- 1124 Wed Sep 30 00:54:09 2015 volt_static_data</div><div class="inbox-inbox-del" style="font-size:13.3333px">-!Flash: harddiska: 3179 -rw- 7800 Mon Nov 14 03:39:04 2016 volt_hist</div><div class="inbox-inbox-add" style="color:green;font-size:13.3333px">+!Flash: harddiska: 3179 -rw- 8260 Tue Jan 24 02:48:19 2017 volt_hist</div><div class="inbox-inbox-ctx" style="color:rgb(51,51,51);font-size:13.3333px"> !Flash: harddiska: 3180 -rw- volt_cont</div><div class="inbox-inbox-ctx" style="color:rgb(51,51,51);font-size:13.3333px"> !Flash: harddiska: 3181 -rw- 514 Sun Jan 15 22:25:01 2017 errmsg_hist</div><div class="inbox-inbox-ctx" style="color:rgb(51,51,51);font-size:13.3333px"> !Flash: harddiska: 3182 -rw- 75802 Tue Jan 24 00:18:13 2017 errmsg_cont</div>
<span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;white-space:normal">And here:</span></div><div class="inbox-inbox-del"><div class="inbox-inbox-ctx" style="color:rgb(51,51,51);font-family:monospace;font-size:13.3333px;white-space:pre"> !Flash: harddiska: 3179 -rw- 7800 Mon Nov 14 03:39:04 2016 volt_hist</div><div class="inbox-inbox-ctx" style="color:rgb(51,51,51);font-family:monospace;font-size:13.3333px;white-space:pre"> !Flash: harddiska: 3180 -rw- volt_cont</div><div class="inbox-inbox-ctx" style="color:rgb(51,51,51);font-family:monospace;font-size:13.3333px;white-space:pre"> !Flash: harddiska: 3181 -rw- 514 Sun Jan 15 22:25:01 2017 errmsg_hist</div><div class="inbox-inbox-del" style="color:red;font-family:monospace;font-size:13.3333px;white-space:pre">-!Flash: harddiska: 3182 -rw- 71876 Mon Jan 23 15:43:30 2017 errmsg_cont</div><div class="inbox-inbox-add" style="color:green;font-family:monospace;font-size:13.3333px;white-space:pre">+!Flash: harddiska: 3182 -rw- 73084 Mon Jan 23 16:59:46 2017 errmsg_cont</div><div class="inbox-inbox-ctx" style="color:rgb(51,51,51);font-family:monospace;font-size:13.3333px;white-space:pre"> !Flash: harddiska: 3183 -rw- 24 Tue Jun 4 08:13:53 2013 diag_hist</div><div class="inbox-inbox-ctx" style="color:rgb(51,51,51);font-family:monospace;font-size:13.3333px;white-space:pre"> !Flash: harddiska: 3184 -rw- 24 Tue Jun 4 08:13:55 2013 diag_cont</div>
<div class="inbox-inbox-del"><br></div>In <a href="http://iosxr.pm">iosxr.pm</a> sub DirSlotN I see:</div><div class="inbox-inbox-del"><div class="inbox-inbox-del"><font face="monospace"> # filter frequently changing files from IOX bootflash, hardiska,</font></div><div class="inbox-inbox-del"><font face="monospace"> # and nvram</font></div><div class="inbox-inbox-del"><font face="monospace"> if ($dev =~ /(bootflash|harddisk|nvram)/) {</font></div><div class="inbox-inbox-del"><font face="monospace"> if (/(ce_switch.log|temp_cont|temp_static_data|uptime_cont|volt_cont)\s*$/) {</font></div><div class="inbox-inbox-del"><font face="monospace"> # change</font></div><div class="inbox-inbox-del"><font face="monospace"> # 57 -rw- 23100 <no date> volt_cont</font></div><div class="inbox-inbox-del"><font face="monospace"> # 614788 drwx 4096 Fri Aug 20 12:06:25 2010 temp_cont</font></div><div class="inbox-inbox-del"><font face="monospace"> # to</font></div><div class="inbox-inbox-del"><font face="monospace"> # 57 -rw- <no date> volt_cont</font></div><div class="inbox-inbox-del"><font face="monospace"> # 614788 drwx temp_cont</font></div></div>So perhaps that second if statement needs to catch a few other filenames please. We are running rancid-3.2-2 from here: <a href="http://pkgs.fedoraproject.org/cgit/rpms/rancid.git/?h=epel7">http://pkgs.fedoraproject.org/cgit/rpms/rancid.git/?h=epel7</a> </div><div class="inbox-inbox-add" style="color:green;font-family:monospace;font-size:13.3333px;white-space:pre"><br></div><div>Thanks,</div><div>Dan</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 24, 2017 at 10:07 AM Piegorsch, Weylin William <<a href="mailto:weylin@bu.edu">weylin@bu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Lee. I haven’t looked yet, and probably won’t until February at the earliest. I can copy/paste that code, replacing “log” for “debug” on the pasted portion. I’ll try it out and see how it works. If that works, is that something that can be forward ported into new versions of code? I’m a network engineer, my group doesn’t have software development as a core competency, but I’m willing to do this if there’s “vendor” support (to use the generic term my boss uses) in future versions.<br class="gmail_msg">
weylin<br class="gmail_msg">
<br class="gmail_msg">
On 1/22/17, 18:09, "Lee" <<a href="mailto:ler762@gmail.com" class="gmail_msg" target="_blank">ler762@gmail.com</a>> wrote:<br class="gmail_msg">
<br class="gmail_msg">
On 1/21/17, Piegorsch, Weylin William <<a href="mailto:weylin@bu.edu" class="gmail_msg" target="_blank">weylin@bu.edu</a>> wrote:<br class="gmail_msg">
> Thanks Lee. Is <a href="http://ios.pm" rel="noreferrer" class="gmail_msg" target="_blank">ios.pm</a> called for NX-OS devices (“cisco-nx”)? I tried<br class="gmail_msg">
> looking through <a href="http://nxos.pm" rel="noreferrer" class="gmail_msg" target="_blank">nxos.pm</a> but didn’t see anything equivalent. I’m using<br class="gmail_msg">
> v3.4.1 if it makes a difference.<br class="gmail_msg">
<br class="gmail_msg">
It looks like 3.4.1 already has code to blank out the file size &<br class="gmail_msg">
timestamp. Starting at line 509 of rancid-3.4.1/lib/rancid/<a href="http://nxos.pm" rel="noreferrer" class="gmail_msg" target="_blank">nxos.pm</a><br class="gmail_msg">
<br class="gmail_msg">
# This routine parses "dir /all ((disk|slot)N|bootflash|nvram):"<br class="gmail_msg">
sub DirSlotN {<br class="gmail_msg">
<br class="gmail_msg">
down a bit further it's got:<br class="gmail_msg">
next if (/BufferMonitor-1HourData/);<br class="gmail_msg">
if (/ log\/$/) {<br class="gmail_msg">
# change<br class="gmail_msg">
# 8192 Jan 08 14:05:05 2015 log/<br class="gmail_msg">
# to<br class="gmail_msg">
# log/<br class="gmail_msg">
if (/(\s*\d+\s+)(\S+ \d+\s+\d+:\d+:\d+ \d+)(.*)/) {<br class="gmail_msg">
my($a, $dt, $rem) = ($1, $2, $3);<br class="gmail_msg">
my($dtl) = length($dt);<br class="gmail_msg">
my($fmt) = "%s%-". $dtl ."s%s\n";<br class="gmail_msg">
$_ = sprintf($fmt, $a, "", $rem);<br class="gmail_msg">
}<br class="gmail_msg">
}<br class="gmail_msg">
<br class="gmail_msg">
Regards,<br class="gmail_msg">
Lee<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
> weylin<br class="gmail_msg">
><br class="gmail_msg">
> On 1/21/17, 13:33, "Lee" <<a href="mailto:ler762@gmail.com" class="gmail_msg" target="_blank">ler762@gmail.com</a>> wrote:<br class="gmail_msg">
><br class="gmail_msg">
> On 1/20/17, Piegorsch, Weylin William <<a href="mailto:weylin@bu.edu" class="gmail_msg" target="_blank">weylin@bu.edu</a>> wrote:<br class="gmail_msg">
> >> What we see on most of our Nexus infrastructure is every night:<br class="gmail_msg">
> >> ...<br class="gmail_msg">
> >> Which is quite annoying...<br class="gmail_msg">
> ><br class="gmail_msg">
> > If there’s a mechanism for removing these “debug” updates for NX-OS,<br class="gmail_msg">
> that<br class="gmail_msg">
> > would be *awesome.* I opened a TAC case about this, it’s not<br class="gmail_msg">
> something I<br class="gmail_msg">
> > have any kind level of control over, whatsoever.<br class="gmail_msg">
><br class="gmail_msg">
> Take a look at rancid/lib/rancid/<a href="http://ios.pm" rel="noreferrer" class="gmail_msg" target="_blank">ios.pm</a> - it has code to blank the<br class="gmail_msg">
> file size & timestamp so that updates to the file(s) don't cause<br class="gmail_msg">
> rancid to think the config has changed. Look for<br class="gmail_msg">
> # filter frequently changing files (dhcp & vlan database)<br class="gmail_msg">
> # change from:<br class="gmail_msg">
> # 9 -rw- 660 Jan 15 2011 20:43:54 vlan.dat<br class="gmail_msg">
> # 9 -rw- 660 Jan 15 2011 20:43:54 +00:00 vlan.dat<br class="gmail_msg">
> # to:<br class="gmail_msg">
> # -rw- vlan.dat<br class="gmail_msg">
> # -rw- vlan.dat<br class="gmail_msg">
> and adapt as needed<br class="gmail_msg">
><br class="gmail_msg">
> Regards,<br class="gmail_msg">
> Lee<br class="gmail_msg">
><br class="gmail_msg">
> ><br class="gmail_msg">
> > weylin<br class="gmail_msg">
> ><br class="gmail_msg">
> > On 1/19/17, 15:55, "Mischa Diehm" <<a href="mailto:mischa.diehm@unibas.ch" class="gmail_msg" target="_blank">mischa.diehm@unibas.ch</a>> wrote:<br class="gmail_msg">
> ><br class="gmail_msg">
> > Hi,<br class="gmail_msg">
> ><br class="gmail_msg">
> ><br class="gmail_msg">
> > On 13.01.17, 19:37, "heasley" <<a href="mailto:heas@shrubbery.net" class="gmail_msg" target="_blank">heas@shrubbery.net</a>> wrote:<br class="gmail_msg">
> ><br class="gmail_msg">
> ><br class="gmail_msg">
> > >It causes nevery-ending changes in the config as ports become<br class="gmail_msg">
> > >active/inactive,<br class="gmail_msg">
> > >eg: someone disconnects or powers-off equipment. and in the case<br class="gmail_msg">
> of<br class="gmail_msg">
> > VTP,<br class="gmail_msg">
> > >it<br class="gmail_msg">
> > >potentially is network wide. if you wanted to monitor such<br class="gmail_msg">
> things,<br class="gmail_msg">
> > its<br class="gmail_msg">
> > >probably best done in a NMS, where you'd catch all such changes.<br class="gmail_msg">
> > ><br class="gmail_msg">
> > >rancid 3.5 added for some modules:<br class="gmail_msg">
> > ><br class="gmail_msg">
> > ># FILTER_OSC determines if oscillating data such as keys,<br class="gmail_msg">
> passwords,<br class="gmail_msg">
> > etc<br class="gmail_msg">
> > >are<br class="gmail_msg">
> > ># filtered from configs by the value set (NO | YES). FILTER_PWDS<br class="gmail_msg">
> may<br class="gmail_msg">
> > >override<br class="gmail_msg">
> > ># this. see rancid.conf(5).<br class="gmail_msg">
> > >#FILTER_OSC=YES; export FILTER_OSC<br class="gmail_msg">
> > ><br class="gmail_msg">
> > >such a thing could be dependent upon this configuration, but<br class="gmail_msg">
> again I<br class="gmail_msg">
> > do<br class="gmail_msg">
> > >not<br class="gmail_msg">
> > >see the point.<br class="gmail_msg">
> ><br class="gmail_msg">
> > Thanks for the clarification. This really kind of depends on<br class="gmail_msg">
> where<br class="gmail_msg">
> > rancid<br class="gmail_msg">
> > is run. In a campus/client env. I see your point but we also have<br class="gmail_msg">
> more<br class="gmail_msg">
> > static parts where this is usesful information. There it actually<br class="gmail_msg">
> is<br class="gmail_msg">
> > also<br class="gmail_msg">
> > useful to see what ports actually have changed. But you are right<br class="gmail_msg">
> maybe<br class="gmail_msg">
> > no<br class="gmail_msg">
> > worth it overall.<br class="gmail_msg">
> > But thanks for pointing out the OSC part. What we see on most of<br class="gmail_msg">
> our<br class="gmail_msg">
> > Nexus<br class="gmail_msg">
> > infrastructure is every night:<br class="gmail_msg">
> ><br class="gmail_msg">
> > - !Flash: debug: 124053 Jan 18 05:38:00 2017<br class="gmail_msg">
> bootvar_debug.log<br class="gmail_msg">
> > - !Flash: debug: 6 Jan 18 05:38:00 2017<br class="gmail_msg">
> > bootvar_debug.meta<br class="gmail_msg">
> > + !Flash: debug: 124872 Jan 19 05:38:05 2017<br class="gmail_msg">
> bootvar_debug.log<br class="gmail_msg">
> > + !Flash: debug: 6 Jan 19 05:38:05 2017<br class="gmail_msg">
> > bootvar_debug.meta<br class="gmail_msg">
> ><br class="gmail_msg">
> ><br class="gmail_msg">
> > And this:<br class="gmail_msg">
> > - !Flash: logflash: 87092 Jan 17 05:43:42 2017<br class="gmail_msg">
> accounting_log<br class="gmail_msg">
> > + !Flash: logflash: 136367 Jan 18 05:43:35 2017<br class="gmail_msg">
> accounting_log<br class="gmail_msg">
> ><br class="gmail_msg">
> ><br class="gmail_msg">
> ><br class="gmail_msg">
> > Which is quite annoying...<br class="gmail_msg">
> ><br class="gmail_msg">
> > >if you're not using VTP and its not including the vlan stuff, i<br class="gmail_msg">
> do want<br class="gmail_msg">
> > to<br class="gmail_msg">
> > >fix that.<br class="gmail_msg">
> ><br class="gmail_msg">
> > Well then you have to fix it for this as said:<br class="gmail_msg">
> > XXX-cc# show vtp status<br class="gmail_msg">
> > Service not enabled<br class="gmail_msg">
> ><br class="gmail_msg">
> ><br class="gmail_msg">
> > Cheers,<br class="gmail_msg">
> > Mischa<br class="gmail_msg">
> ><br class="gmail_msg">
> > ><br class="gmail_msg">
> > >> Yes. Which is yet another reason why it's so nice having the<br class="gmail_msg">
> source<br class="gmail_msg">
> > -<br class="gmail_msg">
> > >> it's easy to make trivial changes like that. Or adding<br class="gmail_msg">
> commands<br class="gmail_msg">
> > like<br class="gmail_msg">
> > >> 'show vlan all-ports'<br class="gmail_msg">
> > >><br class="gmail_msg">
> > >> Regards,<br class="gmail_msg">
> > >> Lee<br class="gmail_msg">
> > >><br class="gmail_msg">
> > >> _______________________________________________<br class="gmail_msg">
> > >> Rancid-discuss mailing list<br class="gmail_msg">
> > >> <a href="mailto:Rancid-discuss@shrubbery.net" class="gmail_msg" target="_blank">Rancid-discuss@shrubbery.net</a><br class="gmail_msg">
> > >> <a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss" rel="noreferrer" class="gmail_msg" target="_blank">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a><br class="gmail_msg">
> ><br class="gmail_msg">
> ><br class="gmail_msg">
> > _______________________________________________<br class="gmail_msg">
> > Rancid-discuss mailing list<br class="gmail_msg">
> > <a href="mailto:Rancid-discuss@shrubbery.net" class="gmail_msg" target="_blank">Rancid-discuss@shrubbery.net</a><br class="gmail_msg">
> > <a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss" rel="noreferrer" class="gmail_msg" target="_blank">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
Rancid-discuss mailing list<br class="gmail_msg">
<a href="mailto:Rancid-discuss@shrubbery.net" class="gmail_msg" target="_blank">Rancid-discuss@shrubbery.net</a><br class="gmail_msg">
<a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss" rel="noreferrer" class="gmail_msg" target="_blank">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a></blockquote></div>