From istong at costar.com Sun Jan 3 14:50:32 2016 From: istong at costar.com (Ian Stong) Date: Sun, 3 Jan 2016 14:50:32 +0000 Subject: [rancid] excluding output from cisco routers and switches relating to Flash: bootflash: Message-ID: <6ED7B4C44A4C234FA7427C0BFDF35A32D52D4CEA@DCMBXPRD100.us.costar.local> Hi, I need to exclude the following output from rancid as it always shows changes to the Flash: bootflash: Sample below of what it is seeing as a change - !Flash: bootflash: 273633 drwx 8192 Dec 31 2015 06:27:53 -04:00 tracelogs + !Flash: bootflash: 273633 drwx 8192 Dec 31 2015 13:55:48 -04:00 tracelogs Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From alan.mckinnon at gmail.com Sun Jan 3 16:24:34 2016 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Sun, 3 Jan 2016 18:24:34 +0200 Subject: [rancid] excluding output from cisco routers and switches relating to Flash: bootflash: In-Reply-To: <6ED7B4C44A4C234FA7427C0BFDF35A32D52D4CEA@DCMBXPRD100.us.costar.local> References: <6ED7B4C44A4C234FA7427C0BFDF35A32D52D4CEA@DCMBXPRD100.us.costar.local> Message-ID: <56894B42.4090000@gmail.com> On 03/01/2016 16:50, Ian Stong wrote: > Hi, > > > > I need to exclude the following output from rancid as it always shows > changes to the Flash: bootflash: > > > > Sample below of what it is seeing as a change > > > > - !Flash: bootflash: 273633 drwx 8192 Dec 31 2015 06:27:53 > -04:00 tracelogs > > + !Flash: bootflash: 273633 drwx 8192 Dec 31 2015 13:55:48 > -04:00 tracelogs modify the perl code with a suitable regex to detect the line you want removed. The form is usually something like this: next if /insert some regex here/; The code is peppered with 10s of examples, and the question has been asked and answered many times here. It's somewhat of an FAQ. -- Alan McKinnon alan.mckinnon at gmail.com From frnkblk at iname.com Sun Jan 3 19:43:13 2016 From: frnkblk at iname.com (frnkblk at iname.com) Date: Sun, 3 Jan 2016 13:43:13 -0600 Subject: [rancid] excluding output from cisco routers and switches relating to Flash: bootflash: In-Reply-To: <6ED7B4C44A4C234FA7427C0BFDF35A32D52D4CEA@DCMBXPRD100.us.costar.local> References: <6ED7B4C44A4C234FA7427C0BFDF35A32D52D4CEA@DCMBXPRD100.us.costar.local> Message-ID: <000f01d1465e$fcd59160$f680b420$@iname.com> What are you tracing that is causing that tracelogs directory to be updated? Frank From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Ian Stong Sent: Sunday, January 03, 2016 8:51 AM To: rancid-discuss at shrubbery.net Subject: [rancid] excluding output from cisco routers and switches relating to Flash: bootflash: Hi, I need to exclude the following output from rancid as it always shows changes to the Flash: bootflash: Sample below of what it is seeing as a change - !Flash: bootflash: 273633 drwx 8192 Dec 31 2015 06:27:53 -04:00 tracelogs + !Flash: bootflash: 273633 drwx 8192 Dec 31 2015 13:55:48 -04:00 tracelogs Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From allonon at gmail.com Mon Jan 4 20:16:33 2016 From: allonon at gmail.com (allonon) Date: Mon, 4 Jan 2016 12:16:33 -0800 Subject: [rancid] excluding output from cisco routers and switches Message-ID: I wanted to start a different topic as mine is not about flash or bootflash. I have a similar issue with nexus output and want to prevent diff emails but I want the data in the the saved config. One of switches will constantly adjust output watts by a few points. !Env: ------- ------------------- ---------- ---------- ---------- -------------- - !Env: 1 N9K-PAC-650W-B 67 W 649 W Ok - !Env: 2 N9K-PAC-650W-B 71 W 649 W Ok + !Env: 1 N9K-PAC-650W-B 68 W 649 W Ok + !Env: 2 N9K-PAC-650W-B 70 W 649 W Ok My scripting-fu is non-existent and am trying to learn this. I figure I have 3 options. Just have Rancid ignore the line. (not preferred as I want to see the PS as OK or not) Filter email output. Filter the actual diff. (can the diff actually handle advanced parsing? Everything I see shows how to ignore line based on simple match) I found this snippet from another thread on how to filter email output but I'm getting lost on what it is doing after the first grep > DIFF=`cat $TMP.diff | grep -v "^===" | grep -v "^diff " | grep -v > "^Index: " | grep -v "^retrieving revision" | grep -v "^$"` > if [ -n "$DIFF" ]; then > ...email stuff here... > fi How do I best adjust this so that it greps for the ENV or N9K-PAC line, and ignore (not send diff email) it if the Ok is there. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick at foobar.org Mon Jan 4 20:42:47 2016 From: nick at foobar.org (Nick Hilliard) Date: Mon, 04 Jan 2016 20:42:47 +0000 Subject: [rancid] excluding output from cisco routers and switches In-Reply-To: References: Message-ID: <568AD947.5060608@foobar.org> allonon wrote: > My scripting-fu is non-existent and am trying to learn this. You don't need to learn this. Upgrade to Rancid 3.x and edit out the relevant bit of /etc/rancid/rancid.types.base. Nick From b.candler at pobox.com Mon Jan 4 21:09:26 2016 From: b.candler at pobox.com (Brian Candler) Date: Mon, 4 Jan 2016 21:09:26 +0000 Subject: [rancid] excluding output from cisco routers and switches In-Reply-To: References: Message-ID: <568ADF86.5090005@pobox.com> On 04/01/2016 20:16, allonon wrote: > How do I best adjust this so that it greps for the ENV or N9K-PAC > line, and ignore (not send diff email) it if the Ok is there. > Maybe copy the code which blanks out passwords (look where it calls ProcessHistory) From rdrake at direcpath.com Tue Jan 5 00:32:29 2016 From: rdrake at direcpath.com (rdrake) Date: Mon, 4 Jan 2016 19:32:29 -0500 Subject: [rancid] excluding output from cisco routers and switches In-Reply-To: References: Message-ID: <568B0F1D.5090109@direcpath.com> On 01/04/2016 03:16 PM, allonon wrote: > I wanted to start a different topic as mine is not about flash or > bootflash. > > I have a similar issue with nexus output and want to prevent diff > emails but I want the data in the the saved config. One of switches > will constantly adjust output watts by a few points. > > > !Env: ------- ------------------- ---------- ---------- > ---------- -------------- > - !Env: 1 N9K-PAC-650W-B 67 W 649 W Ok > - !Env: 2 N9K-PAC-650W-B 71 W 649 W Ok > + !Env: 1 N9K-PAC-650W-B 68 W 649 W Ok > + !Env: 2 N9K-PAC-650W-B 70 W 649 W Ok > > > My scripting-fu is non-existent and am trying to learn this. > > I figure I have 3 options. > Just have Rancid ignore the line. (not preferred as I want to see > the PS as OK or not) > Filter email output. > Filter the actual diff. (can the diff actually handle advanced > parsing? Everything I see shows how to ignore line based on simple match) > > I found this snippet from another thread on how to filter email output > but I'm getting lost on what it is doing after the first grep > > DIFF=`cat $TMP.diff | grep -v "^===" | grep -v "^diff " | grep -v > > "^Index: " | grep -v "^retrieving revision" | grep -v "^$"` > > if [ -n "$DIFF" ]; then > > ...email stuff here... > > fi > > How do I best adjust this so that it greps for the ENV or N9K-PAC > line, and ignore (not send diff email) it if the Ok is there. > > Thanks > The multiple greps in that example are for different commands they want to match and exclude. You can do something like this: DIFF=`cat $TMP.diff | grep -Ev "[ +-] \!Env: [0-9]"` You can test if your regex is working by making a fake diff and seeing if the grep matches : [rdrake at test ~]$ cat test.in | grep -E "[ +-] \!Env: [0-9]" - !Env: 1 N9K-PAC-650W-B 67 W 649 W Ok - !Env: 2 N9K-PAC-650W-B 71 W 649 W Ok + !Env: 1 N9K-PAC-650W-B 68 W 649 W Ok + !Env: 2 N9K-PAC-650W-B 70 W 649 W Ok [rdrake at test ~]$ cat test.in | grep -Ev "[ +-] \!Env: [0-9]" !Env: ------- ------------------- ---------- ---------- ---------- -------------- (if you want to get rid of this line too you can use this) [rdrake at test ~]$ cat test.in | grep -Ev "[ +-] \!Env: [0-9-]" [rdrake at test ~]$ -------------- next part -------------- An HTML attachment was scrubbed... URL: From allonon at gmail.com Wed Jan 6 05:23:20 2016 From: allonon at gmail.com (allonon) Date: Tue, 5 Jan 2016 21:23:20 -0800 Subject: [rancid] excluding output from cisco routers and switches In-Reply-To: <568B0F1D.5090109@direcpath.com> References: <568B0F1D.5090109@direcpath.com> Message-ID: <568CA4C8.4020007@gmail.com> With further digging, I found out that part of this code to remove the fluctuating wattage is in the nxos.pm module but the code is based on a different output than what I am getting from our Nexus hardware. So now to figure out how the existing code is actually stripping the wattage and adjust it for my output On 1/4/16 16:32, rdrake wrote: > On 01/04/2016 03:16 PM, allonon wrote: >> I wanted to start a different topic as mine is not about flash or >> bootflash. >> >> I have a similar issue with nexus output and want to prevent diff >> emails but I want the data in the the saved config. One of switches >> will constantly adjust output watts by a few points. >> >> >> !Env: ------- ------------------- ---------- ---------- >> ---------- -------------- >> - !Env: 1 N9K-PAC-650W-B 67 W 649 W Ok >> - !Env: 2 N9K-PAC-650W-B 71 W 649 W Ok >> + !Env: 1 N9K-PAC-650W-B 68 W 649 W Ok >> + !Env: 2 N9K-PAC-650W-B 70 W 649 W Ok >> >> > The multiple greps in that example are for different commands they want > to match and exclude. You can do something like this: > > DIFF=`cat $TMP.diff | grep -Ev "[ +-] \!Env: [0-9]"` > > You can test if your regex is working by making a fake diff and seeing > if the grep matches : > [rdrake at test ~]$ cat test.in | grep -E "[ +-] \!Env: [0-9]" > - !Env: 1 N9K-PAC-650W-B 67 W 649 W Ok > - !Env: 2 N9K-PAC-650W-B 71 W 649 W Ok > + !Env: 1 N9K-PAC-650W-B 68 W 649 W Ok > + !Env: 2 N9K-PAC-650W-B 70 W 649 W Ok > > [rdrake at test ~]$ cat test.in | grep -Ev "[ +-] \!Env: [0-9]" > !Env: ------- ------------------- ---------- ---------- > ---------- -------------- > > (if you want to get rid of this line too you can use this) > > [rdrake at test ~]$ cat test.in | grep -Ev "[ +-] \!Env: [0-9-]" > [rdrake at test ~]$ > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > From erlington.j at gmail.com Thu Jan 7 17:50:23 2016 From: erlington.j at gmail.com (Erlington Espinoza) Date: Thu, 7 Jan 2016 17:50:23 +0000 (UTC) Subject: [rancid] =?utf-8?q?Rancid_3=2E2_issue_with_perl/inet=5Fpton?= References: <20150323193131.73E88994BE@sea.shrubbery.net> <550FE958.3030209@foobar.org> <20150323195800.GB76719@shrubbery.net> <55193B43.2010403@foobar.org> Message-ID: Hey Guys you saved my *** right there with these instructions. Do you know how can I tell Rancid to use the specific version of perl (compiled one) but keep as system default perl 5.10? From alan.mckinnon at gmail.com Thu Jan 7 20:03:34 2016 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Thu, 7 Jan 2016 22:03:34 +0200 Subject: [rancid] Rancid 3.2 issue with perl/inet_pton In-Reply-To: References: <20150323193131.73E88994BE@sea.shrubbery.net> <550FE958.3030209@foobar.org> <20150323195800.GB76719@shrubbery.net> <55193B43.2010403@foobar.org> Message-ID: <568EC496.3060003@gmail.com> On 07/01/2016 19:50, Erlington Espinoza wrote: > Hey Guys you saved my *** right there with these instructions. > > Do you know how can I tell Rancid to use the specific version of perl > (compiled one) but keep as system default perl 5.10? assuming the new perl is in /usr/local/bin, put that directory as the beginning of PATH for the rancid user. Or, edit the shebang for every file. But that's a pain and doesn't survive upgrades and recompiles -- Alan McKinnon alan.mckinnon at gmail.com From heas at shrubbery.net Thu Jan 7 21:30:26 2016 From: heas at shrubbery.net (heasley) Date: Thu, 7 Jan 2016 21:30:26 +0000 Subject: [rancid] Rancid 3.2 issue with perl/inet_pton In-Reply-To: <568EC496.3060003@gmail.com> References: <20150323193131.73E88994BE@sea.shrubbery.net> <550FE958.3030209@foobar.org> <20150323195800.GB76719@shrubbery.net> <55193B43.2010403@foobar.org> <568EC496.3060003@gmail.com> Message-ID: <20160107213026.GH27621@shrubbery.net> Thu, Jan 07, 2016 at 10:03:34PM +0200, Alan McKinnon: > On 07/01/2016 19:50, Erlington Espinoza wrote: > > Hey Guys you saved my *** right there with these instructions. > > > > Do you know how can I tell Rancid to use the specific version of perl > > (compiled one) but keep as system default perl 5.10? > > > assuming the new perl is in /usr/local/bin, put that directory as the > beginning of PATH for the rancid user. > > Or, edit the shebang for every file. But that's a pain and doesn't > survive upgrades and recompiles you can also export PERLV_PATH=/path/to/perl5 ./configure From heas at shrubbery.net Mon Jan 11 23:02:57 2016 From: heas at shrubbery.net (heasley) Date: Mon, 11 Jan 2016 23:02:57 +0000 Subject: [rancid] excluding output from cisco routers and switches relating to Flash: bootflash: In-Reply-To: <56894B42.4090000@gmail.com> References: <6ED7B4C44A4C234FA7427C0BFDF35A32D52D4CEA@DCMBXPRD100.us.costar.local> <56894B42.4090000@gmail.com> Message-ID: <20160111230257.GE94731@shrubbery.net> Sun, Jan 03, 2016 at 06:24:34PM +0200, Alan McKinnon: > On 03/01/2016 16:50, Ian Stong wrote: > > Hi, > > > > > > > > I need to exclude the following output from rancid as it always shows > > changes to the Flash: bootflash: > > > > > > > > Sample below of what it is seeing as a change > > > > > > > > - !Flash: bootflash: 273633 drwx 8192 Dec 31 2015 06:27:53 > > -04:00 tracelogs > > > > + !Flash: bootflash: 273633 drwx 8192 Dec 31 2015 13:55:48 > > -04:00 tracelogs > > > modify the perl code with a suitable regex to detect the line you want > removed. The form is usually something like this: > > next if /insert some regex here/; > > The code is peppered with 10s of examples, and the question has been > asked and answered many times here. It's somewhat of an FAQ. There already is a filter for this w/ ios-xe, which had a bug in some old version causing this to endlessly change. From peo at chalmers.se Thu Jan 14 07:44:21 2016 From: peo at chalmers.se (Per-Olof Olsson) Date: Thu, 14 Jan 2016 08:44:21 +0100 Subject: [rancid] HP have new "save config" prompt. Message-ID: <569751D5.7020400@chalmers.se> Hello Notice new "save config" promp in YA.15.17.0008 and WB.15.18.0006. "Do you want to save the current configuration (y/n)? " My fix in hlogin: 606c603 < "Do you want to save current configuration" { --- > -re "Do you want to save (the )?current configuration" { /Peo ---------------------------------------------------------- Per-Olof Olsson Email: peo at chalmers.se Chalmers tekniska h?gskola IT-avdelningen Arvid Hedvalls backe 6 412 96 G?teborg Tel: 031/772 6738 Fax: 031/772 8660 Mob: 0707 88 3708 ---------------------------------------------------------- From istong at costar.com Thu Jan 14 12:21:36 2016 From: istong at costar.com (Ian Stong) Date: Thu, 14 Jan 2016 12:21:36 +0000 Subject: [rancid] excluding output from cisco routers and switches relating to Flash: bootflash: In-Reply-To: <20160111230257.GE94731@shrubbery.net> References: <6ED7B4C44A4C234FA7427C0BFDF35A32D52D4CEA@DCMBXPRD100.us.costar.local> <56894B42.4090000@gmail.com> <20160111230257.GE94731@shrubbery.net> Message-ID: <6ED7B4C44A4C234FA7427C0BFDF35A32E371472E@DCMBXPRD100.us.costar.local> I'm running an older version of rancid and was wondering if there is something I can edit to prevent the daily emails for changes I don't care about as mentioned below. I edited rancid and tried excluding various model routers giving me the unwanted output (return(1) if ($type =~ /^(12[40]|7|4|2|1)/);) but it didn't change anything # This routine parses "show flash" sub ShowFlash { # skip if this is 7000, 7200, 7500, or 12000; else we end up with # redundant data from dir /all slot0: print STDERR " In ShowFlash: $_" if ($debug); while () { tr/\015//d; last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); return(1) if ($type =~ /^(12[40]|7|4|2|1)/); return(-1) if (/command authorization failed/i); return(1) if /^\s*\^\s*$/; return(1) if /(Invalid input detected|Type help or )/; # the pager can not be disabled per-session on the PIX s/^<-+ More -+>\s*//; /\s+vlan\.dat$/ && next; ProcessHistory("FLASH","","","!Flash: $_"); } ProcessHistory("","","","!\n"); return; -----Original Message----- From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of heasley Sent: Monday, January 11, 2016 6:03 PM To: Alan McKinnon Cc: rancid-discuss at shrubbery.net Subject: Re: [rancid] excluding output from cisco routers and switches relating to Flash: bootflash: Sun, Jan 03, 2016 at 06:24:34PM +0200, Alan McKinnon: > On 03/01/2016 16:50, Ian Stong wrote: > > Hi, > > > > > > > > I need to exclude the following output from rancid as it always > > shows changes to the Flash: bootflash: > > > > > > > > Sample below of what it is seeing as a change > > > > > > > > - !Flash: bootflash: 273633 drwx 8192 Dec 31 2015 06:27:53 > > -04:00 tracelogs > > > > + !Flash: bootflash: 273633 drwx 8192 Dec 31 2015 13:55:48 > > -04:00 tracelogs > > > modify the perl code with a suitable regex to detect the line you want > removed. The form is usually something like this: > > next if /insert some regex here/; > > The code is peppered with 10s of examples, and the question has been > asked and answered many times here. It's somewhat of an FAQ. There already is a filter for this w/ ios-xe, which had a bug in some old version causing this to endlessly change. _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss From ler762 at gmail.com Thu Jan 14 15:54:10 2016 From: ler762 at gmail.com (Lee) Date: Thu, 14 Jan 2016 10:54:10 -0500 Subject: [rancid] excluding output from cisco routers and switches relating to Flash: bootflash: In-Reply-To: <6ED7B4C44A4C234FA7427C0BFDF35A32E371472E@DCMBXPRD100.us.costar.local> References: <6ED7B4C44A4C234FA7427C0BFDF35A32D52D4CEA@DCMBXPRD100.us.costar.local> <56894B42.4090000@gmail.com> <20160111230257.GE94731@shrubbery.net> <6ED7B4C44A4C234FA7427C0BFDF35A32E371472E@DCMBXPRD100.us.costar.local> Message-ID: On 1/14/16, Ian Stong wrote: > I'm running an older version of rancid and was wondering if there is > something I can edit to prevent the daily emails for changes I don't care > about as mentioned below. I edited rancid and tried excluding various model > routers giving me the unwanted output (return(1) if ($type =~ > /^(12[40]|7|4|2|1)/);) but it didn't change anything What I had in rancid 2.8: # This routine parses "show flash" sub ShowFlash { # skip if this is 7000, 7200, 7500, or 12000; else we end up with # redundant data from dir /all slot0: print STDERR " In ShowFlash: $_" if ($debug); $redacted = 0; # -LR- set if a file listing is suppressed while () { tr/\015//d; last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); ### -LR- ideal would be to ignore filesystem changes like date & time, but I'm not there yet ### -LR- so ignore the whole thing if (/startup-config\s*$/) {$redacted = 1; next; } # -LR- if (/private-config\.text\s*$/) {$redacted = 1; next; } # -LR- if (/config\.text\s*$/) {$redacted = 1; next; } # -LR- if (/dhcp[-_]database\s*$/) {$redacted = 1; next; } # -LR- ignore dhcp database changes if (/dhcp-snooping(-data)?\s*$/){$redacted = 1; next; } # -LR- ignore dhcp snooping database changes if (/lic_uom\.dat\s*$/) {$redacted = 1; next; } # -LR- ignore .private/lic_uom.dat changes if (/.*\(\d+ bytes (free|used)\)/) { # -LR- want to show bytes used? if ($redacted) { next; } # -LR- not when there are files that haven't been shown } # -LR- Regards, Lee > > # This routine parses "show flash" > sub ShowFlash { > # skip if this is 7000, 7200, 7500, or 12000; else we end up with > # redundant data from dir /all slot0: > print STDERR " In ShowFlash: $_" if ($debug); > > while () { > tr/\015//d; > last if (/^$prompt/); > next if (/^(\s*|\s*$cmd\s*)$/); > return(1) if ($type =~ /^(12[40]|7|4|2|1)/); > return(-1) if (/command authorization failed/i); > return(1) if /^\s*\^\s*$/; > return(1) if /(Invalid input detected|Type help or )/; > # the pager can not be disabled per-session on the PIX > s/^<-+ More -+>\s*//; > /\s+vlan\.dat$/ && next; > ProcessHistory("FLASH","","","!Flash: $_"); > } > ProcessHistory("","","","!\n"); > return; > > > > -----Original Message----- > From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf > Of heasley > Sent: Monday, January 11, 2016 6:03 PM > To: Alan McKinnon > Cc: rancid-discuss at shrubbery.net > Subject: Re: [rancid] excluding output from cisco routers and switches > relating to Flash: bootflash: > > Sun, Jan 03, 2016 at 06:24:34PM +0200, Alan McKinnon: >> On 03/01/2016 16:50, Ian Stong wrote: >> > Hi, >> > >> > >> > >> > I need to exclude the following output from rancid as it always >> > shows changes to the Flash: bootflash: >> > >> > >> > >> > Sample below of what it is seeing as a change >> > >> > >> > >> > - !Flash: bootflash: 273633 drwx 8192 Dec 31 2015 >> > 06:27:53 >> > -04:00 tracelogs >> > >> > + !Flash: bootflash: 273633 drwx 8192 Dec 31 2015 >> > 13:55:48 >> > -04:00 tracelogs >> >> >> modify the perl code with a suitable regex to detect the line you want >> removed. The form is usually something like this: >> >> next if /insert some regex here/; >> >> The code is peppered with 10s of examples, and the question has been >> asked and answered many times here. It's somewhat of an FAQ. > > There already is a filter for this w/ ios-xe, which had a bug in some old > version causing this to endlessly change. > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > From heas at shrubbery.net Thu Jan 14 18:57:56 2016 From: heas at shrubbery.net (heasley) Date: Thu, 14 Jan 2016 18:57:56 +0000 Subject: [rancid] excluding output from cisco routers and switches relating to Flash: bootflash: In-Reply-To: <6ED7B4C44A4C234FA7427C0BFDF35A32E371472E@DCMBXPRD100.us.costar.local> References: <6ED7B4C44A4C234FA7427C0BFDF35A32D52D4CEA@DCMBXPRD100.us.costar.local> <56894B42.4090000@gmail.com> <20160111230257.GE94731@shrubbery.net> <6ED7B4C44A4C234FA7427C0BFDF35A32E371472E@DCMBXPRD100.us.costar.local> Message-ID: <20160114185756.GF3526@shrubbery.net> Thu, Jan 14, 2016 at 12:21:36PM +0000, Ian Stong: > I'm running an older version of rancid and was wondering if there is something I can edit to prevent the daily emails for changes I don't care about as mentioned below. I edited rancid and tried excluding various model routers giving me the unwanted output (return(1) if ($type =~ /^(12[40]|7|4|2|1)/);) but it didn't change anything I'd prefer that you upgrade to 3.x. by editing the scripts, I think that you are making it more difficult for yourself in the future. From howie at thingy.com Mon Jan 18 11:03:11 2016 From: howie at thingy.com (Howard Jones) Date: Mon, 18 Jan 2016 11:03:11 +0000 Subject: [rancid] Patch for xrancid Extreme x480 - oscillating "show configuration" Message-ID: <569CC66F.9070107@thingy.com> Here's a tiny patch to stop spurious diffs on (at least) Extreme x480 switches. For some reason they sometimes do and sometimes don't show the "show configuration" command in the output. --- xrancid 2015-05-08 16:43:09.001709176 +0100 +++ ../../bin/xrancid 2016-01-18 10:03:56.175776121 +0000 @@ -357,6 +357,14 @@ /# system name/i && next; /# software version/i && next; + # if there's a show configuration (sometimes is, sometimes isn't, even on one device!) + # remove it, and the following line (a blank comment) + if (m/^show\sconfiguration/) { + ; + next; + } + + if (/((create|configure) account \S+ \S+) / && $filter_pwds >= 2) { ProcessHistory("COMMENTS","keysort","H0","# $1 \n"); next; From vineeth.varghese at capgemini.com Tue Jan 19 07:56:49 2016 From: vineeth.varghese at capgemini.com (Varghese, Vineeth) Date: Tue, 19 Jan 2016 07:56:49 +0000 Subject: [rancid] @Script Message-ID: <845692AA01910F4FB118165F501119E56D8DC425@IN-AIR-DAGND4.corp.capgemini.com> Hello, Can I check the scrip that runs in the baground which taking an backup, If yes, can I know the path where all the script saves? And by default does rancid take backup of startup and running configuration file of switch or it' just the startup config. Thanks & Regards ______________________________________________________ [Description: Description: Description: Description: Email_CBE.gif]Vineeth Varghese / Network Admin - ITICS-South, India I&T ITICS South | Capgemini Capgemini India | Mumbai - Airoli Mobile: +91 7208883624 Ext: 2213688 E-mail :- vineeth.varghese at capgemini.com www.capgemini.com People matter, results count. ________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 1904 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 1148 bytes Desc: image002.jpg URL: From heas at shrubbery.net Tue Jan 19 18:03:43 2016 From: heas at shrubbery.net (heasley) Date: Tue, 19 Jan 2016 18:03:43 +0000 Subject: [rancid] @Script In-Reply-To: <845692AA01910F4FB118165F501119E56D8DC425@IN-AIR-DAGND4.corp.capgemini.com> References: <845692AA01910F4FB118165F501119E56D8DC425@IN-AIR-DAGND4.corp.capgemini.com> Message-ID: <20160119180343.GD68699@shrubbery.net> Tue, Jan 19, 2016 at 07:56:49AM +0000, Varghese, Vineeth: > Hello, > > Can I check the scrip that runs in the baground which taking an backup, I do not understand what you are asking. Check what about it? You have the source code; you can check that. You can look at /bin/ps to see things running at the rancid user. and you can look at the logs in ~rancid/logs. > If yes, can I know the path where all the script saves? saves what it has collected? ~rancid/group/configs/. > And by default does rancid take backup of startup and running configuration file of switch or it' just the startup config. it collects the running-config only. if you want to ensure that the start-up is maintained, you could write a script for clogin -s that writes the config once a day or more frequent. Also, see rancid_intro(1). From bosk802 at gmail.com Wed Jan 20 08:00:19 2016 From: bosk802 at gmail.com (=?UTF-8?B?0JDQvdC00YDQtdC5INCk0L7QvNC40L0=?=) Date: Wed, 20 Jan 2016 11:00:19 +0300 Subject: [rancid] Up-to-date check failed Message-ID: May be this can be somehow related to HDD-failure we had 2 weeks ago. After this HDD failure, i found that rancid has not recognized config changes for last 2 weeks. I'm not a rancid-expert, but i found some recomendations on debugging rancid failures - (briefly) try to manually 'clogin', if ok, try rancid-run explicitly an watch for logs. 'clogin' went perfect, so here's my log: $ cat network.20160120.103453 starting: Trying to get all of the configs. ===================================== Getting missed routers: round 1. ===================================== Getting missed routers: round 2. ===================================== Getting missed routers: round 3. ===================================== Getting missed routers: round 4. cvs diff: Diffing . cvs diff: Diffing configs cvs diff: configs/10.0.1.249 was removed, no comparison available cvs commit: Examining . cvs commit: Examining configs cvs commit: Up-to-date check failed for `configs/10.0.X.Y' cvs [commit aborted]: correct above errors first! ending: Can anyone help in this situation? PS: is there any RANCID-book or something? I only find documents which i can describe as "deploying guides", but this doesn't give any information about how it actually works (let's call it 'mehanics of rancid'). Or i need to read for ex. O'reilly's "Essential CVS" and couple of other books? Need your advice about this. I feel frustrated about rancid and need to cope with it in some better way than now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Wed Jan 20 17:57:43 2016 From: heas at shrubbery.net (heasley) Date: Wed, 20 Jan 2016 17:57:43 +0000 Subject: [rancid] Up-to-date check failed In-Reply-To: References: Message-ID: <20160120175743.GA77047@shrubbery.net> Wed, Jan 20, 2016 at 11:00:19AM +0300, ?????? ?????: > cvs diff: Diffing configs > cvs diff: configs/10.0.1.249 was removed, no comparison available this file apparently was not added properly or something similar. easiest fix is remove/comment it from router.db, run rancid-run, replace it in router.db. > cvs commit: Up-to-date check failed for `configs/10.0.X.Y' > cvs [commit aborted]: correct above errors first! this can occur if cvs is interrupted. as the rancid user, run cvs update in that group directory. you may need to rm the file and run re-run the cvs update. rancid does not do an update because we feel that this is an error situation where either someone externally modified the file or cvs crashed. > PS: is there any RANCID-book or something? I only find documents which i > can describe as "deploying guides", but this doesn't give any information > about how it actually works (let's call it 'mehanics of rancid'). Or i need > to read for ex. O'reilly's "Essential CVS" and couple of other books? Need > your advice about this. I feel frustrated about rancid and need to cope > with it in some better way than now. both a cvs problems - with some rancid knowledge required, i suppose. there is a FAQ that comes with rancid and is available on the website. From bosk802 at gmail.com Wed Jan 20 19:43:34 2016 From: bosk802 at gmail.com (=?UTF-8?B?0JDQvdC00YDQtdC5INCk0L7QvNC40L0=?=) Date: Wed, 20 Jan 2016 22:43:34 +0300 Subject: [rancid] Up-to-date check failed In-Reply-To: <20160120175743.GA77047@shrubbery.net> References: <20160120175743.GA77047@shrubbery.net> Message-ID: oops... I tried to hide ip-address information, but missed. Actually it's the same device, that's experiencing problems in log-files. I commented this line, reran rancid-run, then uncommented it and reran again, but this resulted: $ grep '249' ../network/router.db 10.0.1.249:cisco:up $ cat network.20160120.222451 starting: cvs status: 10.0.1.249 should be removed and is still there Trying to get all of the configs. ===================================== Getting missed routers: round 1. ===================================== Getting missed routers: round 2. ===================================== Getting missed routers: round 3. ===================================== Getting missed routers: round 4. cvs diff: Diffing . cvs diff: Diffing configs cvs diff: configs/10.0.1.249 was removed, no comparison available cvs commit: Examining . cvs commit: Examining configs cvs commit: `configs/10.0.1.249' should be removed and is still there (or is back again) cvs [commit aborted]: correct above errors first! ending: I don't know what's the problem, my only guess is that i need to eliminate the problem with the cvs update. What i do: $ pwd /usr/local/rancid/var/CVS $ cvs -d /usr/local/rancid/var/CVS update cvs update: in directory .: cvs [update aborted]: there is no version here; run 'cvs checkout' first $ cvs -d /usr/local/rancid/var/CVS checkout cvs [checkout aborted]: must specify at least one module or directory May be i'm doing wrong, but that is all i found how to perform cvs update. Command refuses do anything without -d and absolute path to CVSROOT, so i've managed to find it: $ find /usr/local/rancid/ -name 'CVSROOT' /usr/local/rancid/var/CVS/CVSROOT 2016-01-20 20:57 GMT+03:00 heasley : > Wed, Jan 20, 2016 at 11:00:19AM +0300, ?????? ?????: > > cvs diff: Diffing configs > > cvs diff: configs/10.0.1.249 was removed, no comparison available > > this file apparently was not added properly or something similar. easiest > fix is remove/comment it from router.db, run rancid-run, replace it in > router.db. > > > cvs commit: Up-to-date check failed for `configs/10.0.X.Y' > > cvs [commit aborted]: correct above errors first! > > this can occur if cvs is interrupted. as the rancid user, run cvs update > in > that group directory. you may need to rm the file and run re-run the cvs > update. rancid does not do an update because we feel that this is an > error situation where either someone externally modified the file or cvs > crashed. > > > PS: is there any RANCID-book or something? I only find documents which i > > can describe as "deploying guides", but this doesn't give any information > > about how it actually works (let's call it 'mehanics of rancid'). Or i > need > > to read for ex. O'reilly's "Essential CVS" and couple of other books? > Need > > your advice about this. I feel frustrated about rancid and need to cope > > with it in some better way than now. > > both a cvs problems - with some rancid knowledge required, i suppose. > there > is a FAQ that comes with rancid and is available on the website. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Thu Jan 21 23:31:36 2016 From: heas at shrubbery.net (heasley) Date: Thu, 21 Jan 2016 23:31:36 +0000 Subject: [rancid] HP 1920 In-Reply-To: <701C7F96-2D29-4899-9B72-88A623CD798A@pofp.com> References: <701C7F96-2D29-4899-9B72-88A623CD798A@pofp.com> Message-ID: <20160121233136.GC43028@shrubbery.net> Thu, Oct 15, 2015 at 11:31:30PM +0000, Michael Newton: > Wondering if anything ever came of this effort? We recently had to take over management of some of these switches and would like to get the configs saved to RANCID. Thanks! I have not touched it; I've never even touched one of these - comware sounds scary. If folks wanted this support, you will have to provide remote access to one. > Mike > > I've done some experimental work on this with rancid 3, at the moment it > relies on some changes to core rancid which I need to think through and > feedback to the project, and I haven't looked at it in a while. I know I > won't get a chance to do so for a while yet either unfortunately. > > For the record, this is an HP Comware switch, but is one of a set of > models that has a fairly useless limited CLI, unless you enter the secret > command and magic code to enable access to the full CLI, which requires > the special handling. > > Jethro. > > > > On Tue, 30 Jun 2015, Andrea Venturoli wrote: > > > Hello. > > > > I've got a couple of HP 1920 switches I'd like Rancid to connect to. > > > > However what I get is: > > > /usr/local/libexec/rancid/clogin switch-ufficio.xxxxxxx > > > switch-ufficio.xxxxxxx > > > spawn telnet switch-ufficio.xxxxxxx > > > Trying 192.168.110.10... > > > Connected to switch-ufficio.xxxxxxx. > > > Escape character is '^]'. > > > > > > ****************************************************************************** > > > * Copyright (c) 2010-2015 Hewlett-Packard Development Company, L.P. > > > * > > > * Without the owner's prior written consent, > > > * > > > * no decompiling or reverse-engineering shall be allowed. > > > * > > > ****************************************************************************** > > > > > > > > > Login authentication > > > > > > > > > Username:admin > > > Password: > > > enable > > > ^ > > > % Unrecognized command found at '^' position. > > > ^C$ > > > > I believe the command "enable" has to be substituted with "_cmdline-mode on", > > but found no driver implementing this. > > > > Does such a driver exist? > > Anyone using this switch (or any similar one)? > > > > bye & Thanks > > av. > > _______________________________________________ > > Rancid-discuss mailing list > > Rancid-discuss [at] shrubbery > > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > . . . . . . . . . . . . . . . . . . . . . . . . . > Jethro R Binks, Network Manager, > Information Services Directorate, University Of Strathclyde, Glasgow, UK > > The University of Strathclyde is a charitable body, registered in > Scotland, number SC015263. > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss [at] shrubbery > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From cedric.bassaget.ml at gmail.com Mon Jan 25 10:14:29 2016 From: cedric.bassaget.ml at gmail.com (=?UTF-8?B?Q8OpZHJpYyBC?=) Date: Mon, 25 Jan 2016 11:14:29 +0100 Subject: [rancid] Centos 6 rancid problem Message-ID: <56A5F585.1060404@gmail.com> Hello, I'm trying to make rancid mark for about 3 days, and I don't know why it doesn't... clogin works well. I've found this thread : http://www.shrubbery.net/pipermail/rancid-discuss/2008-April/003004.html telling that it could be a diff problem : changes nothing. In logfile, I just get a start date and an end date, nothing between the two. The only way I made it work is by running : PATH=$PATH:/usr/local/rancid/bin bin/rancid -t cisco PATH=$PATH:/usr/local/rancid/bin bin/rancid-run always set the router as down (in routers.down) and does not get the router's config I'm using rancid 3.1 (with SVN backend) because of the perl problem affecting rancid 3.2 on centos 6 Does anybody have met this problem ? Regards, C?dric From lind108 at hotmail.com Tue Jan 26 00:07:25 2016 From: lind108 at hotmail.com (Kenneth Lind) Date: Mon, 25 Jan 2016 19:07:25 -0500 Subject: [rancid] Centos 6 rancid problem In-Reply-To: <56A5F585.1060404@gmail.com> References: <56A5F585.1060404@gmail.com> Message-ID: Check your delimiters in router.db. RANCID 3.x uses ; (semicolon) instead of : (colon). Example: hostname;cisco;up -----Original Message----- From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of C?dric B Sent: Monday, January 25, 2016 5:14 AM To: rancid-discuss at shrubbery.net Subject: [rancid] Centos 6 rancid problem Hello, I'm trying to make rancid mark for about 3 days, and I don't know why it doesn't... clogin works well. I've found this thread : http://www.shrubbery.net/pipermail/rancid-discuss/2008-April/003004.html telling that it could be a diff problem : changes nothing. In logfile, I just get a start date and an end date, nothing between the two. The only way I made it work is by running : PATH=$PATH:/usr/local/rancid/bin bin/rancid -t cisco PATH=$PATH:/usr/local/rancid/bin bin/rancid-run always set the router as down (in routers.down) and does not get the router's config I'm using rancid 3.1 (with SVN backend) because of the perl problem affecting rancid 3.2 on centos 6 Does anybody have met this problem ? Regards, C?dric _______________________________________________ Rancid-discuss mailing list Rancid-discuss at shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss From cedric.bassaget.ml at gmail.com Tue Jan 26 08:26:33 2016 From: cedric.bassaget.ml at gmail.com (=?UTF-8?B?Q8OpZHJpYyBC?=) Date: Tue, 26 Jan 2016 09:26:33 +0100 Subject: [rancid] Centos 6 rancid problem In-Reply-To: References: <56A5F585.1060404@gmail.com> Message-ID: <56A72DB9.4020908@gmail.com> That was the problem... Thanks. Regards, C?dric Le 26/01/2016 01:07, Kenneth Lind a ?crit : > Check your delimiters in router.db. > > RANCID 3.x uses ; (semicolon) instead of : (colon). > > Example: > hostname;cisco;up > > > -----Original Message----- > From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of C?dric B > Sent: Monday, January 25, 2016 5:14 AM > To: rancid-discuss at shrubbery.net > Subject: [rancid] Centos 6 rancid problem > > Hello, > I'm trying to make rancid mark for about 3 days, and I don't know why it doesn't... > > clogin works well. > > I've found this thread : > http://www.shrubbery.net/pipermail/rancid-discuss/2008-April/003004.html > telling that it could be a diff problem : changes nothing. > > In logfile, I just get a start date and an end date, nothing between the two. > > The only way I made it work is by running : > PATH=$PATH:/usr/local/rancid/bin bin/rancid -t cisco > > PATH=$PATH:/usr/local/rancid/bin bin/rancid-run always set the router as down (in routers.down) and does not get the router's config > > I'm using rancid 3.1 (with SVN backend) because of the perl problem affecting rancid 3.2 on centos 6 > > Does anybody have met this problem ? > > Regards, > C?dric > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > From serge.torop at gmail.com Tue Jan 26 22:00:54 2016 From: serge.torop at gmail.com (Serge Torop) Date: Wed, 27 Jan 2016 01:00:54 +0300 Subject: [rancid] Can rancid work with Dlink and Edge-Core switches? Message-ID: Hello, all, can rancid work with Dlink (DES-3200, DGS-3612, DGS-3620) and Edge-Core switches (ES 3528)? If you have working examples, please, reply. Thank you in advance. -- Serge P. Torop -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.ahrens at citrix.com Tue Jan 26 22:31:21 2016 From: david.ahrens at citrix.com (David Ahrens) Date: Tue, 26 Jan 2016 22:31:21 +0000 Subject: [rancid] rancid support for Brocade Fabric OS Message-ID: <642FAF39868FD54A909CBFC1DD8F61A70D6D6309@SJCPEX01CL02.citrite.net> Hi, Does Rancid work with Brocade switches? Thanks, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From frnkblk at iname.com Wed Jan 27 03:40:10 2016 From: frnkblk at iname.com (Frank Bulk) Date: Tue, 26 Jan 2016 21:40:10 -0600 Subject: [rancid] Can rancid work with Dlink and Edge-Core switches? In-Reply-To: References: Message-ID: <000201d158b4$6de189b0$49a49d10$@iname.com> Yes, I?ve gotten it working with the Edge-Core 3528. Frank From: Rancid-discuss [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Serge Torop Sent: Tuesday, January 26, 2016 4:01 PM To: rancid-discuss at shrubbery.net Subject: [rancid] Can rancid work with Dlink and Edge-Core switches? Hello, all, can rancid work with Dlink (DES-3200, DGS-3612, DGS-3620) and Edge-Core switches (ES 3528)? If you have working examples, please, reply. Thank you in advance. -- Serge P. Torop -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Wed Jan 27 07:25:15 2016 From: heas at shrubbery.net (heasley) Date: Wed, 27 Jan 2016 07:25:15 +0000 Subject: [rancid] Can rancid work with Dlink and Edge-Core switches? In-Reply-To: References: Message-ID: <20160127072515.GB33037@shrubbery.net> Wed, Jan 27, 2016 at 01:00:54AM +0300, Serge Torop: > can rancid work with Dlink (DES-3200, DGS-3612, DGS-3620) no idea; I have none of these. these are known to work in the alpha 3.2.99 as type dell # DES-3010F # DES-3052P # DES-3526 # DES-3550 or smc # DELL PowerConnect M8024 / M8024-k # DELL PowerConnect M6348 # DELL PowerConnect N2048, N4032F and N4064. # DELL PowerConnect 62xx # DELL 34xx (partially; configuration is incomplete) From heas at shrubbery.net Wed Jan 27 07:27:12 2016 From: heas at shrubbery.net (heasley) Date: Wed, 27 Jan 2016 07:27:12 +0000 Subject: [rancid] rancid support for Brocade Fabric OS In-Reply-To: <642FAF39868FD54A909CBFC1DD8F61A70D6D6309@SJCPEX01CL02.citrite.net> References: <642FAF39868FD54A909CBFC1DD8F61A70D6D6309@SJCPEX01CL02.citrite.net> Message-ID: <20160127072712.GC33037@shrubbery.net> Tue, Jan 26, 2016 at 10:31:21PM +0000, David Ahrens: > Does Rancid work with Brocade switches? another device that I do not have. others have said that brocades may work as foundry or cisco. test it. From howie at thingy.com Wed Jan 27 10:05:46 2016 From: howie at thingy.com (Howard Jones) Date: Wed, 27 Jan 2016 10:05:46 +0000 Subject: [rancid] rancid support for Brocade Fabric OS In-Reply-To: <20160127072712.GC33037@shrubbery.net> References: <642FAF39868FD54A909CBFC1DD8F61A70D6D6309@SJCPEX01CL02.citrite.net> <20160127072712.GC33037@shrubbery.net> Message-ID: <56A8967A.9000007@thingy.com> On 27/01/2016 07:27, heasley wrote: > Tue, Jan 26, 2016 at 10:31:21PM +0000, David Ahrens: >> Does Rancid work with Brocade switches? > another device that I do not have. others have said that brocades may work > as foundry or cisco. test it. > I have a custom device type 'fabricos' that uses 'brocaderancid'. I don't know where I got it from though. It looks like it came from this mailing list: http://www.shrubbery.net/pipermail/rancid-discuss/2011-January/005441.html Except my copy uses clogin and not a separate brocadelogin script. These guys have integrated a version of brocaderancid (using clogin) into their rancid 2.x fork: https://github.com/dotwaffle/rancid-git/blob/master/bin/brocaderancid.in Best Regards, Howard (the former Foundry range of *Iron devices is a whole other ball of wax more like Cisco) From jason at biel-tech.com Wed Jan 27 12:26:28 2016 From: jason at biel-tech.com (Jason Biel) Date: Wed, 27 Jan 2016 06:26:28 -0600 Subject: [rancid] rancid source Message-ID: Is the RANCiD source being maintained on githug or are there any plans to migrate to github? It would certainly make it easier to submit patches and discuss issues. -- Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: From roman.hochuli at nexellent.ch Wed Jan 27 16:30:41 2016 From: roman.hochuli at nexellent.ch (Roman Hochuli) Date: Wed, 27 Jan 2016 17:30:41 +0100 Subject: [rancid] rancid source In-Reply-To: References: Message-ID: <56A8F0B1.4070502@nexellent.ch> Hello Jason > Is the RANCiD source being maintained on githug or are there any plans > to migrate to github? It would certainly make it easier to submit > patches and discuss issues. Have a look here: https://github.com/dotwaffle/rancid-git -- Best regards, Roman Hochuli Operations Manager nexellent ag Saegereistrasse 33 CH-8152 Glattbrugg Phone: +41 44 872 20 00 Fax: +41 44 872 20 01 URL: www.nexellent.ch X-NCC-RegID: ch.nexellent Imagination is the one weapon in the war against reality. -- Jules de Gaultier From jason at biel-tech.com Wed Jan 27 16:37:03 2016 From: jason at biel-tech.com (Jason Biel) Date: Wed, 27 Jan 2016 10:37:03 -0600 Subject: [rancid] rancid source In-Reply-To: <56A8F0B1.4070502@nexellent.ch> References: <56A8F0B1.4070502@nexellent.ch> Message-ID: That is the git repo for when ability to use git was being supported independently. I don't believe that is current source from which Heasley is working. On Wed, Jan 27, 2016 at 10:30 AM, Roman Hochuli wrote: > Hello Jason > > > Is the RANCiD source being maintained on githug or are there any plans > > to migrate to github? It would certainly make it easier to submit > > patches and discuss issues. > > Have a look here: https://github.com/dotwaffle/rancid-git > > -- > Best regards, > Roman Hochuli > Operations Manager > > nexellent ag > Saegereistrasse 33 > CH-8152 Glattbrugg > > Phone: +41 44 872 20 00 > Fax: +41 44 872 20 01 > URL: www.nexellent.ch > X-NCC-RegID: ch.nexellent > > Imagination is the one weapon in the war > against reality. > -- Jules de Gaultier > > -- Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: From howie at thingy.com Wed Jan 27 17:54:25 2016 From: howie at thingy.com (Howard Jones) Date: Wed, 27 Jan 2016 17:54:25 +0000 Subject: [rancid] rancid source In-Reply-To: References: <56A8F0B1.4070502@nexellent.ch> Message-ID: <56A90451.5040909@thingy.com> I was looking at it this morning, and it seems to be a fork of RANCID 2.x (no rancid.types.conf, just rancid-fe) with git support added and a few extra device types. I agree that it would be useful to have a github/bitbucket/whatever repo for rancid though, for issues, tracking changes and pull requests... On 27/01/2016 16:37, Jason Biel wrote: > That is the git repo for when ability to use git was being supported > independently. > > I don't believe that is current source from which Heasley is working. > > On Wed, Jan 27, 2016 at 10:30 AM, Roman Hochuli > > wrote: > > Hello Jason > > > Is the RANCiD source being maintained on githug or are there any > plans > > to migrate to github? It would certainly make it easier to submit > > patches and discuss issues. > > Have a look here: https://github.com/dotwaffle/rancid-git > > -- > Best regards, > Roman Hochuli > Operations Manager > > nexellent ag > Saegereistrasse 33 > CH-8152 Glattbrugg > > Phone: +41 44 872 20 00 > Fax: +41 44 872 20 01 > URL: www.nexellent.ch > X-NCC-RegID: ch.nexellent > > Imagination is the one weapon in the war > against reality. > -- Jules de Gaultier > > > > > -- > Jason > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From rdrake at direcpath.com Wed Jan 27 16:47:12 2016 From: rdrake at direcpath.com (Robert Drake) Date: Wed, 27 Jan 2016 11:47:12 -0500 Subject: [rancid] rancid source In-Reply-To: References: <56A8F0B1.4070502@nexellent.ch> Message-ID: <56A8F490.8010405@direcpath.com> On 1/27/2016 11:37 AM, Jason Biel wrote: > That is the git repo for when ability to use git was being supported > independently. > > I don't believe that is current source from which Heasley is working. It isn't, but it has a branch called "upstream" which has 3.2 sources. The only official way to contribute is to send the patches via email. There isn't an official issues or pull request thing as far as I know. > > On Wed, Jan 27, 2016 at 10:30 AM, Roman Hochuli > > wrote: > > Hello Jason > > > Is the RANCiD source being maintained on githug or are there any > plans > > to migrate to github? It would certainly make it easier to submit > > patches and discuss issues. > > Have a look here: https://github.com/dotwaffle/rancid-git > > -- > Best regards, > Roman Hochuli > Operations Manager > > nexellent ag > Saegereistrasse 33 > CH-8152 Glattbrugg > > Phone: +41 44 872 20 00 > Fax: +41 44 872 20 01 > URL: www.nexellent.ch > X-NCC-RegID: ch.nexellent > > Imagination is the one weapon in the war > against reality. > -- Jules de Gaultier > > > > > -- > Jason > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss -------------- next part -------------- An HTML attachment was scrubbed... URL: From jason at biel-tech.com Wed Jan 27 19:26:41 2016 From: jason at biel-tech.com (Jason Biel) Date: Wed, 27 Jan 2016 13:26:41 -0600 Subject: [rancid] rancid source In-Reply-To: <56A8F490.8010405@direcpath.com> References: <56A8F0B1.4070502@nexellent.ch> <56A8F490.8010405@direcpath.com> Message-ID: Those 3.2 sources are manual imports from the tar.gz's pulled from the website as they get released. I was merely suggesting moving the actual source to github because it would make it significantly easier on them to deal with patches/additions via PR's than contributors emailing in code changes. On Wed, Jan 27, 2016 at 10:47 AM, Robert Drake wrote: > > > On 1/27/2016 11:37 AM, Jason Biel wrote: > > That is the git repo for when ability to use git was being supported > independently. > > I don't believe that is current source from which Heasley is working. > > > It isn't, but it has a branch called "upstream" which has 3.2 sources. > The only official way to contribute is to send the patches via email. > There isn't an official issues or pull request thing as far as I know. > > > > On Wed, Jan 27, 2016 at 10:30 AM, Roman Hochuli < > roman.hochuli at nexellent.ch> wrote: > >> Hello Jason >> >> > Is the RANCiD source being maintained on githug or are there any plans >> > to migrate to github? It would certainly make it easier to submit >> > patches and discuss issues. >> >> Have a look here: https://github.com/dotwaffle/rancid-git >> >> -- >> Best regards, >> Roman Hochuli >> Operations Manager >> >> nexellent ag >> Saegereistrasse 33 >> CH-8152 Glattbrugg >> >> Phone: +41 44 872 20 00 >> Fax: +41 44 872 20 01 >> URL: www.nexellent.ch >> X-NCC-RegID: ch.nexellent >> >> Imagination is the one weapon in the war >> against reality. >> -- Jules de Gaultier >> >> > > > -- > Jason > > > _______________________________________________ > Rancid-discuss mailing listRancid-discuss at shrubbery.nethttp://www.shrubbery.net/mailman/listinfo/rancid-discuss > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Thu Jan 28 00:39:05 2016 From: heas at shrubbery.net (heasley) Date: Thu, 28 Jan 2016 00:39:05 +0000 Subject: [rancid] Vdxrancid contributed script on working on my Brocade VDX In-Reply-To: References: <7EDDE3B155AD8D4EA602ECB7C94B8D314EA930C0@IT032V.mbc.com> Message-ID: <20160128003905.GB65691@shrubbery.net> > Another data point is that I never tested it with the newest rancid which > has a very different framework for adding new devices. I just want to point-out that scripts for rancid 2.8 will work with 3.x, the device type just needs to be defined in rancid.types.conf like type smc, which is still a 2.x-style script. From heas at shrubbery.net Thu Jan 28 00:48:08 2016 From: heas at shrubbery.net (heasley) Date: Thu, 28 Jan 2016 00:48:08 +0000 Subject: [rancid] rancid support for Brocade Fabric OS In-Reply-To: <56A8967A.9000007@thingy.com> References: <642FAF39868FD54A909CBFC1DD8F61A70D6D6309@SJCPEX01CL02.citrite.net> <20160127072712.GC33037@shrubbery.net> <56A8967A.9000007@thingy.com> Message-ID: <20160128004808.GH63800@shrubbery.net> Wed, Jan 27, 2016 at 10:05:46AM +0000, Howard Jones: > On 27/01/2016 07:27, heasley wrote: > > Tue, Jan 26, 2016 at 10:31:21PM +0000, David Ahrens: > >> Does Rancid work with Brocade switches? > > another device that I do not have. others have said that brocades may work > > as foundry or cisco. test it. > > > > I have a custom device type 'fabricos' that uses 'brocaderancid'. I > don't know where I got it from though. > > It looks like it came from this mailing list: > http://www.shrubbery.net/pipermail/rancid-discuss/2011-January/005441.html > > Except my copy uses clogin and not a separate brocadelogin script. > > These guys have integrated a version of brocaderancid (using clogin) > into their rancid 2.x fork: > https://github.com/dotwaffle/rancid-git/blob/master/bin/brocaderancid.in I really do not know brocade from my elbow. But, importing scripts that I can not test myself is potential for a lot of support grief for *me* - and a few generous ML contributors. I feel far more comfortable when a number of folks write on the ML that they use script R on V,V1,etc with login script L and its been reliable for N months - and I'm willing to test the import or give you remote access to one to do so. Who vouches for what scripts with what flavors of Brocade? > Best Regards, > > Howard > > (the former Foundry range of *Iron devices is a whole other ball of wax > more like Cisco) > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From jason at biel-tech.com Thu Jan 28 00:53:16 2016 From: jason at biel-tech.com (Jason Biel) Date: Wed, 27 Jan 2016 18:53:16 -0600 Subject: [rancid] rancid support for Brocade Fabric OS In-Reply-To: <20160128004808.GH63800@shrubbery.net> References: <642FAF39868FD54A909CBFC1DD8F61A70D6D6309@SJCPEX01CL02.citrite.net> <20160127072712.GC33037@shrubbery.net> <56A8967A.9000007@thingy.com> <20160128004808.GH63800@shrubbery.net> Message-ID: <3138967452162276207@unknownmsgid> I have Brocade VDXs and TurboIrons I can assist with. (I suggested in another thread about moving rancid to GitHub for reasons just like this. Would allow for collaboration in a much easier manner.) > On Jan 27, 2016, at 18:48, heasley wrote: > > Wed, Jan 27, 2016 at 10:05:46AM +0000, Howard Jones: >>> On 27/01/2016 07:27, heasley wrote: >>> Tue, Jan 26, 2016 at 10:31:21PM +0000, David Ahrens: >>>> Does Rancid work with Brocade switches? >>> another device that I do not have. others have said that brocades may work >>> as foundry or cisco. test it. >> >> I have a custom device type 'fabricos' that uses 'brocaderancid'. I >> don't know where I got it from though. >> >> It looks like it came from this mailing list: >> http://www.shrubbery.net/pipermail/rancid-discuss/2011-January/005441.html >> >> Except my copy uses clogin and not a separate brocadelogin script. >> >> These guys have integrated a version of brocaderancid (using clogin) >> into their rancid 2.x fork: >> https://github.com/dotwaffle/rancid-git/blob/master/bin/brocaderancid.in > > I really do not know brocade from my elbow. But, importing scripts that I > can not test myself is potential for a lot of support grief for *me* - and > a few generous ML contributors. I feel far more comfortable when a number > of folks write on the ML that they use script R on V,V1,etc with login > script L and its been reliable for N months - and I'm willing to test the > import or give you remote access to one to do so. > > Who vouches for what scripts with what flavors of Brocade? > >> Best Regards, >> >> Howard >> >> (the former Foundry range of *Iron devices is a whole other ball of wax >> more like Cisco) >> _______________________________________________ >> Rancid-discuss mailing list >> Rancid-discuss at shrubbery.net >> http://www.shrubbery.net/mailman/listinfo/rancid-discuss > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss From elliot.wilen at aechelon.com Thu Jan 28 01:05:22 2016 From: elliot.wilen at aechelon.com (Elliot Wilen) Date: Thu, 28 Jan 2016 01:05:22 +0000 Subject: [rancid] rancid support for Brocade Fabric OS In-Reply-To: <20160128004808.GH63800@shrubbery.net> References: <642FAF39868FD54A909CBFC1DD8F61A70D6D6309@SJCPEX01CL02.citrite.net> <20160127072712.GC33037@shrubbery.net> <56A8967A.9000007@thingy.com> <20160128004808.GH63800@shrubbery.net> Message-ID: <736C3AA4541A56418A535328BDC357590100F883FA@ATC1.corp.aechelon.com> Just want to mention what I wrote earlier off-list to the original querant: I've found that rancid works well with Brocade Fabric OS; at least I have it working with Fabric OS v7.3.1. On one switch, though, the zoning portion of the config seems to get truncated in random ways, which causes unnecessary revisions to be logged. I haven't had time to troubleshoot this, but I'm still using rancid 2.x. I use "brocade" in my router.db. Note that this is for Fabric OS. For my brocade _network_ switches, I use "foundry" and it works perfectly other than needing to tweak the script to ignore trivial changes. Apparently I added this at line 301 of francid: /^Invalid Port Id - 128/ && next; # kill bogus output from DEFECT000274041 But that may not even apply to current versions of the switch software or even to the Brocade-branded network switches as opposed to the older Foundry ones that I've retired since I started using rancid. --Elliot Wilen From heas at shrubbery.net Thu Jan 28 01:11:34 2016 From: heas at shrubbery.net (heasley) Date: Thu, 28 Jan 2016 01:11:34 +0000 Subject: [rancid] Newer Extreme box Message-ID: <20160128011134.GJ63800@shrubbery.net> If anyone has an Extreme Networks box with a recent O/S that they can allow me to access remotely, please write to me off-list. There appears to be a problem with clogin that affects this box which users have written the ML about a few times and I can't seem to figure-out the problem w/o a device to poke - and I have none of these. TiA. From heas at shrubbery.net Thu Jan 28 01:30:22 2016 From: heas at shrubbery.net (heasley) Date: Thu, 28 Jan 2016 01:30:22 +0000 Subject: [rancid] rancid support for Brocade Fabric OS In-Reply-To: <736C3AA4541A56418A535328BDC357590100F883FA@ATC1.corp.aechelon.com> References: <642FAF39868FD54A909CBFC1DD8F61A70D6D6309@SJCPEX01CL02.citrite.net> <20160127072712.GC33037@shrubbery.net> <56A8967A.9000007@thingy.com> <20160128004808.GH63800@shrubbery.net> <736C3AA4541A56418A535328BDC357590100F883FA@ATC1.corp.aechelon.com> Message-ID: <20160128013022.GL63800@shrubbery.net> Thu, Jan 28, 2016 at 01:05:22AM +0000, Elliot Wilen: > Just want to mention what I wrote earlier off-list to the original querant: > > I've found that rancid works well with Brocade Fabric OS; at least I have it working with Fabric OS v7.3.1. On one switch, though, the zoning portion of the config seems to get truncated in random ways, which causes unnecessary revisions to be logged. I haven't had time to troubleshoot this, but I'm still using rancid 2.x. > > I use "brocade" in my router.db. Note that this is for Fabric OS. For my brocade _network_ switches, I use "foundry" and it works perfectly other than needing to tweak the script to ignore trivial changes. Apparently I added this at line 301 of francid: > > /^Invalid Port Id - 128/ && next; # kill bogus output from DEFECT000274041 > > But that may not even apply to current versions of the switch software or even to the Brocade-branded network switches as opposed to the older Foundry ones that I've retired since I started using rancid. Thanks. Which script did you import for device type "brocade"? Or just provide it as an attachment, please. From elliot.wilen at aechelon.com Thu Jan 28 07:39:51 2016 From: elliot.wilen at aechelon.com (Elliot Wilen) Date: Thu, 28 Jan 2016 07:39:51 +0000 Subject: [rancid] rancid support for Brocade Fabric OS In-Reply-To: <20160128013022.GL63800@shrubbery.net> References: <642FAF39868FD54A909CBFC1DD8F61A70D6D6309@SJCPEX01CL02.citrite.net> <20160127072712.GC33037@shrubbery.net> <56A8967A.9000007@thingy.com> <20160128004808.GH63800@shrubbery.net> <736C3AA4541A56418A535328BDC357590100F883FA@ATC1.corp.aechelon.com>, <20160128013022.GL63800@shrubbery.net> Message-ID: <736C3AA4541A56418A535328BDC357590100F98F8A@ATC1.corp.aechelon.com> Ah, sorry, I forgot that I must have gotten the scripts from a 3rd party. Here are the files. -------------- next part -------------- A non-text attachment was scrubbed... Name: brocadelogin Type: application/octet-stream Size: 26079 bytes Desc: brocadelogin URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: brocaderancid Type: application/octet-stream Size: 16272 bytes Desc: brocaderancid URL: From GMcIntyre at blainsupply.com Thu Jan 28 16:05:37 2016 From: GMcIntyre at blainsupply.com (Greg McIntyre) Date: Thu, 28 Jan 2016 16:05:37 +0000 Subject: [rancid] Possible CVS errors...... Message-ID: <99EEF93C9248F74E8914B121F2E32C51011848D9@XMANDB2.blainsupply.com> Hello All I am using Red Hat for my OS and I downloaded the latest version of rancid. I installed rancid via these instructions: http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.Vqo6_PkrJQI I can connect to devices but the configs do not download. This is the error message I receive in the logs. starting: Wed Jan 27 14:59:42 CST 2016 cvs remove: cannot open CVS/Entries for reading: No such file or directory cvs remove: nothing known about `stores' cvs commit: cannot open CVS/Entries for reading: No such file or directory cvs commit: nothing known about `stores' cvs [commit aborted]: correct above errors first! Deleted stores cvs remove: cannot open CVS/Entries for reading: No such file or directory cvs remove: nothing known about `.cvsignore' cvs commit: cannot open CVS/Entries for reading: No such file or directory cvs commit: nothing known about `.cvsignore' cvs [commit aborted]: correct above errors first! Deleted .cvsignore cvs commit: cannot open CVS/Entries for reading: No such file or directory cvs commit: nothing known about `router.db' cvs [commit aborted]: correct above errors first! ending: Wed Jan 27 14:59:43 CST 2016 I ran the rancid-cvs command per the instructions but unlike the instructions I did not receive any output so I do not know if it errored. It did create some of the directories though. When I do a LS -lha under the CVS directory this is what I see. drwxrwxr-x. 3 rancid netadm 20 Jan 21 13:30 . drwxr-xr-x. 5 rancid netadm 44 Jan 21 13:30 .. drwxrwxr-x. 3 rancid netadm 4.0K Jan 21 13:30 CVSROOT What am I doing wrong? Thank you in advance for your help!! -GM -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Thu Jan 28 19:33:39 2016 From: heas at shrubbery.net (heasley) Date: Thu, 28 Jan 2016 19:33:39 +0000 Subject: [rancid] rancid support for Brocade Fabric OS In-Reply-To: <736C3AA4541A56418A535328BDC357590100F98F8A@ATC1.corp.aechelon.com> References: <642FAF39868FD54A909CBFC1DD8F61A70D6D6309@SJCPEX01CL02.citrite.net> <20160127072712.GC33037@shrubbery.net> <56A8967A.9000007@thingy.com> <20160128004808.GH63800@shrubbery.net> <736C3AA4541A56418A535328BDC357590100F883FA@ATC1.corp.aechelon.com> <20160128013022.GL63800@shrubbery.net> <736C3AA4541A56418A535328BDC357590100F98F8A@ATC1.corp.aechelon.com> Message-ID: <20160128193339.GJ1520@shrubbery.net> Thu, Jan 28, 2016 at 07:39:51AM +0000, Elliot Wilen: > Ah, sorry, I forgot that I must have gotten the scripts from a 3rd party. Here are the files. Thanks. Howard, would you provide your brocade script? From Sebastien.Boulianne at cpu.ca Thu Jan 28 23:25:11 2016 From: Sebastien.Boulianne at cpu.ca (Sebastien.Boulianne at cpu.ca) Date: Thu, 28 Jan 2016 18:25:11 -0500 Subject: [rancid] SSL error since I migrated from Squid3.5.10 to Squid3.5.13. Message-ID: <5FE0959288C73D448BB44CB7E9CC320F582A4247EE@CPUMAIL2.cpu.qc.ca> Hi, Since I migrated my Squid to the latest version, many many many users notified me they are SSL warning message. I haven't this issue with the Squid3.5.10. I used the Eliezer's yum package. On the browsers, I don't get any warning message. I used exactly the same config and the same wildcard certificate. When I run service squid status, I got this: Jan 28 18:17:30 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:30 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:30 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:30 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:30 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:31 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:31 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:31 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:31 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:31 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Anyone can explain me that please and tell me how to fix it ? Thanks you very much for your answer. S?bastien -------------- next part -------------- An HTML attachment was scrubbed... URL: From Sebastien.Boulianne at cpu.ca Thu Jan 28 23:27:04 2016 From: Sebastien.Boulianne at cpu.ca (Sebastien.Boulianne at cpu.ca) Date: Thu, 28 Jan 2016 18:27:04 -0500 Subject: [rancid] TR: SSL error since I migrated from Squid3.5.10 to Squid3.5.13. Message-ID: <5FE0959288C73D448BB44CB7E9CC320F582A4247EF@CPUMAIL2.cpu.qc.ca> I forgot to mention that happens only with phony and Active-Sync. Thanks for your answer. S?bastien Boulianne Administrateur r?seau & syst?me / Network & System Administrator (Windows & Linux). Gestion des infrastructures / Infrastructure Management. CCNA / CompTIA Server+ / Sp?cialiste en supervision. sebastien.boulianne at cpu.ca [cid:image001.jpg at 01D159F9.7CE18BE0] 2323, du Versant Nord, suite 100 Qu?bec (Qu?bec) G1N 4P4 T?l?phone : (418) 681 6974 poste 666 Ligne sans frais : 1 888 681 6974 T?l?copieur : (418) 681 1444 Information confidentielle : Le pr?sent message, ainsi que tout fichier qui y est joint, est envoy? ? l'intention exclusive de son ou de ses destinataires, il est de nature confidentielle et peut constituer une information privil?gi?e. Nous avertissons toute personne autre que le destinataire pr?vu que tout examen, r?acheminement, impression, copie, distribution ou autre utilisation de ce message et de tout fichier qui y est joint est strictement interdit. Si vous n'?tes pas le destinataire pr?vu, veuillez en aviser imm?diatement l'exp?diteur par retour de courriel et supprimer ce message et tout document joint de votre syst?me. Merci. Confidentiality Warning : This message and any attachments are intended only for the use of the intended recipient(s), are confidential, and may be privileged. If you are not the intended recipient, you are hereby notified that any review, retransmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, and delete this message and any attachments from your system. Thank you. ? G?rer c'est pr?voir (voir avant, avoir une vision de l'avenir) ? [cid:image002.jpg at 01D159F9.7CE18BE0] De : Sebastien Boulianne Envoy? : 28 janvier 2016 18:25 ? : Maillist Rancid (rancid-discuss at shrubbery.net) Objet : SSL error since I migrated from Squid3.5.10 to Squid3.5.13. Importance : Haute Hi, Since I migrated my Squid to the latest version, many many many users notified me they are SSL warning message. I haven't this issue with the Squid3.5.10. I used the Eliezer's yum package. On the browsers, I don't get any warning message. I used exactly the same config and the same wildcard certificate. When I run service squid status, I got this: Jan 28 18:17:30 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:30 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:30 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:30 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:30 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:31 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:31 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:31 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:31 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Jan 28 18:17:31 squid.cpu.ca squid[5147]: Error negotiating SSL connection on FD 155: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3...wn (1/0) Anyone can explain me that please and tell me how to fix it ? Thanks you very much for your answer. S?bastien -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 1648 bytes Desc: image001.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 3146 bytes Desc: image002.jpg URL: From alan.mckinnon at gmail.com Thu Jan 28 23:42:26 2016 From: alan.mckinnon at gmail.com (Alan McKinnon) Date: Fri, 29 Jan 2016 01:42:26 +0200 Subject: [rancid] TR: SSL error since I migrated from Squid3.5.10 to Squid3.5.13. In-Reply-To: <5FE0959288C73D448BB44CB7E9CC320F582A4247EF@CPUMAIL2.cpu.qc.ca> References: <5FE0959288C73D448BB44CB7E9CC320F582A4247EF@CPUMAIL2.cpu.qc.ca> Message-ID: <56AAA762.3070409@gmail.com> On 29/01/2016 01:27, Sebastien.Boulianne at cpu.ca wrote: > I forgot to mention that happens only with phony and Active-Sync. This does not appear to be a rancid problem. Did you select the wrong address from the address book? > > > > Thanks for your answer. > > > > *S?bastien Boulianne* > Administrateur r?seau & syst?me / Network & System Administrator > (Windows & Linux). > > Gestion des infrastructures / Infrastructure Management. > > CCNA / CompTIA Server+ / Sp?cialiste en supervision. > > sebastien.boulianne at cpu.ca > > > *cid:image001.jpg at 01CEC690.4B3492D0* > > > > * > 2323, du Versant Nord, suite 100 > Qu?bec (Qu?bec) G1N 4P4 > T?l?phone : (418) 681 6974 poste 666* > > *Ligne sans frais : 1 888 681 6974 > T?l?copieur : (418) 681 1444*** > > _Information confidentielle :_Le pr?sent message, ainsi que tout fichier > qui y est joint, est envoy? ? l'intention exclusive de son ou de ses > destinataires, il est de nature confidentielle et peut constituer une > information privil?gi?e. Nous avertissons toute personne autre que le > destinataire pr?vu que tout examen, r?acheminement, impression, copie, > distribution ou autre utilisation de ce message et de tout fichier qui y > est joint est strictement interdit. Si vous n'?tes pas le destinataire > pr?vu, veuillez en aviser imm?diatement l'exp?diteur par retour de > courriel et supprimer ce message et tout document joint de votre > syst?me. Merci. > > > > _Confidentiality Warning :_This message and any attachments are intended > only for the use of the intended recipient(s), are confidential, and may > be privileged. If you are not the intended recipient, you are hereby > notified that any review, retransmission, conversion to hard copy, > copying, circulation or other use of this message and any attachments is > strictly prohibited. If you are not the intended recipient, please > notify the sender immediately by return e-mail, and delete this message > and any attachments from your system. Thank you. > > > > *? G?rer c?est pr?voir (voir avant, avoir une vision de l?avenir) ?* > > cid:image002.jpg at 01CF5EF5.CC7DD1F0 > > > > *De :*Sebastien Boulianne > *Envoy? :* 28 janvier 2016 18:25 > *? :* Maillist Rancid (rancid-discuss at shrubbery.net) > > *Objet :* SSL error since I migrated from Squid3.5.10 to Squid3.5.13. > *Importance :* Haute > > > > Hi, > > > > Since I migrated my Squid to the latest version, many many many users > notified me they are SSL warning message. > > I haven?t this issue with the Squid3.5.10. > > I used the Eliezer?s yum package. > > > > On the browsers, I don?t get any warning message. > > > > I used exactly the same config and the same wildcard certificate. > > > > When I run service squid status, I got this: > > Jan 28 18:17:30 squid.cpu.ca squid[5147]: Error negotiating SSL > connection on FD 155: error:14094416:SSL > routines:SSL3_READ_BYTES:sslv3...wn (1/0) > > Jan 28 18:17:30 squid.cpu.ca squid[5147]: Error negotiating SSL > connection on FD 155: error:14094416:SSL > routines:SSL3_READ_BYTES:sslv3...wn (1/0) > > Jan 28 18:17:30 squid.cpu.ca squid[5147]: Error negotiating SSL > connection on FD 155: error:14094416:SSL > routines:SSL3_READ_BYTES:sslv3...wn (1/0) > > Jan 28 18:17:30 squid.cpu.ca squid[5147]: Error negotiating SSL > connection on FD 155: error:14094416:SSL > routines:SSL3_READ_BYTES:sslv3...wn (1/0) > > Jan 28 18:17:30 squid.cpu.ca squid[5147]: Error negotiating SSL > connection on FD 155: error:14094416:SSL > routines:SSL3_READ_BYTES:sslv3...wn (1/0) > > Jan 28 18:17:31 squid.cpu.ca squid[5147]: Error negotiating SSL > connection on FD 155: error:14094416:SSL > routines:SSL3_READ_BYTES:sslv3...wn (1/0) > > Jan 28 18:17:31 squid.cpu.ca squid[5147]: Error negotiating SSL > connection on FD 155: error:14094416:SSL > routines:SSL3_READ_BYTES:sslv3...wn (1/0) > > Jan 28 18:17:31 squid.cpu.ca squid[5147]: Error negotiating SSL > connection on FD 155: error:14094416:SSL > routines:SSL3_READ_BYTES:sslv3...wn (1/0) > > Jan 28 18:17:31 squid.cpu.ca squid[5147]: Error negotiating SSL > connection on FD 155: error:14094416:SSL > routines:SSL3_READ_BYTES:sslv3...wn (1/0) > > Jan 28 18:17:31 squid.cpu.ca squid[5147]: Error negotiating SSL > connection on FD 155: error:14094416:SSL > routines:SSL3_READ_BYTES:sslv3...wn (1/0) > > > > Anyone can explain me that please and tell me how to fix it ? > > > > Thanks you very much for your answer. > > > > S?bastien > > > > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -- Alan McKinnon alan.mckinnon at gmail.com From howie at thingy.com Fri Jan 29 10:14:17 2016 From: howie at thingy.com (Howard Jones) Date: Fri, 29 Jan 2016 10:14:17 +0000 Subject: [rancid] rancid support for Brocade Fabric OS In-Reply-To: <20160128193339.GJ1520@shrubbery.net> References: <642FAF39868FD54A909CBFC1DD8F61A70D6D6309@SJCPEX01CL02.citrite.net> <20160127072712.GC33037@shrubbery.net> <56A8967A.9000007@thingy.com> <20160128004808.GH63800@shrubbery.net> <736C3AA4541A56418A535328BDC357590100F883FA@ATC1.corp.aechelon.com> <20160128013022.GL63800@shrubbery.net> <736C3AA4541A56418A535328BDC357590100F98F8A@ATC1.corp.aechelon.com> <20160128193339.GJ1520@shrubbery.net> Message-ID: <56AB3B79.7030108@thingy.com> On 28/01/2016 19:33, heasley wrote: > Thu, Jan 28, 2016 at 07:39:51AM +0000, Elliot Wilen: >> Ah, sorry, I forgot that I must have gotten the scripts from a 3rd party. Here are the files. > > Thanks. Howard, would you provide your brocade script? > Sure, here it is. We're using this against some relatively ancient IBM OEMed Brocade 8G fabrics. -------------- next part -------------- #! /usr/bin/perl ## ## $Id: rancid.in 2168 2010-03-23 23:19:15Z heas $ ## ## rancid 2.3.3 ## Copyright (c) 1997-2009 by Terrapin Communications, Inc. ## All rights reserved. ## ## This code is derived from software contributed to and maintained by ## Terrapin Communications, Inc. by Henry Kilmer, John Heasley, Andrew Partan, ## Pete Whiting, Austin Schutz, and Andrew Fort. # ## Redistribution and use in source and binary forms, with or without ## modification, are permitted provided that the following conditions ## are met: ## 1. Redistributions of source code must retain the above copyright ## notice, this list of conditions and the following disclaimer. ## 2. Redistributions in binary form must reproduce the above copyright ## notice, this list of conditions and the following disclaimer in the ## documentation and/or other materials provided with the distribution. ## 3. All advertising materials mentioning features or use of this software ## must display the following acknowledgement: ## This product includes software developed by Terrapin Communications, ## Inc. and its contributors for RANCID. ## 4. Neither the name of Terrapin Communications, Inc. nor the names of its ## contributors may be used to endorse or promote products derived from ## this software without specific prior written permission. ## 5. It is requested that non-binding fixes and modifications be contributed ## back to Terrapin Communications, Inc. ## ## THIS SOFTWARE IS PROVIDED BY Terrapin Communications, INC. AND CONTRIBUTORS ## ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED ## TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR ## PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COMPANY OR CONTRIBUTOR# ## BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ## CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ## INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN ## CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ## ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ## POSSIBILITY OF SUCH DAMAGE. # # RANCID - Really Awesome New Cisco confIg Differ # # usage: rancid [-dV] [-l] [-f filename | hostname] # use Getopt::Std; getopts('dflV'); if ($opt_V) { print "rancid 2.3.3\n"; exit(0); } $log = $opt_l; $debug = $opt_d; $file = $opt_f; $host = $ARGV[0]; $proc = ""; $ios = "IOS"; $clean_run = 0; $found_end = 0; $found_version = 0; $found_env = 0; $found_diag = 0; $timeo = 90; # clogin timeout in seconds my(@commandtable, %commands, @commands);# command lists my($aclsort) = ("ipsort"); # ACL sorting mode my($config_register); # configuration register value my($filter_commstr); # SNMP community string filtering my($filter_pwds); # password filtering mode # This routine is used to print out the router configuration sub ProcessHistory { my($new_hist_tag,$new_command,$command_string, at string) = (@_); if ((($new_hist_tag ne $hist_tag) || ($new_command ne $command)) && defined %history) { print eval "$command \%history"; undef %history; } if (($new_hist_tag) && ($new_command) && ($command_string)) { if ($history{$command_string}) { $history{$command_string} = "$history{$command_string}@string"; } else { $history{$command_string} = "@string"; } } elsif (($new_hist_tag) && ($new_command)) { $history{++$#history} = "@string"; } else { print "@string"; } $hist_tag = $new_hist_tag; $command = $new_command; 1; } sub numerically { $a <=> $b; } # This is a sort routine that will sort numerically on the # keys of a hash as if it were a normal array. sub keynsort { local(%lines) = @_; local($i) = 0; local(@sorted_lines); foreach $key (sort numerically keys(%lines)) { $sorted_lines[$i] = $lines{$key}; $i++; } @sorted_lines; } # This is a sort routine that will sort on the # keys of a hash as if it were a normal array. sub keysort { local(%lines) = @_; local($i) = 0; local(@sorted_lines); foreach $key (sort keys(%lines)) { $sorted_lines[$i] = $lines{$key}; $i++; } @sorted_lines; } # This is a sort routine that will sort on the # values of a hash as if it were a normal array. sub valsort{ local(%lines) = @_; local($i) = 0; local(@sorted_lines); foreach $key (sort values %lines) { $sorted_lines[$i] = $key; $i++; } @sorted_lines; } # This is a numerical sort routine (ascending). sub numsort { local(%lines) = @_; local($i) = 0; local(@sorted_lines); foreach $num (sort {$a <=> $b} keys %lines) { $sorted_lines[$i] = $lines{$num}; $i++; } @sorted_lines; } # This is a sort routine that will sort on the # ip address when the ip address is anywhere in # the strings. sub ipsort { local(%lines) = @_; local($i) = 0; local(@sorted_lines); foreach $addr (sort sortbyipaddr keys %lines) { $sorted_lines[$i] = $lines{$addr}; $i++; } @sorted_lines; } # These two routines will sort based upon IP addresses sub ipaddrval { my(@a) = ($_[0] =~ m#^(\d+)\.(\d+)\.(\d+)\.(\d+)$#); $a[3] + 256 * ($a[2] + 256 * ($a[1] +256 * $a[0])); } sub sortbyipaddr { &ipaddrval($a) <=> &ipaddrval($b); } # This routine processes a "configShow" sub ConfigShow { print STDERR " In configShow: $_" if ($debug); my($lineauto,$comment,$linecnt) = (0,0,0); ProcessHistory("CONFIGSHOW","","","!CONFIGURATION\n"); ProcessHistory("CONFIGSHOW","","","!--------------\n!\n"); while () { tr/\015//d; last if (/^$prompt/); return(1) if (!$linecnt && /^\s+\^\s*$/); return(1) if (/Line has invalid autocommand /); return(1) if (/(Invalid (input|command) detected|Type help or )/i); return(1) if (/\%Error: No such file or directory/); return(0) if ($found_end); # Only do this routine once return(-1) if (/command authorization failed/i); return(-1) if (/% ?configuration buffer full/i); # the pager can not be disabled per-session on the PIX if (/^(<-+ More -+>)/) { my($len) = length($1); s/^$1\s{$len}//; } /^(date =)/ && next; /^! no configuration change since last restart/i && next; # skip emtpy lines at the beginning if (!$linecnt && /^\s*$/) { next; } # catch anything that wasnt matched above. ProcessHistory("","","","$_"); # end of config. the ": " game is for the PIX #if (/^(: +)?end$/) { if (/End : 0/) { $found_end = 1; return(0); } } return(0); } # This routine parses "chassisShow". sub ChassisShow { print STDERR " In ChassisShow: $_" if ($debug); while () { tr/\015//d; return if (/^\s*\^$/); last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); return(1) if (/Line has invalid autocommand /); return(1) if (/(Invalid (input|command) detected|Type help or )/i); return(-1) if (/command authorization failed/i); # the pager can not be disabled per-session on the PIX if (/^(<-+ More -+>)/) { my($len) = length($1); s/^$1\s{$len}//; } # skip emtpy lines at the beginning if (!$linecnt && /^\s*$/) { next; } if (/^Header Version:/) { ProcessHistory("INVENTORY","","Header Version:","!$_"); next; } if (/^Factory Part Num:/) { ProcessHistory("INVENTORY","","Factory Part #:","!$_"); next; } if (/^Factory Serial Num:/) { ProcessHistory("INVENTORY","","Factory Serial #:","!$_"); next; } if (/^ID:/) { ProcessHistory("INVENTORY","","ID:","!$_"); next; } if (/^Part Num:/) { ProcessHistory("INVENTORY","","Part Num:","!$_"); next; } if (/^Serial Num:/) { ProcessHistory("INVENTORY","","Serial Num:","!$_"); next; } /^(POWER SUPPLY Unit:|FAN Unit:|Time Awake:|Time Alive:|Time Awake:|CHASSIS|Update:|Manufacture:)/ && next; ProcessHistory("INVENTORY","","","!$_"); } ProcessHistory("INVENTORY","","","!\n"); return(0); } # This routine parses "firmwareShow". sub FirmwareShow { print STDERR " In FirmwareShow: $_" if ($debug); ProcessHistory("FIRMWARE","","","!FIRMWARE\n"); ProcessHistory("FIRMWARE","","","!---------\n!\n"); while () { tr/\015//d; return if (/^\s*\^$/); last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); return(1) if (/Line has invalid autocommand /); return(1) if (/(Invalid (input|command) detected|Type help or )/i); return(-1) if (/command authorization failed/i); # the pager can not be disabled per-session on the PIX if (/^(<-+ More -+>)/) { my($len) = length($1); s/^$1\s{$len}//; } # skip emtpy lines at the beginning if (!$linecnt && /^\s*$/) { next; } if (/^FOS:/) { ProcessHistory("FIRMWARE","","Header Version:","!$_"); next; } /^(Appl|-)/ && next; ProcessHistory("FIRMWARE","","","!$_"); } ProcessHistory("FIRMWARE","","","!\n"); return(0); } # This routine parses "fosConfig". sub FosConfig { print STDERR " In FosConfig: $_" if ($debug); while () { tr/\015//d; return if (/^\s*\^$/); last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); return(1) if (/Line has invalid autocommand /); return(1) if (/(Invalid (input|command) detected|Type help or )/i); return(-1) if (/command authorization failed/i); # the pager can not be disabled per-session on the PIX if (/^(<-+ More -+>)/) { my($len) = length($1); s/^$1\s{$len}//; } # skip emtpy lines at the beginning if (!$linecnt && /^\s*$/) { next; } ProcessHistory("FOSCONFIG","","","!$_"); } ProcessHistory("FOSCONFIG","","","!\n"); return(0); } # This routine parses "licenseShow". sub LicenseShow { print STDERR " In LicenseShow: $_" if ($debug); ProcessHistory("LICENSE","","","!LICENSE KEYS\n"); ProcessHistory("LICENSE","","","!-------------\n!\n"); while () { tr/\015//d; return if (/^\s*\^$/); last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); return(1) if (/Line has invalid autocommand /); return(1) if (/(Invalid (input|command) detected|Type help or )/i); return(-1) if (/command authorization failed/i); # the pager can not be disabled per-session on the PIX if (/^(<-+ More -+>)/) { my($len) = length($1); s/^$1\s{$len}//; } # skip emtpy lines at the beginning if (!$linecnt && /^\s*$/) { next; } ProcessHistory("LICENSE","","","!$_"); } ProcessHistory("LICENSE","","","!\n"); return(0); } # This routine parses "ipAddrShow". sub IpAddrShow { print STDERR " In IpAddrShow: $_" if ($debug); ProcessHistory("IPSHOW","","","!IP ADDRESSING\n"); ProcessHistory("IPSHOW","","","!--------------\n!\n"); while () { tr/\015//d; return if (/^\s*\^$/); last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); return(1) if (/Line has invalid autocommand /); return(1) if (/(Invalid (input|command) detected|Type help or )/i); return(-1) if (/command authorization failed/i); # the pager can not be disabled per-session on the PIX if (/^(<-+ More -+>)/) { my($len) = length($1); s/^$1\s{$len}//; } # skip emtpy lines at the beginning if (!$linecnt && /^\s*$/) { next; } /^(SWITCH)/ && next; ProcessHistory("IPADDRSHOW","","","!$_"); } ProcessHistory("IPADDRSHOW","","","!\n"); return(0); } # This routine parses "domainsShow". sub DomainsShow { print STDERR " In DomainsShow: $_" if ($debug); ProcessHistory("DOMAINS","","","!DOMAINS\n"); ProcessHistory("DOMAINS","","","!--------\n!\n"); while () { tr/\015//d; return if (/^\s*\^$/); last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); return(1) if (/Line has invalid autocommand /); return(1) if (/(Invalid (input|command) detected|Type help or )/i); return(-1) if (/command authorization failed/i); # the pager can not be disabled per-session on the PIX if (/^(<-+ More -+>)/) { my($len) = length($1); s/^$1\s{$len}//; } # skip emtpy lines at the beginning if (!$linecnt && /^\s*$/) { next; } ProcessHistory("DOMAINS","","","!$_"); } ProcessHistory("DOMAINS","","","!\n"); return(0); } # dummy function sub DoNothing {print STDOUT;} # Main @commandtable = ( {'chassisShow' => 'ChassisShow'}, {'firmwareShow' => 'FirmwareShow'}, {'version' => 'FirmwareShow'}, {'zoneshow' => 'FirmwareShow'}, {'portcfgshow' => 'FirmwareShow'}, #{'fosConfig --show' => 'Fosconfig'}, {'ipAddrShow' => 'IpAddrShow'}, {'licenseShow' => 'LicenseShow'}, {'domainsShow' => 'DomainsShow'}, {'configShow' => 'ConfigShow'} ); # Use an array to preserve the order of the commands and a hash for mapping # commands to the subroutine and track commands that have been completed. @commands = map(keys(%$_), @commandtable); %commands = map(%$_, @commandtable); $cisco_cmds = join(";", at commands); $cmds_regexp = join("|", map quotemeta($_), @commands); if (length($host) == 0) { if ($file) { print(STDERR "Too few arguments: file name required\n"); exit(1); } else { print(STDERR "Too few arguments: host name required\n"); exit(1); } } open(OUTPUT,">$host.new") || die "Can't open $host.new for writing: $!\n"; select(OUTPUT); # make OUTPUT unbuffered if debugging if ($debug) { $| = 1; } if ($file) { print STDERR "opening file $host\n" if ($debug); print STDOUT "opening file $host\n" if ($log); open(INPUT,"<$host") || die "open failed for $host: $!\n"; } else { print STDERR "executing clogin -t $timeo -c\"$cisco_cmds\" $host\n" if ($debug); print STDOUT "executing clogin -t $timeo -c\"$cisco_cmds\" $host\n" if ($log); if (defined($ENV{NOPIPE})) { system "clogin -t $timeo -c \"$cisco_cmds\" $host $host.raw 2>&1" || die "clogin failed for $host: $!\n"; open(INPUT, "< $host.raw") || die "clogin failed for $host: $!\n"; } else { open(INPUT,"clogin -t $timeo -c \"$cisco_cmds\" $host ) { tr/\015//d; if (/[>]\s?exit$/) { $clean_run = 1; last; } if (/^Error:/) { print STDOUT ("$host clogin error: $_"); print STDERR ("$host clogin error: $_") if ($debug); $clean_run = 0; last; } while (/>\s*($cmds_regexp)\s*$/) { $cmd = $1; if (!defined($prompt)) { $prompt = ($_ =~ /^([^>]+>)/)[0]; $prompt =~ s/([][}{)(\\])/\\$1/g; print STDERR ("PROMPT MATCH: $prompt\n") if ($debug); } print STDERR ("HIT COMMAND:$_") if ($debug); if (! defined($commands{$cmd})) { print STDERR "$host: found unexpected command - \"$cmd\"\n"; $clean_run = 0; last TOP; } $rval = &{$commands{$cmd}}; delete($commands{$cmd}); if ($rval == -1) { $clean_run = 0; last TOP; } } } print STDOUT "Done $logincmd: $_\n" if ($log); # Flush History ProcessHistory("","","",""); # Cleanup close(INPUT); close(OUTPUT); if (defined($ENV{NOPIPE})) { unlink("$host.raw") if (! $debug); } # check for completeness if (scalar(%commands) || !$clean_run || !$found_end) { if (scalar(%commands)) { printf(STDOUT "$host: missed cmd(s): %s\n", join(',', keys(%commands))); printf(STDERR "$host: missed cmd(s): %s\n", join(',', keys(%commands))) if ($debug); } if (!$clean_run || !$found_end) { print STDOUT "$host: End of run not found\n"; print STDERR "$host: End of run not found\n" if ($debug); system("/usr/bin/tail -1 $host.new"); } unlink "$host.new" if (! $debug); } From yllam at lbl.gov Fri Jan 29 15:21:52 2016 From: yllam at lbl.gov (Yu Lok Lam) Date: Fri, 29 Jan 2016 15:21:52 +0000 (UTC) Subject: [rancid] RANCID 3.2 - rancid-run - Error: TIMEOUT reached Message-ID: Hi, I am having a difficult time configuring rancid-run to work. In the log file, I am getting "Error: TIMEOUT reached. I am able to get in manually via csblogin (sane as clogin) script into enable mode. I've tried adding the "add timeout * 90" and 500 seconds and "add autoenable * 1" directive in the .cloginrc file, but still the same error. Do you have any ideas of what else I should try? I am running Rancid 3.2 version. ##### Successful going in manually ########## [rancid at rancid bin]$ ./csblogin env-d1-sw1 env-d1-sw1 spawn ssh -c 3des -x -l abcd env-d1-sw1 User Name: abcd Password:********* env-d1-sw1> ###### Failed using rancid-run; Error: TIMEOUT reached in the log file ####### Error logs: [rancid at rancid logs]$ tail -f env-switches.20160128.202252 cvs remove: nothing known about `interface' cvs commit: nothing known about `interface' cvs [commit aborted]: correct above errors first! Deleted interface cvs remove: nothing known about `[interface]' cvs commit: nothing known about `[interface]' cvs [commit aborted]: correct above errors first! Deleted [interface] Trying to get all of the configs. env-d1-sw1 csblogin error: Error: TIMEOUT reached env-d1-sw1: missed cmd(s): show version,show system,show startup-config env-d1-sw1: End of run not found ! ===================================== Getting missed routers: round 1. ^C [rancid at rancid logs]$ Thanks, -Yulok Lam From heas at shrubbery.net Fri Jan 29 18:24:18 2016 From: heas at shrubbery.net (heasley) Date: Fri, 29 Jan 2016 18:24:18 +0000 Subject: [rancid] RANCID 3.2 - rancid-run - Error: TIMEOUT reached In-Reply-To: References: Message-ID: <20160129182418.GD35803@shrubbery.net> Fri, Jan 29, 2016 at 03:21:52PM +0000, Yu Lok Lam: > Hi, > > I am having a difficult time configuring rancid-run to work. In the log file, I am getting "Error: TIMEOUT reached. I am able to get in manually via csblogin (sane as clogin) script into enable mode. > > I've tried adding the "add timeout * 90" and 500 seconds and "add autoenable * 1" directive in the .cloginrc file, but still the same error. Do you have any ideas of what else I should try? > I am running Rancid 3.2 version. please see the FAQ for debugging login problems. > ##### Successful going in manually ########## > [rancid at rancid bin]$ ./csblogin env-d1-sw1 and csblogin does not come with rancid; so, YMMV, but the principles in the FAQ should still apply. From elliot.wilen at aechelon.com Fri Jan 29 19:00:22 2016 From: elliot.wilen at aechelon.com (Elliot Wilen) Date: Fri, 29 Jan 2016 19:00:22 +0000 Subject: [rancid] rancid support for Brocade Fabric OS In-Reply-To: <56AB3B79.7030108@thingy.com> References: <642FAF39868FD54A909CBFC1DD8F61A70D6D6309@SJCPEX01CL02.citrite.net> <20160127072712.GC33037@shrubbery.net> <56A8967A.9000007@thingy.com> <20160128004808.GH63800@shrubbery.net> <736C3AA4541A56418A535328BDC357590100F883FA@ATC1.corp.aechelon.com> <20160128013022.GL63800@shrubbery.net> <736C3AA4541A56418A535328BDC357590100F98F8A@ATC1.corp.aechelon.com> <20160128193339.GJ1520@shrubbery.net> <56AB3B79.7030108@thingy.com> Message-ID: <736C3AA4541A56418A535328BDC357590100FA1354@ATC1.corp.aechelon.com> Comparing Howard's version of the script to mine, I see a few differences, one of which may be a modification I made. Instead of using configShow directly, my script uses configUpload -all and saves it to a local file on the switch, followed by configShow -l to display that file. I think this yields a more complete configuration similar to what one would use to back up the switch via ftp. His version also has a couple additions relative to whatever the common source was. From c4632 at comcast.net Fri Jan 29 21:51:07 2016 From: c4632 at comcast.net (c4632 at comcast.net) Date: Fri, 29 Jan 2016 21:51:07 +0000 (UTC) Subject: [rancid] Cisco flash changes observed after 1st time install In-Reply-To: <326759348.12494174.1454103353116.JavaMail.zimbra@comcast.net> Message-ID: <400836532.12506632.1454104267290.JavaMail.zimbra@comcast.net> New user here, no luck via Google, hoping someone here has seen this behavior. Rancid 3.1 on CentOS 6.7 I got my first Rancid instance up and noticed the following in the diff: - !Flash: 294 4096 Jan 29 2016 03:02:19 LOCAL-CA-SERVER + !Flash: 294 4096 Jan 29 2016 09:01:46 LOCAL-CA-SERVER - !Flash: 3868 282 Jan 29 2016 03:02:19 LOCAL-CA-SERVER/LOCAL-CA-SERVER.crl + !Flash: 3870 282 Jan 29 2016 09:01:46 LOCAL-CA-SERVER/LOCAL-CA-SERVER.crl This happened a few times through the night, the only thing changing is the timestamp. I'm hoping someone here can advise if either: a) this is normal and there is a way to suppress this from triggering a diff report, or b) I should be concerned and rancid is telling me so. MTIA! -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Fri Jan 29 23:09:31 2016 From: heas at shrubbery.net (heasley) Date: Fri, 29 Jan 2016 23:09:31 +0000 Subject: [rancid] Cisco flash changes observed after 1st time install In-Reply-To: <400836532.12506632.1454104267290.JavaMail.zimbra@comcast.net> References: <326759348.12494174.1454103353116.JavaMail.zimbra@comcast.net> <400836532.12506632.1454104267290.JavaMail.zimbra@comcast.net> Message-ID: <20160129230931.GB41877@shrubbery.net> Fri, Jan 29, 2016 at 09:51:07PM +0000, c4632 at comcast.net: > New user here, no luck via Google, hoping someone here has seen this behavior. > > Rancid 3.1 on CentOS 6.7 > > I got my first Rancid instance up and noticed the following in the diff: > > - !Flash: 294 4096 Jan 29 2016 03:02:19 LOCAL-CA-SERVER > + !Flash: 294 4096 Jan 29 2016 09:01:46 LOCAL-CA-SERVER > - !Flash: 3868 282 Jan 29 2016 03:02:19 LOCAL-CA-SERVER/LOCAL-CA-SERVER.crl > + !Flash: 3870 282 Jan 29 2016 09:01:46 LOCAL-CA-SERVER/LOCAL-CA-SERVER.crl > > This happened a few times through the night, the only thing changing is the timestamp. > > I'm hoping someone here can advise if either: > a) this is normal and there is a way to suppress this from triggering a diff report, or > b) I should be concerned and rancid is telling me so. I do not know why those would change automatically, but it is likely that it is regularly re-writing it; cisco has had bugs like this many times. A new IOS may fix it. Do you have another device with which you can compare it? From chris.gauthier at rentrakmail.com Fri Jan 29 22:15:55 2016 From: chris.gauthier at rentrakmail.com (Chris Gauthier) Date: Fri, 29 Jan 2016 14:15:55 -0800 Subject: [rancid] Cisco flash changes observed after 1st time install In-Reply-To: <400836532.12506632.1454104267290.JavaMail.zimbra@comcast.net> References: <326759348.12494174.1454103353116.JavaMail.zimbra@comcast.net> <400836532.12506632.1454104267290.JavaMail.zimbra@comcast.net> Message-ID: Looks like you have a process touching or updating the files on that device. Can you provide more specifics as to the device model, OS, etc? Thanks, Chris Gauthier, CCNP Sr. Network Engineer DIRECT 503.284.7581 x245 MOBILE 971.804.3387 chris.gauthier at rentrak.com rentrak.com / *NASDAQ*: RENT On Fri, Jan 29, 2016 at 1:51 PM, wrote: > New user here, no luck via Google, hoping someone here has seen this > behavior. > > Rancid 3.1 on CentOS 6.7 > > I got my first Rancid instance up and noticed the following in the diff: > > - !Flash: 294 4096 Jan 29 2016 03:02:19 LOCAL-CA-SERVER > + !Flash: 294 4096 Jan 29 2016 09:01:46 LOCAL-CA-SERVER > - !Flash: 3868 282 Jan 29 2016 03:02:19 > LOCAL-CA-SERVER/LOCAL-CA-SERVER.crl > + !Flash: 3870 282 Jan 29 2016 09:01:46 > LOCAL-CA-SERVER/LOCAL-CA-SERVER.crl > > This happened a few times through the night, the only thing changing is > the timestamp. > > I'm hoping someone here can advise if either: > a) this is normal and there is a way to suppress this from triggering a > diff report, or > b) I should be concerned and rancid is telling me so. > > MTIA! > > > _______________________________________________ > Rancid-discuss mailing list > Rancid-discuss at shrubbery.net > http://www.shrubbery.net/mailman/listinfo/rancid-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nachofw at adinet.com.uy Sat Jan 30 01:45:52 2016 From: nachofw at adinet.com.uy (nachofw) Date: Fri, 29 Jan 2016 22:45:52 -0300 Subject: [rancid] html colorized mail diffs Message-ID: Hi guys, im trying to send colorized mails diffs from rancid.I?ve found a very nice bash script that converts the output from diff to html. Can anyone help me make it work with rancid??So far I have tried this config with no succes:MAILHEADERS="Content-Type: text/html; charset=ISO-8859-1"; export MAILHEADERSDIFFSCRIPT="diff2html"; export DIFFSCRIPT The script which works perfectly from command line:?#!/bin/bash## Convert diff output to colorized HTML.?cat <Colorized Diff
XX?echo -n ''?first=1diffseen=0lastonly=0?OIFS=$IFSIFS=''?# The -r option keeps the backslash from being an escape char.read -r s?while [[ $? -eq 0 ]]do??? # Get beginning of line to determine what type??? # of diff line it is.??? t1=${s:0:1}??? t2=${s:0:2}??? t3=${s:0:3}??? t4=${s:0:4}??? t7=${s:0:7}???? # Determine HTML class to use.??? if??? [[ "$t7" == 'Only in' ]]; then??????? cls='only'??????? if [[ $diffseen -eq 0 ]]; then??????????? diffseen=1??????????? echo -n ''??????? else??????????? if [[ $lastonly -eq 0 ]]; then??????????????? echo ""??????????? fi??????? fi??????? if [[ $lastonly -eq 0 ]]; then??????????? echo "
"??????? fi??????? lastonly=1??? elif [[ "$t4" == 'diff' ]]; then??????? cls='diff'??????? if [[ $diffseen -eq 0 ]]; then??????????? diffseen=1??????????? echo -n ''??????? else???????? ???echo "
"??????? fi??????? echo "
"??????? lastonly=0??? elif? [[ "$t3" == '+++'? ]]; then??????? cls='plus3'??????? lastonly=0??? elif? [[ "$t3" == '---'? ]]; then??????? cls='minus3'??????? lastonly=0??? elif? [[ "$t2" == '@@'?? ]]; then??????? cls='at2'??????? lastonly=0??? elif? [[ "$t1" == '+'??? ]]; then??????? cls='plus'??????? lastonly=0??? elif? [[ "$t1" == '-'??? ]]; then??????? cls='minus'??????? lastonly=0??? else??????? cls=??????? lastonly=0??? fi???? # Convert &, <, > to HTML entities.??? s=$(sed -e 's/\&/\&/g' -e 's//\>/g' <<<"$s")??? if [[ $first -eq 1 ]]; then??????? first=0??? else??????? echo??? fi???? # Output the line.??? if [[ "$cls" ]]; then?????? ?echo -n ''${s}''??? else??????? echo -n ${s}??? fi??? read -r sdoneIFS=$OIFS?if [[ $diffseen -eq 0? &&? $onlyseen -eq 0 ]]; then ????echo -n ''else??? echo "
"fiecho?cat <XX?# vim: tabstop=4: shiftwidth=4: noexpandtab:# kate: tab-width 4; indent-width 4; replace-tabs false;?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From heas at shrubbery.net Sat Jan 30 19:23:31 2016 From: heas at shrubbery.net (heasley) Date: Sat, 30 Jan 2016 19:23:31 +0000 Subject: [rancid] html colorized mail diffs In-Reply-To: References: Message-ID: <20160130192331.GG66888@shrubbery.net> Fri, Jan 29, 2016 at 10:45:52PM -0300, nachofw: > Hi guys, im trying to send colorized mails diffs from rancid.I?ve found a very nice bash script that converts the output from diff to html. Can anyone help me make it work with rancid??So far I have tried this config with no succes:MAILHEADERS="Content-Type: text/html; charset=ISO-8859-1"; export MAILHEADERSDIFFSCRIPT="diff2html"; export DIFFSCRIPT The script which works perfectly from command line:?#!/bin/bash## Convert diff output to colorized HTML.?cat <Colorized Diff
XX?echo -n ''?first=1diffseen=0lastonly=0?OIFS=$IFSIFS=''?# The -r option keeps the backslash from being an escape char.read -r s?while [[ $? -eq 0 ]]do??? # Get beginning of line to determine what type??? # of diff line it is.??? t1=${s:0:1}??? t2=${s:0:2}??? t3=${s:0:3}??? t4=${s:0:4}??? t7=${s:0:7}???? # Determine HTML class to use.??? if??? [[ "$t7" == 'Only in' ]]; then??????? cls='only'??????? if [[ $diffseen -eq 0 ]]; then??????????? diffseen=1??????????? echo -n ''??????? else??????????? if [[ $lastonly -eq 0 ]]; then??????????????? echo ""??????????? fi??????? fi??????? if [[ $lastonly -eq 0 ]]; then??????????? echo "
"??????? fi??????? lastonly=1??? elif [[ "$t4" == 'diff' ] i can't parse that mess of html that you sent, but if you want color html, try http://stackoverflow.com/questions/3827862/convert-raw-diff-file-to-colorized-html-output in your procmailrc. might be able to use that in DIFFSCRIPT too. From nachofw at vera.com.uy Sat Jan 30 19:46:04 2016 From: nachofw at vera.com.uy (Ignacio Freyre) Date: Sat, 30 Jan 2016 16:46:04 -0300 (UYT) Subject: [rancid] html colorized mail diffs In-Reply-To: <1894125943.69154039.1454183027730.JavaMail.zimbra@vera.com.uy> Message-ID: <1873195719.69155053.1454183164599.JavaMail.zimbra@vera.com.uy> I'm resending this mail from a diferent client, the last one got messed up. Hi guys, im trying to send colorized mails diffs from rancid. I?ve found a very nice bash script that converts the output from diff to html. Can anyone help me make it work with rancid? So far I have tried this config with no succes: MAILHEADERS="Content-Type: text/html; charset=ISO-8859-1"; export MAILHEADERS DIFFSCRIPT="diff2html"; export DIFFSCRIPT The script which works perfectly from command line: http://www.linuxjournal.com/content/convert-diff-output-colorized-html -------------- next part -------------- An HTML attachment was scrubbed... URL: