From owner-rancid-discuss@shrubbery.net Thu Aug 2 07:48:35 2001 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.3/8.11.1) with ESMTP id f727mZN21005 for ; Thu, 2 Aug 2001 07:48:35 GMT Received: by guelah.shrubbery.net (8.11.4/8.11.1) id f727lAq17378 for rancid-discuss-outgoing; Thu, 2 Aug 2001 07:47:10 GMT Received: (from heas@localhost) by guelah.shrubbery.net (8.11.4/8.11.1) id f727l8v17371 for rancid-discuss; Thu, 2 Aug 2001 07:47:08 GMT Date: Thu, 2 Aug 2001 07:47:07 +0000 From: john heasley To: rancid-discuss@guelah.shrubbery.net Subject: extreme switch support Message-ID: <20010802074707.A13423@shrubbery.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-note: live free, or die! X-homer: there ya go, fish bulb Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk appreciate any feedback on following bits to support extreme switch collection. ftp://ftp.shrubbery.net/pub/rancid/rancid-2.2b4.tar.gz notes: i do not have a cisco (non-IOS) catalyst with which to test the changes to clogin. the looking glass bits here are a bit in flux. if you're using the looking glass, you're best off overlaying util/lg/* from 2.1. From owner-rancid-discuss@shrubbery.net Thu Aug 2 20:28:46 2001 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.3/8.11.1) with ESMTP id f72KSkN25860 for ; Thu, 2 Aug 2001 20:28:46 GMT Received: by guelah.shrubbery.net (8.11.4/8.11.1) id f72KSDQ08522 for rancid-discuss-outgoing; Thu, 2 Aug 2001 20:28:13 GMT Received: from outbound.ea.com (outbound.ea.com [12.35.91.3]) by guelah.shrubbery.net (8.11.4/8.11.1) with ESMTP id f72KS9H08518 for ; Thu, 2 Aug 2001 20:28:09 GMT Received: from eahq-bh1.rws.ad.ea.com (eahq-bh1.ea.com [10.14.204.31]) by outbound.ea.com (Switch-2.1.3/Switch-2.1.0) with ESMTP id f72KT4A04173 for ; Thu, 2 Aug 2001 13:29:05 -0700 (PDT) Received: by eahq-bh1 with Internet Mail Service (5.5.2653.19) id ; Thu, 2 Aug 2001 13:28:05 -0700 Message-ID: From: "Rizzo, Joe" To: rancid-discuss@guelah.shrubbery.net Subject: RE: extreme switch support Date: Thu, 2 Aug 2001 13:28:04 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk I have upgraded to 2.2b4. Have not tested with extreme yet, but the catalysts can not be polled by rancid. I am not sure where to start troubleshooting. Does cat5rancid have a debug switch to see how it is interacting with the cat? perl /home/rancid/bin/cat5rancid fesw01.clt-lhr fesw01.clt-lhr clogin error: Error: TIMEOUT reached missed cmd(s): write term,dir slot0:,dir bootflash:,dir slot1:,show port ifindex,show boot,show module,show flash,show version End of run not found ! Thanks, Joe -----Original Message----- From: john heasley [mailto:heas@shrubbery.net] Sent: Thursday, August 02, 2001 2:47 AM To: rancid-discuss@guelah.shrubbery.net Subject: extreme switch support appreciate any feedback on following bits to support extreme switch collection. ftp://ftp.shrubbery.net/pub/rancid/rancid-2.2b4.tar.gz notes: i do not have a cisco (non-IOS) catalyst with which to test the changes to clogin. the looking glass bits here are a bit in flux. if you're using the looking glass, you're best off overlaying util/lg/* from 2.1. From owner-rancid-discuss@shrubbery.net Thu Aug 2 20:35:56 2001 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.3/8.11.1) with ESMTP id f72KZuN25869 for ; Thu, 2 Aug 2001 20:35:56 GMT Received: by guelah.shrubbery.net (8.11.4/8.11.1) id f72KZpi08664 for rancid-discuss-outgoing; Thu, 2 Aug 2001 20:35:51 GMT Received: (from heas@localhost) by guelah.shrubbery.net (8.11.4/8.11.1) id f72KZfX08656; Thu, 2 Aug 2001 20:35:41 GMT Date: Thu, 2 Aug 2001 13:35:41 -0700 From: john heasley To: "Rizzo, Joe" Cc: rancid-discuss@guelah.shrubbery.net Subject: Re: extreme switch support Message-ID: <20010802133541.C7535@shrubbery.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from JRizzo@ea.com on Thu, Aug 02, 2001 at 01:28:04PM -0700 X-note: live free, or die! X-homer: there ya go, fish bulb Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Thu, Aug 02, 2001 at 01:28:04PM -0700, Rizzo, Joe: > I have upgraded to 2.2b4. Have not tested with extreme yet, but the > catalysts can not be polled by rancid. > I am not sure where to start troubleshooting. Does cat5rancid have a debug > switch to see how it is interacting with the cat? > > perl /home/rancid/bin/cat5rancid fesw01.clt-lhr perl /home/rancid/bin/cat5rancid -dl fesw01.clt-lhr but, first if you could try clogin -c 'show vers;show vers' switch, that will tell us how far it is getting. > fesw01.clt-lhr clogin error: Error: TIMEOUT reached > missed cmd(s): write term,dir slot0:,dir bootflash:,dir slot1:,show port > ifindex,show boot,show module,show flash,show version > End of run not found > ! > > Thanks, > Joe > > > -----Original Message----- > From: john heasley [mailto:heas@shrubbery.net] > Sent: Thursday, August 02, 2001 2:47 AM > To: rancid-discuss@guelah.shrubbery.net > Subject: extreme switch support > > appreciate any feedback on following bits to support extreme switch > collection. > > ftp://ftp.shrubbery.net/pub/rancid/rancid-2.2b4.tar.gz > > notes: > i do not have a cisco (non-IOS) catalyst with which to test the > changes to clogin. > > the looking glass bits here are a bit in flux. if you're using > the looking glass, you're best off overlaying util/lg/* from 2.1. From owner-rancid-discuss@shrubbery.net Thu Aug 2 23:14:49 2001 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.3/8.11.1) with ESMTP id f72NEnN26202 for ; Thu, 2 Aug 2001 23:14:49 GMT Received: by guelah.shrubbery.net (8.11.4/8.11.1) id f72NEcg15468 for rancid-discuss-outgoing; Thu, 2 Aug 2001 23:14:38 GMT Received: from twmaine.com (IDENT:postfix@one.twmaine.com [208.3.248.2]) by guelah.shrubbery.net (8.11.4/8.11.1) with ESMTP id f72NEYH15464 for ; Thu, 2 Aug 2001 23:14:35 GMT Received: from joemobileq (unknown [63.167.222.67]) by twmaine.com (Postfix) with ESMTP id D9A47290494; Thu, 2 Aug 2001 19:13:08 -0400 (EDT) Reply-To: From: "Joe Marr" To: "'Rizzo, Joe'" , Subject: RE: extreme switch support Date: Thu, 2 Aug 2001 19:10:07 -0400 Organization: Roadrunner Message-ID: <002101c11ba8$45973e40$43dea73f@joemobileq> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-Reply-To: Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk I found out this week from this list that you have to set the catalyst prompt with a ">" at the end. Joe Marr Network Engineer "I do not hate my enemies. After all, I made them." - Red Skelton -----Original Message----- From: owner-rancid-discuss@shrubbery.net [mailto:owner-rancid-discuss@shrubbery.net] On Behalf Of Rizzo, Joe Sent: Thursday, August 02, 2001 4:28 PM To: rancid-discuss@guelah.shrubbery.net Subject: RE: extreme switch support I have upgraded to 2.2b4. Have not tested with extreme yet, but the catalysts can not be polled by rancid. I am not sure where to start troubleshooting. Does cat5rancid have a debug switch to see how it is interacting with the cat? perl /home/rancid/bin/cat5rancid fesw01.clt-lhr fesw01.clt-lhr clogin error: Error: TIMEOUT reached missed cmd(s): write term,dir slot0:,dir bootflash:,dir slot1:,show port ifindex,show boot,show module,show flash,show version End of run not found ! Thanks, Joe -----Original Message----- From: john heasley [mailto:heas@shrubbery.net] Sent: Thursday, August 02, 2001 2:47 AM To: rancid-discuss@guelah.shrubbery.net Subject: extreme switch support appreciate any feedback on following bits to support extreme switch collection. ftp://ftp.shrubbery.net/pub/rancid/rancid-2.2b4.tar.gz notes: i do not have a cisco (non-IOS) catalyst with which to test the changes to clogin. the looking glass bits here are a bit in flux. if you're using the looking glass, you're best off overlaying util/lg/* from 2.1. From owner-rancid-discuss@shrubbery.net Fri Aug 3 03:15:52 2001 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.3/8.11.1) with ESMTP id f733FqN26514 for ; Fri, 3 Aug 2001 03:15:52 GMT Received: by guelah.shrubbery.net (8.11.4/8.11.1) id f733FeF25092 for rancid-discuss-outgoing; Fri, 3 Aug 2001 03:15:40 GMT Received: (from heas@localhost) by guelah.shrubbery.net (8.11.4/8.11.1) id f733FVP25084; Fri, 3 Aug 2001 03:15:31 GMT Date: Thu, 2 Aug 2001 20:15:31 -0700 From: john heasley To: "Rizzo, Joe" Cc: rancid-discuss@guelah.shrubbery.net Subject: Re: extreme switch support Message-ID: <20010802201531.L11661@shrubbery.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from JRizzo@ea.com on Thu, Aug 02, 2001 at 01:28:04PM -0700 X-note: live free, or die! X-homer: there ya go, fish bulb Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk ftp://ftp.shrubbery.net/pub/rancid/rancid-2.2b5.tar.gz should fix this problem. i found a catalyst to test against and tested with juniper, 2500/7200/gsr, foundry, extreme. still needs a little work, but the collections (etc) should work and i can get back to it over the weekend. Thu, Aug 02, 2001 at 01:28:04PM -0700, Rizzo, Joe: > I have upgraded to 2.2b4. Have not tested with extreme yet, but the > catalysts can not be polled by rancid. > I am not sure where to start troubleshooting. Does cat5rancid have a debug > switch to see how it is interacting with the cat? > > perl /home/rancid/bin/cat5rancid fesw01.clt-lhr > fesw01.clt-lhr clogin error: Error: TIMEOUT reached > missed cmd(s): write term,dir slot0:,dir bootflash:,dir slot1:,show port > ifindex,show boot,show module,show flash,show version > End of run not found > ! > > Thanks, > Joe > > > -----Original Message----- > From: john heasley [mailto:heas@shrubbery.net] > Sent: Thursday, August 02, 2001 2:47 AM > To: rancid-discuss@guelah.shrubbery.net > Subject: extreme switch support > > appreciate any feedback on following bits to support extreme switch > collection. > > ftp://ftp.shrubbery.net/pub/rancid/rancid-2.2b4.tar.gz > > notes: > i do not have a cisco (non-IOS) catalyst with which to test the > changes to clogin. > > the looking glass bits here are a bit in flux. if you're using > the looking glass, you're best off overlaying util/lg/* from 2.1. From owner-rancid-discuss@shrubbery.net Fri Aug 10 21:26:18 2001 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.3/8.11.1) with ESMTP id f7ALQIN08921 for ; Fri, 10 Aug 2001 21:26:18 GMT Received: by guelah.shrubbery.net (8.11.4/8.11.1) id f7ALNNQ08711 for rancid-discuss-outgoing; Fri, 10 Aug 2001 21:23:23 GMT Received: from smtp2.mts.net (smtp2.mts.net [205.200.16.88]) by guelah.shrubbery.net (8.11.4/8.11.1) with ESMTP id f7ALNHP08689 for ; Fri, 10 Aug 2001 21:23:17 GMT Received: from mikes (ops-mike.mts.net [192.168.253.224]) by smtp2.mts.net (8.11.3/8.8.8) with SMTP id f7ALNFL18075 for ; Fri, 10 Aug 2001 16:23:15 -0500 (CDT) From: "Mike Hyde" To: Subject: Expect Date: Fri, 10 Aug 2001 16:22:44 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: <20010802133541.C7535@shrubbery.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2505.0000 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Well I give up on expect. It keeps freezing when I run config dumps. Does anyone have a hack to remove using expect or a way to slow down the config dump? I have tried multiple versions of expect, but have been unable to get it to work. I am running Linux Mandrake 8.0 with the newest version of expect. I tried unsucessfuly to compile 5.24 but gcc is too new for it. Any ideas? Mike From owner-rancid-discuss@shrubbery.net Sat Aug 11 20:00:08 2001 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.3/8.11.1) with ESMTP id f7BK08N10327 for ; Sat, 11 Aug 2001 20:00:08 GMT Received: by guelah.shrubbery.net (8.11.4/8.11.1) id f7BJxWM29856 for rancid-discuss-outgoing; Sat, 11 Aug 2001 19:59:32 GMT Received: from homer.digitalwest.net (jrichard@homer.digitalwest.net [216.111.116.1]) by guelah.shrubbery.net (8.11.4/8.11.1) with ESMTP id f7BJxSP29852 for ; Sat, 11 Aug 2001 19:59:29 GMT Received: (from jrichard@localhost) by homer.digitalwest.net (8.9.3/8.9.3) id MAA20516 for rancid-discuss@guelah.shrubbery.net; Sat, 11 Aug 2001 12:59:27 -0700 (PDT) Date: Sat, 11 Aug 2001 12:59:27 -0700 From: Josh Richards To: rancid-discuss@guelah.shrubbery.net Subject: Re: Expect Message-ID: <20010811125927.F26553@homer.digitalwest.net> References: <20010802133541.C7535@shrubbery.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from mhyde@escape.ca on Fri, Aug 10, 2001 at 04:22:44PM -0500 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk * Mike Hyde [20010810 14:33]: > Well I give up on expect. It keeps freezing when I run config dumps. Does > anyone have a hack to remove using expect or a way to slow down the config > dump? What is the target (e.g. Cisco, Juniper, RedBack, etc.)? > I have tried multiple versions of expect, but have been unable to get it to > work. Hmm...something definitely sounds awry. Unless you've got network problems between the box running Rancid and the target or a really slow box I'm not sure why that'd be occurring. > I am running Linux Mandrake 8.0 with the newest version of expect. I tried > unsucessfuly to compile 5.24 but gcc is too new for it. Expect 5.25.0 here and working fine. > Any ideas? What happens when you do a ~rancid/bin/clogin -c "show run" or the equivalent for your platform (clogin = Cisco, jlogin = Juniper, elogin = ADC, flogin = foundry)? The command," -c ", above is for Cisco. -jr From owner-rancid-discuss@shrubbery.net Sun Aug 12 02:36:27 2001 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.3/8.11.1) with ESMTP id f7C2aRN10678 for ; Sun, 12 Aug 2001 02:36:27 GMT Received: by guelah.shrubbery.net (8.11.4/8.11.1) id f7C2Zi611585 for rancid-discuss-outgoing; Sun, 12 Aug 2001 02:35:44 GMT Received: from mx3b.mts.net (mx3b.mts.net [205.200.16.59]) by guelah.shrubbery.net (8.11.4/8.11.1) with ESMTP id f7C2ZeP11581 for ; Sun, 12 Aug 2001 02:35:40 GMT Received: from mikes (h-209-202-47-128.fast.escape.ca [209.202.47.128]) by mx3b.mts.net (8.11.4/8.8.8) with SMTP id f7C2aTW19608; Sat, 11 Aug 2001 21:36:29 -0500 (CDT) Message-ID: <005101c122d7$74dbf610$0100a8c0@mikes> From: "Mike Hyde" To: "Josh Richards" , References: <20010802133541.C7535@shrubbery.net> <20010811125927.F26553@homer.digitalwest.net> Subject: Re: Expect Date: Sat, 11 Aug 2001 21:35:31 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2526.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2526.0000 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Cisco Box is a P3 with peak loads of 1.5 dumping configs from a local router with little load. Running clogin with just show run works sometimes and not others on the same box. ----- Original Message ----- From: "Josh Richards" To: Sent: Saturday, August 11, 2001 2:59 PM Subject: Re: Expect > * Mike Hyde [20010810 14:33]: > > Well I give up on expect. It keeps freezing when I run config dumps. Does > > anyone have a hack to remove using expect or a way to slow down the config > > dump? > > What is the target (e.g. Cisco, Juniper, RedBack, etc.)? > > > I have tried multiple versions of expect, but have been unable to get it to > > work. > > Hmm...something definitely sounds awry. Unless you've got network problems > between the box running Rancid and the target or a really slow box I'm not > sure why that'd be occurring. > > > I am running Linux Mandrake 8.0 with the newest version of expect. I tried > > unsucessfuly to compile 5.24 but gcc is too new for it. > > Expect 5.25.0 here and working fine. > > > Any ideas? > > What happens when you do a ~rancid/bin/clogin -c "show run" or the > equivalent for your platform (clogin = Cisco, jlogin = Juniper, elogin = ADC, > flogin = foundry)? The command," -c ", above is for Cisco. > > -jr From owner-rancid-discuss@shrubbery.net Tue Aug 14 21:05:38 2001 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.3/8.11.1) with ESMTP id f7EL5cN14795 for ; Tue, 14 Aug 2001 21:05:38 GMT Received: by guelah.shrubbery.net (8.11.4/8.11.1) id f7EL4ML13677 for rancid-discuss-outgoing; Tue, 14 Aug 2001 21:04:22 GMT Received: (from heas@localhost) by guelah.shrubbery.net (8.11.4/8.11.1) id f7EL4H713672 for rancid-discuss; Tue, 14 Aug 2001 21:04:17 GMT Date: Tue, 14 Aug 2001 14:04:17 -0700 From: john heasley To: rancid-discuss@guelah.shrubbery.net Subject: possible (tcl) hanging fix on linux Message-ID: <20010814140308.D3510@shrubbery.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-note: live free, or die! X-homer: there ya go, fish bulb Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk disclaimer: i am not at all sure that this is the proper way to fix this problem (where rancid's *logins hang while collecting info from devices on linux platforms with tcl8.3* and expect 5.32*) or if it will have adverse affects on other expect scripts. what is happening (usually amid write term or show config, cisco-ism or juniper-ism) is the last chunk of data before the prompt has been read into the internal ("channel") buffer, expect asks for more data, but instead of tcl reading from the buffer or checking if the file descriptor is actually ready for reading, it just calls read() via expect's ExpInputProc() where it hangs with the router waiting for input (until the router's session-timeout expires). i believe this is due to Tcl_WaitForEvent() not differentiating properly between timeout and "ready_for_read", but i did not unwrap the maze of callbacks within tcl and don't have time to right now. the (inefficient) patch below makes sure the filedescriptor is set non-blocking, so the read will return immediately if the FD is not ready for reading and thus give the tcl timer functions the opportunity to timeout an operation (and apparently look at the internal buffer for more data). i have no idea why this doesnt happen/affect netbsd. it works for me with tcl8.3.b2 and expect 5.32.1 on the linux box i have freewill-access to, or at least do-diffs completed flawlessly 4 times, whereas before it barely even got out of the gate. i think this is RedCrap 6.1 or so...uname says Linux 2.2.16-22, but i'm guessing that's just the kernel and i'm blissfully unaware of where all the other version info is hidden. you'll have to apply this to your expect 5.32.1 source; cd expect-5.32; patch < patchfile; make install - - - - - - - - - - - - - c u t h e r e - - - - - - - - - - - - - - *** exp_chan.c.FCS Tue Aug 14 16:55:54 2001 --- exp_chan.c Tue Aug 14 16:59:25 2001 *************** *** 119,124 **** --- 119,125 ---- * nonblocking, the read will never block. */ + fcntl(esPtr->fdin, F_SETFL, O_NONBLOCK); bytesRead = read(esPtr->fdin, buf, (size_t) toRead); /*printf("ExpInputProc: read(%d,,) = %d\r\n",esPtr->fdin,bytesRead);*/ if (bytesRead > -1) { From owner-rancid-discuss@shrubbery.net Wed Aug 15 13:33:10 2001 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.3/8.11.1) with ESMTP id f7FDXAN16016 for ; Wed, 15 Aug 2001 13:33:10 GMT Received: by guelah.shrubbery.net (8.11.4/8.11.1) id f7FDWpc15009 for rancid-discuss-outgoing; Wed, 15 Aug 2001 13:32:51 GMT Received: from smtp2.mts.net (smtp2.mts.net [205.200.16.88]) by guelah.shrubbery.net (8.11.4/8.11.1) with ESMTP id f7FDWgP15001 for ; Wed, 15 Aug 2001 13:32:42 GMT Received: from mikes (ops-mike.mts.net [192.168.253.224]) by smtp2.mts.net (8.11.3/8.8.8) with SMTP id f7FDWdL18137; Wed, 15 Aug 2001 08:32:39 -0500 (CDT) From: "Mike Hyde" To: "john heasley" , Subject: RE: possible (tcl) hanging fix on linux Date: Wed, 15 Aug 2001 08:32:36 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2505.0000 In-Reply-To: <20010814140308.D3510@shrubbery.net> Importance: Normal Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk the hack is working great. Have had no problems since putting this on. -----Original Message----- From: owner-rancid-discuss@shrubbery.net [mailto:owner-rancid-discuss@shrubbery.net]On Behalf Of john heasley Sent: Tuesday, August 14, 2001 4:04 PM To: rancid-discuss@guelah.shrubbery.net Subject: possible (tcl) hanging fix on linux disclaimer: i am not at all sure that this is the proper way to fix this problem (where rancid's *logins hang while collecting info from devices on linux platforms with tcl8.3* and expect 5.32*) or if it will have adverse affects on other expect scripts. what is happening (usually amid write term or show config, cisco-ism or juniper-ism) is the last chunk of data before the prompt has been read into the internal ("channel") buffer, expect asks for more data, but instead of tcl reading from the buffer or checking if the file descriptor is actually ready for reading, it just calls read() via expect's ExpInputProc() where it hangs with the router waiting for input (until the router's session-timeout expires). i believe this is due to Tcl_WaitForEvent() not differentiating properly between timeout and "ready_for_read", but i did not unwrap the maze of callbacks within tcl and don't have time to right now. the (inefficient) patch below makes sure the filedescriptor is set non-blocking, so the read will return immediately if the FD is not ready for reading and thus give the tcl timer functions the opportunity to timeout an operation (and apparently look at the internal buffer for more data). i have no idea why this doesnt happen/affect netbsd. it works for me with tcl8.3.b2 and expect 5.32.1 on the linux box i have freewill-access to, or at least do-diffs completed flawlessly 4 times, whereas before it barely even got out of the gate. i think this is RedCrap 6.1 or so...uname says Linux 2.2.16-22, but i'm guessing that's just the kernel and i'm blissfully unaware of where all the other version info is hidden. you'll have to apply this to your expect 5.32.1 source; cd expect-5.32; patch < patchfile; make install - - - - - - - - - - - - - c u t h e r e - - - - - - - - - - - - - - *** exp_chan.c.FCS Tue Aug 14 16:55:54 2001 --- exp_chan.c Tue Aug 14 16:59:25 2001 *************** *** 119,124 **** --- 119,125 ---- * nonblocking, the read will never block. */ + fcntl(esPtr->fdin, F_SETFL, O_NONBLOCK); bytesRead = read(esPtr->fdin, buf, (size_t) toRead); /*printf("ExpInputProc: read(%d,,) = %d\r\n",esPtr->fdin,bytesRead);*/ if (bytesRead > -1) { From owner-rancid-discuss@shrubbery.net Wed Aug 15 20:57:15 2001 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.3/8.11.1) with ESMTP id f7FKvFN16314 for ; Wed, 15 Aug 2001 20:57:15 GMT Received: by guelah.shrubbery.net (8.11.4/8.11.1) id f7FKuZn29311 for rancid-discuss-outgoing; Wed, 15 Aug 2001 20:56:36 GMT Received: (from heas@localhost) by guelah.shrubbery.net (8.11.4/8.11.1) id f7FKuTv29303; Wed, 15 Aug 2001 20:56:29 GMT Date: Wed, 15 Aug 2001 13:56:29 -0700 From: john heasley To: Mike Hyde Cc: john heasley , rancid-discuss@guelah.shrubbery.net Subject: Re: possible (tcl) hanging fix on linux Message-ID: <20010815135629.L3510@shrubbery.net> References: <20010814140308.D3510@shrubbery.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from mhyde@escape.ca on Wed, Aug 15, 2001 at 08:32:36AM -0500 X-note: live free, or die! X-homer: there ya go, fish bulb Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk great! i've reported this to the expect folks. hopefully they will be able to fix this properly. Wed, Aug 15, 2001 at 08:32:36AM -0500, Mike Hyde: > the hack is working great. Have had no problems since putting this on. > > > > -----Original Message----- > From: owner-rancid-discuss@shrubbery.net > [mailto:owner-rancid-discuss@shrubbery.net]On Behalf Of john heasley > Sent: Tuesday, August 14, 2001 4:04 PM > To: rancid-discuss@guelah.shrubbery.net > Subject: possible (tcl) hanging fix on linux > > > disclaimer: i am not at all sure that this is the proper way to fix > this problem (where rancid's *logins hang while collecting info from > devices on linux platforms with tcl8.3* and expect 5.32*) or if it > will have adverse affects on other expect scripts. > > what is happening (usually amid write term or show config, cisco-ism > or juniper-ism) is the last chunk of data before the prompt has been > read into the internal ("channel") buffer, expect asks for more data, > but instead of tcl reading from the buffer or checking if the file > descriptor is actually ready for reading, it just calls read() via > expect's ExpInputProc() where it hangs with the router waiting for > input (until the router's session-timeout expires). > > i believe this is due to Tcl_WaitForEvent() not differentiating properly > between timeout and "ready_for_read", but i did not unwrap the maze of > callbacks within tcl and don't have time to right now. > > the (inefficient) patch below makes sure the filedescriptor is > set non-blocking, so the read will return immediately if the FD > is not ready for reading and thus give the tcl timer functions the > opportunity to timeout an operation (and apparently look at the internal > buffer for more data). i have no idea why this doesnt happen/affect netbsd. > > it works for me with tcl8.3.b2 and expect 5.32.1 on the linux box i have > freewill-access to, or at least do-diffs completed flawlessly 4 times, > whereas before it barely even got out of the gate. i think this is > RedCrap 6.1 or so...uname says Linux 2.2.16-22, but i'm guessing that's > just the kernel and i'm blissfully unaware of where all the other version > info is hidden. > > you'll have to apply this to your expect 5.32.1 source; cd expect-5.32; > patch < patchfile; make install > > - - - - - - - - - - - - - c u t h e r e - - - - - - - - - - - - - - > *** exp_chan.c.FCS Tue Aug 14 16:55:54 2001 > --- exp_chan.c Tue Aug 14 16:59:25 2001 > *************** > *** 119,124 **** > --- 119,125 ---- > * nonblocking, the read will never block. > */ > > + fcntl(esPtr->fdin, F_SETFL, O_NONBLOCK); > bytesRead = read(esPtr->fdin, buf, (size_t) toRead); > /*printf("ExpInputProc: read(%d,,) = %d\r\n",esPtr->fdin,bytesRead);*/ > if (bytesRead > -1) { From owner-rancid-discuss@shrubbery.net Wed Aug 15 21:26:58 2001 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.3/8.11.1) with ESMTP id f7FLQvN16410 for ; Wed, 15 Aug 2001 21:26:57 GMT Received: by guelah.shrubbery.net (8.11.4/8.11.1) id f7FLQfL01524 for rancid-discuss-outgoing; Wed, 15 Aug 2001 21:26:41 GMT Received: from homer.digitalwest.net (jrichard@homer.digitalwest.net [216.111.116.1]) by guelah.shrubbery.net (8.11.4/8.11.1) with ESMTP id f7FLQcP01520 for ; Wed, 15 Aug 2001 21:26:38 GMT Received: (from jrichard@localhost) by homer.digitalwest.net (8.9.3/8.9.3) id OAA01599; Wed, 15 Aug 2001 14:26:28 -0700 (PDT) Date: Wed, 15 Aug 2001 14:26:27 -0700 From: Josh Richards To: Mike Hyde Cc: rancid-discuss@guelah.shrubbery.net Subject: Re: Expect Message-ID: <20010815142627.A414@homer.digitalwest.net> References: <20010802133541.C7535@shrubbery.net> <20010811125927.F26553@homer.digitalwest.net> <005101c122d7$74dbf610$0100a8c0@mikes> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <005101c122d7$74dbf610$0100a8c0@mikes>; from mhyde@escape.ca on Sat, Aug 11, 2001 at 09:35:31PM -0500 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk * Mike Hyde [20010811 19:42]: > Cisco > > Box is a P3 with peak loads of 1.5 dumping configs from a local router with > little load. > > Running clogin with just show run works sometimes and not others on the same > box. *shrug* I don't know. Maybe an IOS bug? -jr From owner-rancid-discuss@shrubbery.net Sun Aug 26 00:15:05 2001 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.3/8.11.1) with ESMTP id f7Q0F5N02726 for ; Sun, 26 Aug 2001 00:15:05 GMT Received: by guelah.shrubbery.net (8.11.4/8.11.1) id f7Q0DgW29100 for rancid-discuss-outgoing; Sun, 26 Aug 2001 00:13:42 GMT Received: from pl5.saunalahti.fi (pl5.saunalahti.fi [195.197.53.12]) by guelah.shrubbery.net (8.11.4/8.11.1) with ESMTP id f7Q0DaP29095 for ; Sun, 26 Aug 2001 00:13:36 GMT Received: from intenso.misc.de.jippii.net (mail@janczmok.gigabell.net [195.211.170.94] (may be forged)) by pl5.saunalahti.fi (8.10.1/8.10.1) with ESMTP id f7Q0G1P24140 for ; Sun, 26 Aug 2001 03:16:01 +0300 (EEST) Received: from czmok by intenso.misc.de.jippii.net with local (Exim 3.12 #1 (Debian)) id 15anSb-0002lP-00 for ; Sun, 26 Aug 2001 02:07:29 +0200 Date: Sun, 26 Aug 2001 02:07:29 +0200 From: Jan-Ahrent Czmok To: rancid-discuss@shrubbery.net Subject: extreme networks summit/blackdiamond support broken ? Message-ID: <20010826020729.A10617@intenso.misc.de.jippii.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Organization: Jippii GmbH X-NCC-RegID: de.jippii Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hi! just deployed rancid but extreme network switches are not working any clue why ? Thanks for looking in. Greets jan p.s. using latest beta version Trying to get all of the configs. invalid command name "more" while executing "more" invoked from within "expect -nobrace # gag, 2 more prompts -re "\[\r\n]*\r" {} -re "\[ ^\r\n]*Press *" { send " "; exp_continue } " invoked from within "expect { # gag, 2 more prompts -re "\[\r\n]*\r" {} -re "\[^\r\n]*Press *" { send " "; exp_continu e } }" invoked from within "expect -nobrace -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprompt." { send_user -- "$expect_out(b ..." invoked from within "expect { -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)" } -re "^\[^\n\r]*$reprompt." { send_user -- "$expect_out(buffer)" ..." ("for" body line 3) invoked from within "for {set i 0} {$i < $num_commands} { incr i} { send "[subst -nocommands [lindex $commands $i]]\r" expect { -re "^\[^\n\r *]*$reprompt" { s ..." invoked from within "if [ string match "*\;*" "$command" ] { set commands [split $command \;] set num_commands [llength $commands] # the pager can not be turned off on ..." (procedure "run_commands" line 25) invoked from within "run_commands $prompt $command" invoked from within "if {[run_commands $prompt $command]} { continue }" invoked from within "if { $do_command } { if {[run_commands $prompt $command]} { continue } } elseif { $do_script } { # If the prompt is (enable), then we are ..." ("foreach" body line 118) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # Figure out prompt. # Since autoena ..." (file "/home-l/rancid/bin/clogin" line 522) #Image: Extremeware Version 4.1.19 (Build 2) by dsaravanan Wed 08/09/2000 6:18p missed cmd(s): show slot,show configuration End of run not found -- Jan-Ahrent Czmok email: jan.czmok@jippiigroup.com Senior Network Engineer // CNO Team voice: +49-69-17084-917 Jippii GmbH fax : +49-69-17084-530 business support team www : http://www.jippii.de From owner-rancid-discuss@shrubbery.net Wed Aug 29 03:56:21 2001 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.3/8.11.1) with ESMTP id f7T3uLN07111 for ; Wed, 29 Aug 2001 03:56:21 GMT Received: by guelah.shrubbery.net (8.11.4/8.11.1) id f7T3sVj11919 for rancid-discuss-outgoing; Wed, 29 Aug 2001 03:54:31 GMT Received: from tower.partan.com (tower.partan.com [198.6.255.248]) by guelah.shrubbery.net (8.11.4/8.11.1) with ESMTP id f7T3sNP11915 for ; Wed, 29 Aug 2001 03:54:24 GMT Received: (from asp@localhost) by tower.partan.com (8.9.3/8.9.3) id XAA24176; Tue, 28 Aug 2001 23:54:11 -0400 (EDT) Date: Tue, 28 Aug 2001 23:54:11 -0400 From: Andrew Partan To: Jan-Ahrent Czmok Cc: rancid-discuss@shrubbery.net Subject: Re: extreme networks summit/blackdiamond support broken ? Message-ID: <20010828235411.D22080@partan.com> References: <20010826020729.A10617@intenso.misc.de.jippii.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20010826020729.A10617@intenso.misc.de.jippii.net>; from jan.czmok@jippiigroup.com on Sun, Aug 26, 2001 at 02:07:29AM +0200 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On Sun, Aug 26, 2001 at 02:07:29AM +0200, Jan-Ahrent Czmok wrote: > just deployed rancid but extreme network switches are not working The extreme stuff in rancid is real new; I think its only known to sorta work on one extreme box so far -:). --asp