From me at falz.net Thu Jan 5 13:56:34 2023 From: me at falz.net (Chris Wopat) Date: Thu, 5 Jan 2023 07:56:34 -0600 Subject: [rancid] Support for Coriant Groove - has been discussed on-list before Message-ID: Curious if anyone out there has existing code to share for Coriant Groove w/ RANCID. This was discussed in the past and it appears to be working, but code wasn't shared: https://shrubbery.net/pipermail/rancid-discuss/2018-January/010026.html I agree generally with the commands listed in that thread as a starting point. I should note that `clogin` works fine, the only gotcha appears to be that if you `exit` you get an `are you sure` prompt: ====================== me at o-g30-lab-1> exit Are you sure? [y/n] y Shutting down the session Connection closed ====================== As noted in that thread, `exit -f` omits the prompt. I attempted to do a simple fake-add of device using clogin by putting this in rancid.types.base, but it's hung up on that part. Any way to force this, from rancid.types.base, to send `exit -f` instead of `exit`? If this truly requires a new actual module, what's current best practice here - ie which is a good go-to module to copy as a base? Also, the first command (show shelf) should probably have 'comments' prepending it, like # or ! or something. unsure how that's accomplished coriant;script;rancid -t coriant coriant;login;clogin coriant;module;ios coriant;inloop;ios::inloop coriant;command;ios::ShowVersion;show shelf coriant;command;ios::WriteTerm;show config | display commands coriant;command;ios::WriteTerm;exit -f Thoughts? --Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From sobrien at nso.edu Sat Jan 21 00:16:21 2023 From: sobrien at nso.edu (Steve O'Brien) Date: Fri, 20 Jan 2023 14:16:21 -1000 Subject: [rancid] Arista Spurious Diffs Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Sat Jan 21 00:51:07 2023 From: heas at shrubbery.net (heasley) Date: Sat, 21 Jan 2023 00:51:07 +0000 Subject: [rancid] Arista Spurious Diffs In-Reply-To: <20230121004851.4B8A94C252C@sea.shrubbery.net> Message-ID: 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 From troy at i2bnetworks.com Sat Jan 21 00:51:48 2023 From: troy at i2bnetworks.com (Troy Beisigl) Date: Fri, 20 Jan 2023 16:51:48 -0800 Subject: [rancid] Arista Spurious Diffs In-Reply-To: References: Message-ID: 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 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 at www.shrubbery.net > https://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreas at h169.naund.org Sat Jan 21 00:52:22 2023 From: andreas at h169.naund.org (Andreas Ott) Date: Sat, 21 Jan 2023 00:52:22 +0000 Subject: [rancid] Arista Spurious Diffs In-Reply-To: References: Message-ID: <20230121005222.GC5105@h169.naund.org> 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 From sobrien at nso.edu Mon Jan 23 20:48:50 2023 From: sobrien at nso.edu (Steve O'Brien) Date: Mon, 23 Jan 2023 10:48:50 -1000 Subject: [rancid] Arista Spurious Diffs In-Reply-To: <20230121005222.GC5105@h169.naund.org> References: <20230121005222.GC5105@h169.naund.org> Message-ID: 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 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreas at naund.org Mon Jan 23 21:14:48 2023 From: andreas at naund.org (Andreas Ott) Date: Mon, 23 Jan 2023 13:14:48 -0800 Subject: [rancid] Arista Spurious Diffs In-Reply-To: References: <20230121005222.GC5105@h169.naund.org> Message-ID: 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 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)? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From moogprodigy at gmail.com Wed Jan 25 14:55:28 2023 From: moogprodigy at gmail.com (moog) Date: Wed, 25 Jan 2023 17:55:28 +0300 Subject: [rancid] (no subject) Message-ID: Hi, can't get config from switch Dlink Des-3526 ,comes in but nothing happens, as stated in rancid.types.base dlink;script;dllogin Log ^MDES-3526:admin# ^MDES-3526:admin#cat: /home/rancid/var/DLINK/routers.single: ??? ?????? ????? ??? ???????? All routers successfully completed. cat: /home/rancid/var/DLINK/routers.single: ??? ?????? ????? ??? ???????? cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs Can't open /home/rancid/var/DLINK/routers.single: ??? ?????? ????? ??? ????????. Rancid 3.13 -- www.theprodigypla.net -------------- next part -------------- An HTML attachment was scrubbed... URL: