From jandrewartha at ccgs.wa.edu.au Thu Jan 2 05:39:20 2020 From: jandrewartha at ccgs.wa.edu.au (James Andrewartha) Date: Thu, 2 Jan 2020 13:39:20 +0800 Subject: [rancid] exos.pm: patch to gather stack information Message-ID: <02d6db83-460f-81fe-7159-bfdbf41e9cf7@ccgs.wa.edu.au> Hi, The patch below adds extra parsing to ShowVersion in exos.pm, to print out the individual device serial numbers, bootrom and image version. Mostly I wanted the serial number, since the others are normally the same across a stack. Here's two examples of output, for a standalone switch, and a stack: #Switch: Serial 1638N-41359, BootROM 1.0.1.8, IMG 22.6.1.4 #Slot-1: Serial 1637N-41621, BootROM 1.0.1.8, IMG 22.6.1.4 #Slot-2: Serial 1638N-41448, BootROM 1.0.1.8, IMG 22.6.1.4 #Slot-3: Serial 1638N-41354, BootROM 1.0.1.8, IMG 22.6.1.4 #Slot-4: Serial 1638N-41318, BootROM 1.0.1.8, IMG 22.6.1.4 #Slot-5: Serial 1638N-41357, BootROM 1.0.1.8, IMG 22.6.1.4 This patch might be fuzzy since I generated it against upstream but I'm running 3.9-1~bpo9+1 from Debian. Also I only have X440-G2s to test against. --- exos.pm.in 2020-01-02 13:30:04.000000000 +0800 +++ /usr/share/perl5/rancid/exos.pm 2020-01-02 12:09:27.000000000 +0800 @@ -106,6 +149,9 @@ /^bootrom\s+:\s+(.*)/i && ProcessHistory("COMMENTS","keysort","D1","#\n#Bootrom: $1\n") && next; + /^(Slot-\d|Switch)\s+:\s+[^\s]+\s+([^\s]+).*BootROM: ([^\s]+)\s+IMG: ([^\s]+)/i && + ProcessHistory("COMMENTS","keysort","D2","#$1: Serial $2, BootROM $3, IMG $4\n") + && next; #XXX: need to collect this from show vers for ShowSlot where rev #s are excluded #SLOT 1 : 702005-06 0025S-00877 CPLD Rev Thanks, -- James Andrewartha Network & Projects Engineer Christ Church Grammar School Claremont, Western Australia Ph. (08) 9442 1757 Mob. 0424 160 877 From Wayne.Eisenberg at CarolinasIT.com Tue Jan 7 20:33:17 2020 From: Wayne.Eisenberg at CarolinasIT.com (Wayne Eisenberg) Date: Tue, 7 Jan 2020 20:33:17 +0000 Subject: [rancid] Mellanox Message-ID: I don't see it on the official page, but has anyone used rancid for backing up Mellanox switches? Thanks, Wayne From m_zouhairy at skno.by Wed Jan 8 14:10:32 2020 From: m_zouhairy at skno.by (Majed) Date: Wed, 08 Jan 2020 17:10:32 +0300 Subject: [rancid] tweaking request In-Reply-To: References: Message-ID: <399f529ec6b76c5ddb44ed755417a2d83610c488.camel@skno.by> Peace, from time to time, we have congestions on links to cisco devices and so when rancid trying to connect, it gets cut off, so what is needed is the following: if rancid encounters "authorization failed", let it try encore until no such error occurs! sample of the nuicance: - !Interface: GigabitEthernet0/0, PLATFORM SGMII INTERFACE - !Interface: GigabitEthernet0/1, PLATFORM SGMII INTERFACE - !Interface: GigabitEthernet0/1, Backplane CN Gigabit Ethernet, + !DEBUG: % Authorization failed. + ! From helge.wiethoff at thga.de Wed Jan 15 13:17:01 2020 From: helge.wiethoff at thga.de (Wiethoff, Helge) Date: Wed, 15 Jan 2020 13:17:01 +0000 Subject: [rancid] Adding devices manually Message-ID: Hi, is there a way to add configurations of devices manually? I have some devices that cannot be queried with the existing rancid- scripts. This is not necessarily a bad thing either, as changes are rarely made here. But since I'd like to have the configurations in the repository as well, I'd like to add them manually via svn. cd configs svn add config.txt svn commit That's not good enough at this point, is it? regards Helge From heas at shrubbery.net Wed Jan 15 16:36:57 2020 From: heas at shrubbery.net (Heasley) Date: Wed, 15 Jan 2020 10:36:57 -0600 Subject: [rancid] Adding devices manually In-Reply-To: References: Message-ID: <2D6AAEC8-204F-44A3-90CD-AC4B7730A5DA@shrubbery.net> > Am 15.01.2020 um 07:17 schrieb Wiethoff, Helge : > > ?Hi, > > is there a way to add configurations of devices manually? > > I have some devices that cannot be queried with the existing rancid- > scripts. This is not necessarily a bad thing either, as changes are > rarely made here. But since I'd like to have the configurations in the > repository as well, I'd like to add them manually via svn. > > cd configs > svn add config.txt > svn commit > > That's not good enough at this point, is it? Add them to the router.db as state ?down? > > regards > Helge > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From randy at psg.com Wed Jan 15 17:18:58 2020 From: randy at psg.com (Randy Bush) Date: Wed, 15 Jan 2020 09:18:58 -0800 Subject: [rancid] Undefined subroutine &main Message-ID: freebsd 11.3 fully updated rancid version 3.10.99 calling Getopt::Std::getopts (version 1.12 [paranoid]), running under Perl version 5.30.1. no results. log sez starting: Wed Jan 15 17:15:00 UTC 2020 Trying to get all of the configs. Undefined subroutine &mainw::which called at /usr/local/libexec/rancid//rancid line 91. Undefined subroutine &main::which called at /usr/local/libexec/rancid//rancid line 91. Undefined subroutine &main::which called at /usr/local/libexec/rancid//rancid line 91. randy From helge.wiethoff at thga.de Thu Jan 16 10:25:10 2020 From: helge.wiethoff at thga.de (Wiethoff, Helge) Date: Thu, 16 Jan 2020 10:25:10 +0000 Subject: [rancid] Adding devices manually In-Reply-To: <2D6AAEC8-204F-44A3-90CD-AC4B7730A5DA@shrubbery.net> References: <2D6AAEC8-204F-44A3-90CD-AC4B7730A5DA@shrubbery.net> Message-ID: Hi Heasley, Am Mittwoch, den 15.01.2020, 10:36 -0600 schrieb Heasley: > > > > cd configs > > svn add config.txt > > svn commit > > Add them to the router.db as state ?down? Perfect. This is how it works. Thanks :-) regards Helge From drvucanovic at gmail.com Fri Jan 17 17:47:56 2020 From: drvucanovic at gmail.com (Dragan Vucanovic) Date: Fri, 17 Jan 2020 09:47:56 -0800 (PST) Subject: [rancid] Rancid - keep backup/config files/SVN revisions no older than X days Message-ID: I'm new to Rancid, just started playing with it. Is somehow possible, when newer config file of same device exist, to keep only newest version, or it's already configured by default ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Jan 17 18:18:11 2020 From: heas at shrubbery.net (john heasley) Date: Fri, 17 Jan 2020 18:18:11 +0000 Subject: [rancid] Rancid - keep backup/config files/SVN revisions no older than X days In-Reply-To: References: Message-ID: <20200117181811.GB8822@shrubbery.net> Fri, Jan 17, 2020 at 09:47:56AM -0800, Dragan Vucanovic: > I'm new to Rancid, just started playing with it. > > Is somehow possible, when newer config file of same device exist, to keep > only newest version, or it's already configured by default ? not really - saving the config history is part of the majick. one (you) could write a script to periodically look at the CVS or SVN history and delete all revisions besides the latest. this would not work with git, afaik. From kruk at epsilon.eu.org Fri Jan 17 18:48:16 2020 From: kruk at epsilon.eu.org (Mariusz Kruk) Date: Fri, 17 Jan 2020 19:48:16 +0100 Subject: [rancid] Rancid - keep backup/config files/SVN revisions no older than X days In-Reply-To: <20200117181811.GB8822@shrubbery.net> References: <20200117181811.GB8822@shrubbery.net> Message-ID: On 17.01.2020 19:18, john heasley wrote: > Fri, Jan 17, 2020 at 09:47:56AM -0800, Dragan Vucanovic: >> I'm new to Rancid, just started playing with it. >> >> Is somehow possible, when newer config file of same device exist, to keep >> only newest version, or it's already configured by default ? > not really - saving the config history is part of the majick. one (you) > could write a script to periodically look at the CVS or SVN history and > delete all revisions besides the latest. this would not work with git, > afaik. Nope. That's the whole point of the versioning system - to keep track of old versions. In case of SVN you can't just delete old revisions (you can try to do some weird stuff like dumping only selected revisions and load it into a new repo but it's silly). It's not how it's supposed to work. BTW, a question to the original poster - what would be the point of such action? If you just want to keep one "offline" copy of your devices config, I suppose you could try to hack rancid-cvs not to use a repo altogether but what for? From howie at thingy.com Fri Jan 17 20:33:20 2020 From: howie at thingy.com (Howard Jones) Date: Fri, 17 Jan 2020 20:33:20 +0000 Subject: [rancid] Rancid - keep backup/config files/SVN revisions no older than X days In-Reply-To: References: Message-ID: On 17/01/2020 17:47, Dragan Vucanovic wrote: > I'm new to Rancid, just started playing with it. > > Is somehow possible, when newer config file of same device exist, to > keep only newest version, or it's already configured by default ? > If size is a concern, it doesn't need take n*size to store n days of configs like e.g. Solarwinds NCM. Only differences are stored. At my last job we had 7 years worth of config for some devices with no storage struggle at all. From jandrewartha at ccgs.wa.edu.au Mon Jan 20 05:29:06 2020 From: jandrewartha at ccgs.wa.edu.au (James Andrewartha) Date: Mon, 20 Jan 2020 13:29:06 +0800 Subject: [rancid] exos.pm: patch to gather stack information In-Reply-To: <20200104003238.GG95141@shrubbery.net> References: <02d6db83-460f-81fe-7159-bfdbf41e9cf7@ccgs.wa.edu.au> <20200104003238.GG95141@shrubbery.net> Message-ID: <602299f6-7d36-3e42-b14a-0be32fd832da@ccgs.wa.edu.au> Hi, On 4/1/20 8:32 am, john heasley wrote: > Thu, Jan 02, 2020 at 01:39:20PM +0800, James Andrewartha: >> Hi, >> >> The patch below adds extra parsing to ShowVersion in exos.pm, to print >> out the individual device serial numbers, bootrom and image version. >> Mostly I wanted the serial number, since the others are normally the >> same across a stack. >> >> Here's two examples of output, for a standalone switch, and a stack: >> >> #Switch: Serial 1638N-41359, BootROM 1.0.1.8, IMG 22.6.1.4 >> >> #Slot-1: Serial 1637N-41621, BootROM 1.0.1.8, IMG 22.6.1.4 >> #Slot-2: Serial 1638N-41448, BootROM 1.0.1.8, IMG 22.6.1.4 >> #Slot-3: Serial 1638N-41354, BootROM 1.0.1.8, IMG 22.6.1.4 >> #Slot-4: Serial 1638N-41318, BootROM 1.0.1.8, IMG 22.6.1.4 >> #Slot-5: Serial 1638N-41357, BootROM 1.0.1.8, IMG 22.6.1.4 >> >> This patch might be fuzzy since I generated it against upstream but I'm >> running 3.9-1~bpo9+1 from Debian. Also I only have X440-G2s to test against. >> >> --- exos.pm.in 2020-01-02 13:30:04.000000000 +0800 >> +++ /usr/share/perl5/rancid/exos.pm 2020-01-02 12:09:27.000000000 +0800 >> @@ -106,6 +149,9 @@ >> /^bootrom\s+:\s+(.*)/i && >> ProcessHistory("COMMENTS","keysort","D1","#\n#Bootrom: $1\n") >> && next; >> + /^(Slot-\d|Switch)\s+:\s+[^\s]+\s+([^\s]+).*BootROM: >> ([^\s]+)\s+IMG: ([^\s]+)/i && >> + ProcessHistory("COMMENTS","keysort","D2","#$1: Serial $2, >> BootROM $3, IMG $4\n") >> + && next; > > Does this work? > /^(?:Slot-\d|Switch)\s+:/i && > ProcessHistory("COMMENTS","keysort","D2","#$_") && next; > This seems like it might work for other revisions too; a bit more generic? > >> #XXX: need to collect this from show vers for ShowSlot where rev #s are >> excluded >> #SLOT 1 : 702005-06 0025S-00877 CPLD Rev I went with this (which requires non-spaces after the colon): /^(?:Slot-\d|Switch)\s+:\s+[^\s]+/i && ProcessHistory("COMMENTS","keysort","D2","#$_") && next; because otherwise you pick up empty slots as well. The raw output is Slot-1 dblockr3x.2 # show version Slot-1 : 800618-00-16 1828N-40693 Rev 16 BootROM: 1.0.1.8 IMG: 30.4.1.2 Slot-2 : 800618-00-16 1828N-40697 Rev 16 BootROM: 1.0.1.8 IMG: 30.4.1.2 Slot-3 : Slot-4 : Slot-5 : Slot-6 : Slot-7 : Slot-8 : which processes down to this with my change: #Slot-1 : 800618-00-16 1828N-40693 Rev 16 BootROM: 1.0.1.8 IMG: 30.4.1.2 #Slot-2 : 800618-00-16 1828N-40697 Rev 16 BootROM: 1.0.1.8 IMG: 30.4.1.2 Thanks, -- James Andrewartha Network & Projects Engineer Christ Church Grammar School Claremont, Western Australia Ph. (08) 9442 1757 Mob. 0424 160 877 From ricardo.ferreira at pareteum.com Thu Jan 30 12:16:31 2020 From: ricardo.ferreira at pareteum.com (Ricardo Ferreira) Date: Thu, 30 Jan 2020 12:16:31 +0000 Subject: [rancid] Dell Force10 S4148 Message-ID: Hi all, Im having an issue with devices of this kind. Logs show: Trying to get all of the configs. brrj-cs-4: missed cmd(s): show bootvar, show inventory, show vlan brrj-cs-4: End of run not found ! brrj-cs-3: missed cmd(s): show bootvar, show inventory, show vlan brrj-cs-3: End of run not found ! ===================================== Getting missed routers: round 1. brrj-cs-3: missed cmd(s): show bootvar, show inventory, show vlan brrj-cs-3: End of run not found ! brrj-cs-4: missed cmd(s): show bootvar, show inventory, show vlan brrj-cs-4: End of run not found ! However I can login to the devices using clogin. It seems however that the script isn't able to do so. Was anyone else able to solve this issue? Ricardo Ferreira Core IP Engineer [2D24477] Pareteum Corporation Paratge Bujonis, S/N 17220 Sant Feliu de Guixols Spain Mobile : (0034) 603 000 007 / (0031) 632 000 007 / (0031) 632 000 911 Email : ricardo.ferreira at pareteum.com Web : www.pareteum.com Nasdaq: TEUM [188B5C9D][A6B9F5B3][B950ED39] Connecting every person and every(thing)(tm) Winner of IoT Evolution's 2017's IoT Excellence Award [6F3E7CAF] Winner of 2018's Internet Telephony Product of the Year [E4709995] Winner of 2017's Communications Solutions Product of the Year Award from TMCnet [4138556B] CONFIDENTIAL: The contents of this email may contain confidential information. If you are not the intended recipient, your receipt was inadvertent and you are requested to delete this email immediately. In addition, any unauthorized use of this email, its contents, or attachments including forwarding, copying, printing, saving or disseminating in any manner is expressly prohibited -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 4248 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 457 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 666 bytes Desc: image003.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.png Type: image/png Size: 560 bytes Desc: image004.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image005.png Type: image/png Size: 18093 bytes Desc: image005.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image006.png Type: image/png Size: 17165 bytes Desc: image006.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image007.png Type: image/png Size: 18471 bytes Desc: image007.png URL: