Mailing List Archive

Arista Spurious Diffs
I have just started to deploy Arista switches in my mostly Cisco network.
My first one that I added to Rancid is sending diffs every run:

Index: configs/switch
===================================================================
retrieving revision 1.8
diff -u -4 -r1.8 switch
@@ -65,9 +65,9 @@
!Flash: -rw- 568 Nov 2 2021 SsuRestore.log
!Flash: -rw- 568 Nov 2 2021
SsuRestoreLegacy.log
!Flash: drwx 4096 Sep 15 2021 aboot
!Flash: -rw- 18 Jan 10 2022 boot-config
- !Flash: drwx 4096 Jan 19 16:01 debug
+ !Flash: drwx 4096 Jan 19 17:01 debug

Any help would be greatly appreciated!


*Steve O'Brien* | Senior Network Administrator

National Solar Observatory

Daniel K. Inouye Solar Telescope Project

22 Ohi’a Ku Street, Pukalani, HI 96768
Re: Arista Spurious Diffs [ In reply to ]
Fri, Jan 20, 2023 at 02:16:21PM -1000, Steve O'Brien:
> I have just started to deploy Arista switches in my mostly Cisco network.
> My first one that I added to Rancid is sending diffs every run:
>
> Index: configs/switch
> ===================================================================
> retrieving revision 1.8
> diff -u -4 -r1.8 switch
> @@ -65,9 +65,9 @@
> !Flash: -rw- 568 Nov 2 2021 SsuRestore.log
> !Flash: -rw- 568 Nov 2 2021
> SsuRestoreLegacy.log
> !Flash: drwx 4096 Sep 15 2021 aboot
> !Flash: -rw- 18 Jan 10 2022 boot-config
> - !Flash: drwx 4096 Jan 19 16:01 debug
> + !Flash: drwx 4096 Jan 19 17:01 debug
>
> Any help would be greatly appreciated!

Does this filter it successfully?

diff --git a/lib/aeos.pm.in b/lib/aeos.pm.in
index d1722e55..684280a7 100644
--- a/lib/aeos.pm.in
+++ b/lib/aeos.pm.in
@@ -260,6 +260,8 @@ sub ShowFlash {
# persist changes constantly if you're running ntp, so
# skip its updates.
/\spersist$/ && next;
+ # frequent timestamp changes
+ /\sdebug$/ && next;

# Scheduled commands can cause free space to constantly
# change. Even the trick of summarizing the free space

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@www.shrubbery.net
https://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Arista Spurious Diffs [ In reply to ]
Hello Steve,

This is a common issue that it picks up on the changes in the folder where your logs are being written. Had this with Cisco FRP firewalls. You have to patch the PM being used to ignore that folder. In your case, it is the debug folder. In ours it was the log folder. Be warned, when we were looking at the Cisco PM, we found several instances of duplicate code. So if you make a change and it does not fix the issue, then you need to look for that same code farther down in the module.

Best,

-Troy

> On Jan 20, 2023, at 4:16 PM, Steve O'Brien <sobrien@nso.edu> wrote:
>
> I have just started to deploy Arista switches in my mostly Cisco network. My first one that I added to Rancid is sending diffs every run:
>
> Index: configs/switch
> ===================================================================
> retrieving revision 1.8
> diff -u -4 -r1.8 switch
> @@ -65,9 +65,9 @@
> !Flash: -rw- 568 Nov 2 2021 SsuRestore.log
> !Flash: -rw- 568 Nov 2 2021 SsuRestoreLegacy.log
> !Flash: drwx 4096 Sep 15 2021 aboot
> !Flash: -rw- 18 Jan 10 2022 boot-config
> - !Flash: drwx 4096 Jan 19 16:01 debug
> + !Flash: drwx 4096 Jan 19 17:01 debug
>
> Any help would be greatly appreciated!
>
>
> Steve O'Brien | Senior Network Administrator
>
> National Solar Observatory
>
> Daniel K. Inouye Solar Telescope Project
>
> 22 Ohi’a Ku Street, Pukalani, HI 96768
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss@www.shrubbery.net
> https://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Arista Spurious Diffs [ In reply to ]
Hi,

On Fri, Jan 20, 2023 at 02:16:21PM -1000, Steve O'Brien wrote:
> I have just started to deploy Arista switches in my mostly Cisco network.
> My first one that I added to Rancid is sending diffs every run:
>
> Index: configs/switch
> ===================================================================
> retrieving revision 1.8
> diff -u -4 -r1.8 switch
> @@ -65,9 +65,9 @@
> !Flash: -rw- 568 Nov 2 2021 SsuRestore.log
> !Flash: -rw- 568 Nov 2 2021
> SsuRestoreLegacy.log
> !Flash: drwx 4096 Sep 15 2021 aboot
> !Flash: -rw- 18 Jan 10 2022 boot-config
> - !Flash: drwx 4096 Jan 19 16:01 debug
> + !Flash: drwx 4096 Jan 19 17:01 debug
>
> Any help would be greatly appreciated!

Coincidentally I fixed this earlier this week on one of our rancid instances.

In the file 'arrancid' look for the section '# This routine parses "dir flash:"'
and add the following line(s)

+ # Ignore debug subdirectory
+ /drwx.*debug/ && next;

before it invokes the function
ProcessHistory("FLASH","","","!Flash: $_");


Apparently newer EOS versions such as 4.27 are now frequently touching the debug
directory in the filesystem.


Cheers, andreas

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@www.shrubbery.net
https://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Arista Spurious Diffs [ In reply to ]
I patched the pm as heasley suggested and that seems to have worked, thank
you!
Andreas, I could not find an arrancid, did you mean arancid (arancid -
Alteon WebOS plugin for rancid)?


*Steve*




On Fri, Jan 20, 2023 at 2:52 PM Andreas Ott <andreas@h169.naund.org> wrote:

> Hi,
>
> On Fri, Jan 20, 2023 at 02:16:21PM -1000, Steve O'Brien wrote:
> > I have just started to deploy Arista switches in my mostly Cisco network.
> > My first one that I added to Rancid is sending diffs every run:
> >
> > Index: configs/switch
> > ===================================================================
> > retrieving revision 1.8
> > diff -u -4 -r1.8 switch
> > @@ -65,9 +65,9 @@
> > !Flash: -rw- 568 Nov 2 2021 SsuRestore.log
> > !Flash: -rw- 568 Nov 2 2021
> > SsuRestoreLegacy.log
> > !Flash: drwx 4096 Sep 15 2021 aboot
> > !Flash: -rw- 18 Jan 10 2022 boot-config
> > - !Flash: drwx 4096 Jan 19 16:01 debug
> > + !Flash: drwx 4096 Jan 19 17:01 debug
> >
> > Any help would be greatly appreciated!
>
> Coincidentally I fixed this earlier this week on one of our rancid
> instances.
>
> In the file 'arrancid' look for the section '# This routine parses "dir
> flash:"'
> and add the following line(s)
>
> + # Ignore debug subdirectory
> + /drwx.*debug/ && next;
>
> before it invokes the function
> ProcessHistory("FLASH","","","!Flash: $_");
>
>
> Apparently newer EOS versions such as 4.27 are now frequently touching the
> debug
> directory in the filesystem.
>
>
> Cheers, andreas
>
Re: Arista Spurious Diffs [ In reply to ]
If the patch worked on the perl module, please pursue that and ignore the
details I wrote. I figured by now, I have a very old and now unsupported
version of rancid on the instance I had to patch, from a time when Arista
required a 3rd party add-on. All more current ones would use the same
method heasley prescribed.

-andreas

On Mon, Jan 23, 2023 at 12:49 PM Steve O'Brien <sobrien@nso.edu> wrote:

> I patched the pm as heasley suggested and that seems to have worked, thank
> you!
> Andreas, I could not find an arrancid, did you mean arancid (arancid -
> Alteon WebOS plugin for rancid)?
>