[rancid] Filtering out flash dir and time change events

Walker, Alan awalker at corcentric.com
Thu Jul 27 20:29:55 UTC 2017


Thank you all for the suggestions.

I looked into disabling the timestamps with the "terminal exec prompt timestamp" command but this is only supported on some of my devices, and on those devices it was already disabled so I don't think that is related to the changes I'm seeing reported by Rancid.

I'm not much a coder and I don't have a ton of Linux experience so I don't know that I would be able to dig through the code too much but I would be willing to try. I did search for some of those files but for my particular version of either Linux or Rancid, they don't appear to exist. This includes /lib/rancid/, /etc/rancid.types.base. This software was installed when I got here so it may well be that it needs to be updated to a newer version.

Thanks again.




Corcentric
Alan Walker | Network Engineer
457 Haddonfield Road, Suite 220 | Cherry Hill, NJ 08002
O (856) 406-3746 | F
awalker at corcentric.com | www.corcentric.com

-----Original Message-----
From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of rancid-discuss-request at shrubbery.net
Sent: Thursday, July 27, 2017 4:00 PM
To: rancid-discuss at shrubbery.net
Subject: Rancid-discuss Digest, Vol 81, Issue 18

Send Rancid-discuss mailing list submissions to
rancid-discuss at shrubbery.net

To subscribe or unsubscribe via the World Wide Web, visit
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
or, via email, send a message with subject or body 'help' to
rancid-discuss-request at shrubbery.net

You can reach the person managing the list at
rancid-discuss-owner at shrubbery.net

When replying, please edit your Subject line so it is more specific than "Re: Contents of Rancid-discuss digest..."


Today's Topics:

   1. Filtering out flash dir and time change events (Walker, Alan)
   2. Re: Filtering out flash dir and time change events (Doug Hughes)
   3. Re: Filtering out flash dir and time change events (Lee)
   4. Re: Filtering out flash dir and time change events (heasley)


----------------------------------------------------------------------

Message: 1
Date: Thu, 27 Jul 2017 14:40:07 +0000
From: "Walker, Alan" <awalker at corcentric.com>
To: "rancid-discuss at shrubbery.net" <rancid-discuss at shrubbery.net>
Subject: [rancid] Filtering out flash dir and time change events
Message-ID:
<f5f113cd9fba459f90e32192520c2b65 at phlex02.aq.ameriquestcorp.com>
Content-Type: text/plain; charset="utf-8"

Hi All,

I?ve been using Rancid for a while now and it seems to work pretty well but one thing I?m seeing on certain new Cisco devices such as ISR?s, Nexus, etc are displaying changes for the flash directory changing in size and the time of the device changing. These events come up like this:


- !Flash: bootflash: 7113240576 bytes total (6335688704 bytes free)

+ !Flash: bootflash: 7113240576 bytes total (6335643648 bytes free)


- !Time: Thu Jul 27 07:12:05 2017

+ !Time: Thu Jul 27 08:12:10 2017



Is there anyway to filter out these types of changes so that I only see more substantial changes?



Thanks.





[Corcentric]<http://www.corcentric.com>
Alan Walker | Network Engineer
457 Haddonfield Road, Suite 220 | Cherry Hill, NJ 08002 O (856) 406-3746 | F awalker at corcentric.com <mailto:awalker at corcentric.com> | www.corcentric.com<http://www.corcentric.com>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170727/c427cef0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image6e048f.PNG
Type: image/png
Size: 1484 bytes
Desc: image6e048f.PNG
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170727/c427cef0/attachment-0001.png>

------------------------------

Message: 2
Date: Thu, 27 Jul 2017 10:53:12 -0400
From: Doug Hughes <doug.hughes at keystonenap.com>
To: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Filtering out flash dir and time change events
Message-ID: <9042231d-c0a7-a737-2337-899e3adca915 at keystonenap.com>
Content-Type: text/plain; charset="utf-8"

I don't recall where !Time comes from exactly (search in lib/rancid/ios.pm)


But Flash comes from etc/rancid.types.base:
cisco;command;ios::ShowFlash;show flash

You could either comment out that line and then remember to do the same when you upgrade, or you could make a rancid.types.conf and override the entire cisco;command;ios block

On 7/27/2017 10:40 AM, Walker, Alan wrote:
>
> Hi All,
>
>
>
> I?ve been using Rancid for a while now and it seems to work pretty
> well but one thing I?m seeing on certain new Cisco devices such as
> ISR?s, Nexus, etc are displaying changes for the flash directory
> changing in size and the time of the device changing. These events
> come up like this:
>
>
>
> - !Flash: bootflash: 7113240576 bytes total (6335688704 bytes free)
>
> + !Flash: bootflash: 7113240576 bytes total (6335643648 bytes free)
>
>
>
> - !Time: Thu Jul 27 07:12:05 2017
>
> + !Time: Thu Jul 27 08:12:10 2017
>
>
>
> Is there anyway to filter out these types of changes so that I only
> see more substantial changes?
>
>
>
> Thanks.
>
>
>
>
>
> Corcentric <http://www.corcentric.com> Alan Walker | Network Engineer
> 457 Haddonfield Road, Suite 220 | Cherry Hill, NJ 08002 O (856)
> 406-3746 | F awalker at corcentric.com<mailto:awalker at corcentric.com>|
> www.corcentric.com <http://www.corcentric.com>
>
>
>
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss

--
Doug Hughes
Keystone NAP
Fairless Hills, PA
1.844.KEYBLOCK (539.2562)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170727/e4ae780a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image6e048f.PNG
Type: image/png
Size: 1484 bytes
Desc: not available
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170727/e4ae780a/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keystone-nap.png
Type: image/png
Size: 3476 bytes
Desc: not available
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170727/e4ae780a/attachment-0003.png>

------------------------------

Message: 3
Date: Thu, 27 Jul 2017 11:51:23 -0400
From: Lee <ler762 at gmail.com>
To: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Filtering out flash dir and time change events
Message-ID:
<CAD8GWstptUC+YVvvRh9qQ3NM+P=3HYFkuR7+4DiSy-Vt66aOVw at mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

On 7/27/17, Doug Hughes <doug.hughes at keystonenap.com> wrote:
> I don't recall where !Time comes from exactly (search in
> lib/rancid/ios.pm)
>
> But Flash comes from etc/rancid.types.base:
> cisco;command;ios::ShowFlash;show flash
>
> You could either comment out that line and then remember to do the
> same when you upgrade, or you could make a rancid.types.conf and
> override the entire cisco;command;ios block

How comfortable are you with modifying the code?

Take a look at rancid 3.6.2 - sub ShowFlash in lib/rancid/ios.pm looks for
  if (/(\d+) bytes (available|total) \((\d+) bytes used\)/) { and changes the line to  NN [GMK]B free

It doesn't seem like it would be too hard to change  NNN bytes total (NNN bytes free) to  NN [GMK]B total (NN [GMK]B free)

Regards,
Lee


> On 7/27/2017 10:40 AM, Walker, Alan wrote:
>>
>> Hi All,
>>
>> I?ve been using Rancid for a while now and it seems to work pretty
>> well but one thing I?m seeing on certain new Cisco devices such as
>> ISR?s, Nexus, etc are displaying changes for the flash directory
>> changing in size and the time of the device changing. These events
>> come up like this:
>>
>>
>> - !Flash: bootflash: 7113240576 bytes total (6335688704 bytes free)
>>
>> + !Flash: bootflash: 7113240576 bytes total (6335643648 bytes free)
>>
>>
>>
>> - !Time: Thu Jul 27 07:12:05 2017
>>
>> + !Time: Thu Jul 27 08:12:10 2017
>>
>>
>> Is there anyway to filter out these types of changes so that I only
>> see more substantial changes?
>>
>> Thanks.
>>
>> Corcentric <http://www.corcentric.com> Alan Walker | Network Engineer
>> 457 Haddonfield Road, Suite 220 | Cherry Hill, NJ 08002 O (856)
>> 406-3746 | F awalker at corcentric.com<mailto:awalker at corcentric.com>|
>> www.corcentric.com <http://www.corcentric.com>
>
> --
> Doug Hughes
> Keystone NAP
> Fairless Hills, PA
> 1.844.KEYBLOCK (539.2562)



------------------------------

Message: 4
Date: Thu, 27 Jul 2017 17:44:29 +0000
From: heasley <heas at shrubbery.net>
To: Doug Hughes <doug.hughes at keystonenap.com>
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Filtering out flash dir and time change events
Message-ID: <20170727174429.GD53650 at shrubbery.net>
Content-Type: text/plain; charset=us-ascii

Thu, Jul 27, 2017 at 10:53:12AM -0400, Doug Hughes:
> > - !Time: Thu Jul 27 07:12:05 2017
> >
> > + !Time: Thu Jul 27 08:12:10 2017
> >

this is the stupid command timestamping.  on ios-xr

RP/0/RSP0/CPU0:device#term e p time
RP/0/RSP0/CPU0:device#show ver
Thu Jul 27 17:42:21.981 UTC

just turn it off on the device.

for ios-exr's admin bug, there is a filte in the alpha rancid code.



------------------------------

Subject: Digest Footer

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

------------------------------

End of Rancid-discuss Digest, Vol 81, Issue 18
**********************************************


More information about the Rancid-discuss mailing list