From owner-rancid-discuss-outgoing@shrubbery.net Fri Dec 5 17:46:36 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id F1847C67E2 for ; Fri, 5 Dec 2003 17:46:35 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 3F28717CFA0; Fri, 5 Dec 2003 17:46:35 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 1B1B317CFA3; Fri, 5 Dec 2003 17:46:35 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 74ADA17CFA2; Fri, 5 Dec 2003 17:46:34 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from rootshell.be (phenix.rootshell.be [195.74.192.154]) by guelah.shrubbery.net (Postfix) with ESMTP id 3574817CFA0 for ; Fri, 5 Dec 2003 13:31:26 +0000 (UTC) Received: from localhost (alastair@localhost) by rootshell.be (8.12.10/8.11.5) with ESMTP id hB5DBgSs002117 for ; Fri, 5 Dec 2003 14:11:47 +0100 X-Authentication-Warning: phenix.rootshell.be: alastair owned process doing -bs Date: Fri, 5 Dec 2003 14:11:42 +0100 (CET) From: Alastair Galloway X-X-Sender: alastair@phenix.rootshell.be To: rancid-discuss@shrubbery.net Subject: Riverstones and RANCID Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hi, I've installed and set up RANCID to grab the configs of some Ciscos and Junipers and now I want it to talk to some Riverstone kit (specifically a Riverstone 3000 running software version 9.0.0.1). I've found a few references to a "rivlogin" in archives of this mailing list but I haven't actually found copies of the scripts anywhere - do they exist? Alternatively I can hack the clogin and maybe rancid scripts, but I'd be happy if I could avoid having to do that. Cheers, Alastair Galloway From owner-rancid-discuss-outgoing@shrubbery.net Fri Dec 5 17:50:17 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id A2CD1C67DE for ; Fri, 5 Dec 2003 17:50:17 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 2457617CFA2; Fri, 5 Dec 2003 17:50:17 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 060D417CFA7; Fri, 5 Dec 2003 17:50:16 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id F15DE17CFA3; Fri, 5 Dec 2003 17:50:15 +0000 (UTC) Date: Fri, 5 Dec 2003 09:50:15 -0800 From: john heasley To: Alastair Galloway Cc: rancid-discuss@shrubbery.net Subject: Re: Riverstones and RANCID Message-ID: <20031205175015.GP13880@shrubbery.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Fri, Dec 05, 2003 at 02:11:42PM +0100, Alastair Galloway: > Hi, > > I've installed and set up RANCID to grab the configs of some Ciscos and > Junipers and now I want it to talk to some Riverstone kit (specifically a > Riverstone 3000 running software version 9.0.0.1). I've found a few > references to a "rivlogin" in archives of this mailing list but I haven't > actually found copies of the scripts anywhere - do they exist? > Alternatively I can hack the clogin and maybe rancid scripts, but I'd be > happy if I could avoid having to do that. > > > Cheers, > > Alastair Galloway It is (will be) included in rancid 2-3. you are welcome to try the EFT image here: ftp://ftp.shrubbery.net/outgoing/rancid-2.3.eft5.tar.gz The riverstone support does need some work, which I havent quite gotten to. From owner-rancid-discuss-outgoing@shrubbery.net Fri Dec 5 17:53:01 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 4D023C67E2 for ; Fri, 5 Dec 2003 17:53:01 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 8730117CFA3; Fri, 5 Dec 2003 17:53:00 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 68B1917CFA9; Fri, 5 Dec 2003 17:53:00 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 77A1417CFA7; Fri, 5 Dec 2003 17:52:59 +0000 (UTC) Date: Fri, 5 Dec 2003 09:52:59 -0800 From: john heasley To: Alastair Galloway Cc: rancid-discuss@shrubbery.net Subject: Re: Riverstones and RANCID Message-ID: <20031205175259.GQ13880@shrubbery.net> References: <20031205175015.GP13880@shrubbery.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031205175015.GP13880@shrubbery.net> User-Agent: Mutt/1.4i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Fri, Dec 05, 2003 at 09:50:15AM -0800, john heasley: > It is (will be) included in rancid 2-3. you are welcome to try the EFT > image here: > ftp://ftp.shrubbery.net/outgoing/rancid-2.3.eft5.tar.gz > > The riverstone support does need some work, which I havent quite gotten to. Really sorry for the extra mail ... WARNING WRT this eft .... /bin/env, the rancid configuration file, has been moved to /bin/rancid.conf. The install process should preserve (move) and existing bin/env. From owner-rancid-discuss-outgoing@shrubbery.net Fri Dec 5 22:17:34 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id AD1D0C67A8 for ; Fri, 5 Dec 2003 22:17:34 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 1AEC217CFCE; Fri, 5 Dec 2003 22:17:34 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id F328417CFD0; Fri, 5 Dec 2003 22:17:33 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from daedalus.andrew.net.au (daedalus.andrew.net.au [210.18.204.2]) by guelah.shrubbery.net (Postfix) with ESMTP id 2B65017CFCE for ; Fri, 5 Dec 2003 22:17:32 +0000 (UTC) Received: from daedalus.andrew.net.au (apollock@daedalus.andrew.net.au [127.0.0.1]) by daedalus.andrew.net.au (8.12.10/8.12.10/Debian-1) with ESMTP id hB5MHE88006164 for ; Sat, 6 Dec 2003 08:17:14 +1000 Received: (from apollock@localhost) by daedalus.andrew.net.au (8.12.10/8.12.10/Debian-1) id hB5MHExB006162 for rancid-discuss@shrubbery.net; Sat, 6 Dec 2003 08:17:14 +1000 Date: Sat, 6 Dec 2003 08:17:14 +1000 From: Andrew Pollock To: rancid-discuss@shrubbery.net Subject: RANCID's fantastic! Message-ID: <20031205221714.GW26257@daedalus.andrew.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hi, I stumbled upon RANCID the other day, and boy is it the bees knees. I've written something functionally similar (I haven't looked at RANCID's innards yet) but this looks pretty spiffy. We use what I've written to drag configs out of Cisco routers, switches and PIXes, and check them into CVS. One thing that we do is not allow telnet access to our switches. They're all connected to Cyclades console access servers, and my script SSHes to the Cyclades to get onto the console of the switch. Any thoughts on including the ability to connect to a device via an intermediate device? To my knowledge, you can't setup RSA/DSA key access to a port on a Cyclades, which is a bit of a bummer, and to work around the issues with trying to authenticate to the Cyclades and then authenticate to the device on the Cyclades' port, I've just disabled authentication on the port, so if you SSH to the port, you land immediately on the console of the switch, and are asked to authenticate to it. In an ideal world, it would be good to have port-based authentication switched on... regards Andrew From owner-rancid-discuss-outgoing@shrubbery.net Fri Dec 5 22:29:20 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 77AC3C67C6 for ; Fri, 5 Dec 2003 22:29:20 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id E7FFF17CFD0; Fri, 5 Dec 2003 22:29:19 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id D2B2F17D07D; Fri, 5 Dec 2003 22:29:19 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from yosemite.rwc.gnac.net (yosemite.gnac.com [198.151.248.221]) by guelah.shrubbery.net (Postfix) with ESMTP id 6816D17CFD0 for ; Fri, 5 Dec 2003 22:29:18 +0000 (UTC) Received: by yosemite.rwc.gnac.net; id OAA26792; Fri, 5 Dec 2003 14:29:16 -0800 (PST) Received: from unknown(192.168.1.21) by yosemite.rwc.gnac.net via smap (V5.0) id xma026784; Fri, 5 Dec 03 14:28:24 -0800 Received: from tweety.corp.gnac.com (localhost.main.gnac.com [127.0.0.1] (may be forged)) by pepe.corp.gnac.com (8.11.0/8.8.7/GNAC-GW-2.1) with ESMTP id hB5MSNn07742; Fri, 5 Dec 2003 14:28:23 -0800 (PST) Received: (from davidw@localhost) by tweety.corp.gnac.com (8.9.3/8.7.3/GNAC-COM-1.1) id OAA28575; Fri, 5 Dec 2003 14:28:23 -0800 (PST) Date: Fri, 5 Dec 2003 14:28:23 -0800 From: David Williamson To: Andrew Pollock Cc: rancid-discuss@shrubbery.net Subject: Re: RANCID's fantastic! Message-ID: <20031205142823.I14099@tweety.corp.gnac.com> References: <20031205221714.GW26257@daedalus.andrew.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20031205221714.GW26257@daedalus.andrew.net.au>; from rancid-andrew@andrew.net.au on Sat, Dec 06, 2003 at 08:17:14AM +1000 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Since we're getting excited about cool software, consider using conserver (http://www.conserver.com) to manage your serial ports. I agree that in-band access to network gear isn't ideal, and it would be really cool if rancid would support connections via an intermediate device. Given that conserver's interface is pretty simple, I suspect that *login could be easily modified to utilize something like conserver (or direct ssh to a serial port, as you suggest), but I haven't looked at it. Perhaps this is something the user community could request for a future version? OH yes...you're completely correct that rancid is a great tool...I don't know what I'd do without it! -David On Sat, Dec 06, 2003 at 08:17:14AM +1000, Andrew Pollock wrote: > Hi, > > I stumbled upon RANCID the other day, and boy is it the bees knees. I've > written something functionally similar (I haven't looked at RANCID's innards > yet) but this looks pretty spiffy. We use what I've written to drag configs > out of Cisco routers, switches and PIXes, and check them into CVS. > > One thing that we do is not allow telnet access to our switches. They're all > connected to Cyclades console access servers, and my script SSHes to the > Cyclades to get onto the console of the switch. Any thoughts on including > the ability to connect to a device via an intermediate device? > > To my knowledge, you can't setup RSA/DSA key access to a port on a Cyclades, > which is a bit of a bummer, and to work around the issues with trying to > authenticate to the Cyclades and then authenticate to the device on the > Cyclades' port, I've just disabled authentication on the port, so if you SSH > to the port, you land immediately on the console of the switch, and are > asked to authenticate to it. In an ideal world, it would be good to have > port-based authentication switched on... > > regards > > Andrew -- David Williamson | "Wine is light, held Certainty Solutions, Inc. | together by water." davidw@certaintysolutions.com | -Galileo From owner-rancid-discuss-outgoing@shrubbery.net Sat Dec 6 00:15:46 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id D1C40C67A8 for ; Sat, 6 Dec 2003 00:15:45 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 4F64417D07D; Sat, 6 Dec 2003 00:15:45 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 2C12217D07F; Sat, 6 Dec 2003 00:15:45 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from gizmo06bw.bigpond.com (gizmo06bw.bigpond.com [144.140.70.16]) by guelah.shrubbery.net (Postfix) with SMTP id 0937717D07E for ; Sat, 6 Dec 2003 00:15:28 +0000 (UTC) Received: (qmail 2656 invoked from network); 4 Dec 2003 23:13:27 -0000 Received: from unknown (HELO bwmam01.bigpond.com) (144.135.24.69) by gizmo06bw.bigpond.com with SMTP; 4 Dec 2003 23:13:27 -0000 Received: from cpe-144-132-105-57.vic.bigpond.net.au ([144.132.105.57]) by bwmam01.bigpond.com(MAM REL_3_4_2 8/3401016) with SMTP id 3401016; Sat, 06 Dec 2003 10:15:06 +1000 Message-ID: <3FD11F89.3090609@choqolat.org> Date: Sat, 06 Dec 2003 11:15:05 +1100 From: Andrew Fort User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Williamson Cc: Andrew Pollock , rancid-discuss@shrubbery.net Subject: Re: RANCID's fantastic! References: <20031205221714.GW26257@daedalus.andrew.net.au> <20031205142823.I14099@tweety.corp.gnac.com> In-Reply-To: <20031205142823.I14099@tweety.corp.gnac.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk David Williamson wrote: >Given that conserver's interface is pretty simple, I suspect that *login >could be easily modified to utilize something like conserver (or direct >ssh to a serial port, as you suggest), but I haven't looked at it. > >Perhaps this is something the user community could request for a future >version? > > I'd definately like to see this also, (not just for lab gear). There was a little discussion about this a few months back, you might check the archives to see what came of that. Greetings Andrew, always nice to see some more folks from Australia using RANCID :). From owner-rancid-discuss-outgoing@shrubbery.net Sat Dec 6 00:19:13 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id DDE9AC67A8 for ; Sat, 6 Dec 2003 00:19:13 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 598F517D07F; Sat, 6 Dec 2003 00:19:13 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 4761A17D0AA; Sat, 6 Dec 2003 00:19:13 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from gizmo01bw.bigpond.com (gizmo01bw.bigpond.com [144.140.70.11]) by guelah.shrubbery.net (Postfix) with SMTP id 818A117D07F for ; Sat, 6 Dec 2003 00:19:11 +0000 (UTC) Received: (qmail 11569 invoked from network); 6 Dec 2003 00:20:32 -0000 Received: from unknown (HELO bwmam01.bigpond.com) (144.135.24.69) by gizmo01bw.bigpond.com with SMTP; 6 Dec 2003 00:20:32 -0000 Received: from cpe-144-132-105-57.vic.bigpond.net.au ([144.132.105.57]) by bwmam01.bigpond.com(MAM REL_3_4_2 8/3402312) with SMTP id 3402312; Sat, 06 Dec 2003 10:19:05 +1000 Message-ID: <3FD12079.3090605@choqolat.org> Date: Sat, 06 Dec 2003 11:19:05 +1100 From: Andrew Fort User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alastair Galloway Cc: rancid-discuss@shrubbery.net Subject: Re: Riverstones and RANCID References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Alastair Galloway wrote: >Hi, > >I've installed and set up RANCID to grab the configs of some Ciscos and >Junipers and now I want it to talk to some Riverstone kit (specifically a >Riverstone 3000 running software version 9.0.0.1). I've found a few >references to a "rivlogin" in archives of this mailing list but I haven't >actually found copies of the scripts anywhere - do they exist? >Alternatively I can hack the clogin and maybe rancid scripts, but I'd be >happy if I could avoid having to do that. > > >Cheers, > >Alastair Galloway > > Greetings Alastair. I'm using a few RS3000s and also some cabletron^H^H^Henterasys SSR86000s (same CLI), which behave like the Riverstones as far as RANCID is concerned. I found some serious buffering issues (related to the annoying "ANSI" control characters in the RivOS/Enterasys/CabletronOS CLI) with the supplied 'rivlogin' in the 2.3 betas. However, I have hacked the www.nmops.org 'rscmd' (originally hacked from clogin anyhow) to support multiple commands per login (as required by RANCID) and this works well for me (Linux 2.2/2.4, Solaris 8, various tcl/expect versions, etc). Perhaps you'd like to give the hacked rscmd a try? It lacks the -s (script) feature of the other *login programs, but otherwise is complete. I'd like to get some other testers on this so we can get it included into 2.3 final. TODO on this includes: - hack to make 'last resort' passwords configurable (RADIUS failures are common on the Enterasys boxen).. -afort From owner-rancid-discuss-outgoing@shrubbery.net Sat Dec 6 01:15:36 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 0E108C67A8 for ; Sat, 6 Dec 2003 01:15:36 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 8FBD917D0A9; Sat, 6 Dec 2003 01:15:35 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 6D71717D318; Sat, 6 Dec 2003 01:15:35 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from daedalus.andrew.net.au (daedalus.andrew.net.au [210.18.204.2]) by guelah.shrubbery.net (Postfix) with ESMTP id AE60617D0A9 for ; Sat, 6 Dec 2003 01:15:33 +0000 (UTC) Received: from daedalus.andrew.net.au (apollock@daedalus.andrew.net.au [127.0.0.1]) by daedalus.andrew.net.au (8.12.10/8.12.10/Debian-1) with ESMTP id hB61FR88008014; Sat, 6 Dec 2003 11:15:27 +1000 Received: (from apollock@localhost) by daedalus.andrew.net.au (8.12.10/8.12.10/Debian-1) id hB61FOWh008012; Sat, 6 Dec 2003 11:15:24 +1000 Date: Sat, 6 Dec 2003 11:15:24 +1000 From: Andrew Pollock To: Andrew Fort Cc: David Williamson , rancid-discuss@shrubbery.net Subject: Re: RANCID's fantastic! Message-ID: <20031206011524.GX26257@daedalus.andrew.net.au> References: <20031205221714.GW26257@daedalus.andrew.net.au> <20031205142823.I14099@tweety.corp.gnac.com> <3FD11F89.3090609@choqolat.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FD11F89.3090609@choqolat.org> User-Agent: Mutt/1.5.4i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On Sat, Dec 06, 2003 at 11:15:05AM +1100, Andrew Fort wrote: > David Williamson wrote: > > >Given that conserver's interface is pretty simple, I suspect that *login > >could be easily modified to utilize something like conserver (or direct > >ssh to a serial port, as you suggest), but I haven't looked at it. > > > >Perhaps this is something the user community could request for a future > >version? > > > > > > I'd definately like to see this also, (not just for lab gear). There > was a little discussion about this a few months back, you might check > the archives to see what came of that. I'll go trawling through the archives... > Greetings Andrew, always nice to see some more folks from Australia > using RANCID :). It was actually your handiwork on Aussie-ISP that alerted me to RANCID's existence :-) And I'm not using it yet, but if the aforementioned functionality existed, I could more or less use it as a drop-in replacement for what I've already written... Andrew From owner-rancid-discuss-outgoing@shrubbery.net Sat Dec 6 03:12:38 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 938FDC67C6 for ; Sat, 6 Dec 2003 03:12:38 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 286AA17D30B; Sat, 6 Dec 2003 03:12:38 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 029D317D330; Sat, 6 Dec 2003 03:12:37 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from gollum.gatel.net (gollum.gatel.net [212.20.150.205]) by guelah.shrubbery.net (Postfix) with ESMTP id C735C17D30B for ; Sat, 6 Dec 2003 03:12:35 +0000 (UTC) Received: from czmok by gollum.gatel.net with local (Exim 3.35 #1 (Debian)) id 1ASSsL-0006Ci-00 for ; Sat, 06 Dec 2003 04:12:57 +0100 Date: Sat, 6 Dec 2003 04:12:57 +0100 From: Jan Czmok To: rancid-discuss@shrubbery.net Subject: 2.3 suggestions / additional devices Message-ID: <20031206031257.GA27259@gollum.gatel.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline X-NCC-RegID: de.gatel X-Uptime: 17:24:47 up 2 days, 2:19, 3 users, load average: 1.12, 1.08, 0.66 User-Agent: Mutt/1.5.4i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi! Through the time, i hacked a rather _ugly_ support for netopia dsl routers. i'd like to see included support in the new 2.3. i have attached the respective files, so if somebody could give it a try to clean it up a bit, i would be happy to provide it to the rancid community. i know that the "if host does not respond" is not yet fully cleaned up. if somebody could help me with that... okay, i'm ready for suggestions & tests. will also start testing the 2.3 release. -- Jan Czmok, Network Engineering & Support, Global Access Telecomm, Inc. Ph.: +49 69 299896-35 - fax: +49 69 299896-40 - sip:13129*522@inoc-dba.pch.net --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=nlogin Content-Transfer-Encoding: quoted-printable #!/usr/local/bin/expect -- ## ## ## Copyright (C) 1997-2001 by Henry Kilmer, Erik Sherk and Pete Whiting. ## All rights reserved. ## ## This software may be freely copied, modified and redistributed without ## fee for non-commerical purposes provided that this copyright notice is ## preserved intact on all copies and modified copies. ## ## There is no warranty or other guarantee of fitness of this software. ## It is provided solely "as is". The author(s) disclaim(s) all ## responsibility and liability with respect to this software's usage ## or its effect upon hardware, computer systems, other software, or ## anything else. ## ## # # tlogin - telindus login # # Most options are intuitive for logging into an telindus crocus router # # Usage line set usage "Usage: $argv0 \[-noenable\] \[-c command\] \ \[-Evar=3Dx\] \[-f cloginrc-file\] \[-p user-password\] \ \[-s script-file\] \[-t timeout\] \[-u username\] \ \[-v vty-password\] \[-w enable-username\] \[-x command-file\] \ \[-y ssh_cypher_type\] router \[router...\]\n" # env(CLOGIN) may contain: # x =3D=3D do not set xterm banner or name # Password file set password_file $env(HOME)/.cloginrc # Default is to login to the router set do_command 0 set do_script 0 # The default is to automatically enable set enable 0 # The default is that you login non-enabled (tacacs can have you login alre= ady enabled) set autoenable 0 # The default is to look in the password file to find the passwords. This # tracks if we receive them on the command line. set do_passwd 1 # Find the user in the ENV, or use the unix userid. if {[ info exists env(CISCO_USER) ] } { set default_user $env(CISCO_USER) } elseif {[ info exists env(USER) ]} { set default_user $env(USER) } else { # This uses "id" which I think is portable. At least it has existed # (without options) on all machines/OSes I've been on recently - # unlike whoami or id -nu. if [ catch {exec id} reason ] { send_error "\nError: could not exec id: $reason\n" exit 1 }=20 regexp {\(([^)]*)} "$reason" junk default_user } =20 # Sometimes routers take awhile to answer (the default is 10 sec) set timeout 45 # Process the command line for {set i 0} {$i < $argc} {incr i} { set arg [lindex $argv $i] switch -glob -- $arg { # Username -u* - -U* { if {! [ regexp .\[uU\](.+) $arg ignore user]} { incr i set username [ lindex $argv $i ] } # VTY Password } -p* - -P* { if {! [ regexp .\[pP\](.+) $arg ignore userpasswd]} { incr i set userpasswd [ lindex $argv $i ] } set do_passwd 0 # VTY Password } -v* - -v* { if {! [ regexp .\[vV\](.+) $arg ignore passwd]} { incr i set passwd [ lindex $argv $i ] } set do_passwd 0 # Enable Username } -w* - -W* { # ignore -w # Environment variable to pass to -s scripts } -E* { if {[ regexp .\[E\](.+)=3D(.+) $arg ignore varname varvalue]} { set E$varname $varvalue } else { send_user "Error: invalid format for -E in $arg\n" exit 1 } # Enable Password } -e* { # ignore -e # Command to run. } -c* - -C* { if {! [ regexp .\[cC\](.+) $arg ignore command]} { incr i set command [ lindex $argv $i ] } set do_command 1 # Expect script to run. } -s* - -S* { if {! [ regexp .\[sS\](.+) $arg ignore sfile]} { incr i set sfile [ lindex $argv $i ] } if { ! [ file readable $sfile ] } { send_user "\nError: Can't read $sfile\n" exit 1 } set do_script 1 # 'ssh -c' cypher type } -y* - -Y* { if {! [ regexp .\[eE\](.+) $arg ignore cypher]} { incr i set cypher [ lindex $argv $i ] } # alternate cloginrc file } -f* - -F* { if {! [ regexp .\[fF\](.+) $arg ignore password_file]} { incr i set password_file [ lindex $argv $i ] } # Timeout } -t* - -T* { if {! [ regexp .\[tT\](.+) $arg ignore timeout]} { incr i set timeout [ lindex $argv $i ] } # Command file } -x* - -X { if {! [ regexp .\[xX\](.+) $arg ignore cmd_file]} { incr i set cmd_file [ lindex $argv $i ] } if [ catch {set cmd_fd [open $cmd_file r]} reason ] { send_user "\nError: $reason\n" exit 1 } set cmd_text [read $cmd_fd] close $cmd_fd set command [join [split $cmd_text \n] \;] set do_command 1 # Do we enable? } -noenable { # ignore -noenable # Does tacacs automatically enable us? } -autoenable { # ignore -autoenable } -* { send_user "\nError: Unknown argument! $arg\n" send_user $usage exit 1 } default { break } } } # Process routers...no routers listed is an error. if { $i =3D=3D $argc } { send_user "\nError: $usage" } # Only be quiet if we are running a script (it can log its output # on its own) if { $do_script } { log_user 0 } else { log_user 1 } # # Done configuration/variable setting. Now run with it... # # Sets Xterm title if interactive...if its an xterm and the user cares proc label { host } { global env # if CLOGIN has an 'x' in it, don't set the xterm name/banner if [info exists env(CLOGIN)] { if {[string first "x" $env(CLOGIN)] !=3D -1} { return } } # take host from ENV(TERM) if [info exists env(TERM)] { if [regexp \^(xterm|vs) $env(TERM) ignore ] { send_user "\033]1;[lindex [split $host "."] 0]\a" send_user "\033]2;$host\a" } } } # This is a helper function to make the password file easier to # maintain. Using this the password file has the form: # add password sl* pete cow # add password at* steve # add password * hanky-pie proc add {var args} { global int_$var ; lappend int_$var $args} proc include {args} { global env regsub -all "(^{|}$)" $args {} args if { [ regexp "^/" $args ignore ] =3D=3D 0 } { set args $env(HOME)/$args } source_password_file $args } proc find {var router} { upvar int_$var list if { [info exists list] } { foreach line $list { if { [string match [lindex $line 0] $router ] } { return [lrange $line 1 end] } } } return {} } # Loads the password file. Note that as this file is tcl, and that # it is sourced, the user better know what to put in there, as it # could install more than just password info... I will assume however, # that a "bad guy" could just as easy put such code in the clogin # script, so I will leave .cloginrc as just an extention of that script proc source_password_file { password_file } { global env if { ! [file exists $password_file] } { send_user "\nError: password file ($password_file) does not exist\n" exit 1 } file stat $password_file fileinfo if { [expr ($fileinfo(mode) & 007)] !=3D 0000 } { send_user "\nError: $password_file must not be world readable/writable\n" exit 1 } if [ catch {source $password_file} reason ] { send_user "\nError: $reason\n" exit 1 } } # Log into the router. proc login { router user userpswd passwd prompt cmethod cyphertype } { global spawn_id in_proc do_command do_script global u_prompt p_prompt set in_proc 1 set uprompt_seen 0=20 # try each of the connection methods in $cmethod until one is successful set progs [llength $cmethod] foreach prog [lrange $cmethod 0 end] { if [string match "telnet*" $prog] { regexp {telnet(:([^[:space:]]+))*} $prog command suffix port if {"$port" =3D=3D ""} { set retval [ catch {spawn telnet $router} reason ] =20 } else {=20 set retval [ catch {spawn telnet $router $port} reason ] } if { $retval } { send_user "\nError: telnet failed: $reason\n" exit 1=20 } } else { puts "\nError: unknown connection method: $prog" return 1 } incr progs -1 sleep 0.3 # This helps cleanup each expect clause. expect_after { timeout { send_user "\nError: TIMEOUT reached\n" catch {close}; wait if { $in_proc} { return 1 } else { continue } } eof { send_user "\nError: EOF received\n" catch {close}; wait if { $in_proc} { return 1 } else { continue } } } expect { "Connection refused" { close; wait sleep 0.3 expect eof send_user "\nError: Connection Refused\n"; wait; return 1 } eof { send_user "\nError: Couldn't login\n"; wait; return 1 } "Unknown host\r\n" { expect eof send_user "\nError: Unknown host\n"; wait; return 1 } "Host is unreachable" { expect eof send_user "\nError: Host Unreachable!\n"; wait; return 1 } "No address associated with name" { expect eof send_user "\nError: Unknown host\n"; wait; return 1 } -re "$u_prompt" { send "$user\r" set uprompt_seen 1 exp_continue } -re "$p_prompt" { sleep 1 if {$uprompt_seen =3D=3D 1} { send "$userpswd\r" } else { send "$passwd\r" } sleep 1 send "=0E"=20 send "=0D" exp_continue } "Password incorrect" { send_user "\nError: Check your password for $router= \n"; catch {close}; wait; return 1 } "$prompt" { break; } denied { send_user "\nError: Check your passwd for $router\n" catch {close}; wait; return 1 } "\r\n" { exp_continue; } } } set in_proc 0 return 0 } # Run commands given on the command line. proc run_commands { prompt command } { global in_proc set in_proc 1 expect $prompt {} regsub -all "\[)(]" $prompt {\\&} reprompt # Is this a multi-command? if [ string match "*\;*" "$command" ] { set commands [split $command \;] set num_commands [llength $commands] for {set i 0} {$i < $num_commands} { incr i} { send "[subst -nocommands [lindex $commands $i]]\r" expect { -re "^\[^\n\r]*$reprompt." { exp_continue } -re "^\[^\n\r *]*$reprompt" {} -re "\[\n\r]" { exp_continue } } } } else { send "[subst -nocommands $command]\r" expect { -re "^\[^\n\r]*$reprompt." { exp_continue } -re "^\[^\n\r *]*$reprompt" {} -re "\[\n\r]" { exp_continue } } } send "exit\r" expect { "\n" { exp_continue } timeout { return 0 } eof { return 0 } } set in_proc 0 } # # For each router... (this is main loop) # source_password_file $password_file set in_proc 0 foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # Figure out prompt. set prompt "#" set autoenable 0 set enable 0 # Figure out passwords if { $do_passwd } { set pswd [find password $router] if { [llength $pswd] =3D=3D 0 } { send_user "Error: no password for $router in $password_file.\n" continue } set passwd [lindex $pswd 0] } # Figure out username if {[info exists username]} { # command line username set ruser $username } else { set ruser [find user $router] if { "$ruser" =3D=3D "" } { set ruser $default_user } } # Figure out username's password (if different from the vty password) if {[info exists userpasswd]} { # command line username set userpswd $userpasswd } else { set userpswd [find userpassword $router] if { "$userpswd" =3D=3D "" } { set userpswd $passwd } } # Figure out prompts set u_prompt [find userprompt $router] if { "$u_prompt" =3D=3D "" } { set u_prompt "name:" } else { set u_prompt [lindex $u_prompt 0] } set p_prompt [find passprompt $router] if { "$p_prompt" =3D=3D "" } { set p_prompt "\[Pp]assword:" } else { set p_prompt [lindex $p_prompt 0] } # Figure out cypher type if {[info exists cypher]} { # command line cypher type set cyphertype $cypher } else { set cyphertype [find cyphertype $router] if { "$cyphertype" =3D=3D "" } { set cyphertype "3des" } } # Figure out connection method set cmethod [find method $router] if { "$cmethod" =3D=3D "" } { set cmethod {{telnet}} } # Login to the router if {[login $router $ruser $userpswd $passwd $prompt $cmethod $cyphertyp= e]} { continue } if { $do_command } { if {[run_commands $prompt $command]} { continue } } elseif { $do_script } { expect $prompt {} source $sfile close } else { label $router log_user 1 interact } # End of for each router wait sleep 0.3 } exit 0 --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=nrancid Content-Transfer-Encoding: quoted-printable #!/usr/bin/perl5=20 ## ## Hacked version of rancid for telindus router. Only tested ## with crocos router ## ## ## Copyright (C) 2001-2003 Jan Czmok ## All rights reserved. ## ## This software may be freely copied, modified and redistributed without ## fee for non-commerical purposes provided that this copyright notice is ## preserved intact on all copies and modified copies. ## ## There is no warranty or other guarantee of fitness of this software. ## It is provided solely "as is". The author(s) disclaim(s) all ## responsibility and liability with respect to this software's usage ## or its effect upon hardware, computer systems, other software, or ## anything else. ## ## # # RANCID - Really Awesome New Cisco confIg Differ # # usage: rancid [-d] [-l] [-f filename | $host] # use Getopt::Std; getopts('dflm'); $log =3D $opt_l; $debug =3D $opt_d; $file =3D $opt_f; $host =3D $ARGV[0]; $clean_run =3D 0; $found_end =3D 0; $timeo =3D 90; # clogin timeout in seconds $debug =3D 1; 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,@string)=3D(@_); 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} =3D "$history{$command_string}@string"; } else { $history{$command_string} =3D "@string"; } } elsif (($new_hist_tag) && ($new_command)) { $history{++$#history} =3D "@string"; } else { print "@string"; } $hist_tag =3D $new_hist_tag; $command =3D $new_command; 1; } sub numerically { $a <=3D> $b; } # This is a sort routing that will sort numerically on the # keys of a hash as if it were a normal array. sub keynsort { local(%lines)=3D@_; local($i) =3D 0; local(@sorted_lines); foreach $key (sort numerically keys(%lines)) { $sorted_lines[$i] =3D $lines{$key}; $i++; } @sorted_lines; } # This is a sort routing that will sort on the # keys of a hash as if it were a normal array. sub keysort { local(%lines)=3D@_; local($i) =3D 0; local(@sorted_lines); foreach $key (sort keys(%lines)) { $sorted_lines[$i] =3D $lines{$key}; $i++; } @sorted_lines; } # This is a sort routing that will sort on the # values of a hash as if it were a normal array. sub valsort{ local(%lines)=3D@_; local($i) =3D 0; local(@sorted_lines); foreach $key (sort values %lines) { $sorted_lines[$i] =3D $key; $i++; } @sorted_lines; } # This is a numerical sort routing (ascending). sub numsort { local(%lines)=3D@_; local($i) =3D 0; local(@sorted_lines); foreach $num (sort {$a <=3D> $b} keys %lines) { $sorted_lines[$i] =3D $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)=3D@_; local($i) =3D 0; local(@sorted_lines); foreach $addr (sort sortbyipaddr keys %lines) { $sorted_lines[$i] =3D $lines{$addr}; $i++; } @sorted_lines; } # These two routines will sort based upon IP addresses sub ipaddrval { my(@a) =3D ($_[0] =3D~ m#^(\d+)\.(\d+)\.(\d+)\.(\d+)$#); $a[3]+256*($a[2]+256*($a[1]+256*$a[0])); } sub sortbyipaddr { &ipaddrval($a) <=3D> &ipaddrval($b); } # This routine processes a "write term" sub WriteTerm { print STDERR " In WriteTerm: $_" if ($debug); while () { tr/\015//d; # last if(/^>=1B\[H#/); last if(/#exit/); chop; return(-1) if (/.*error.*/i); ProcessHistory("","","","$_\n"); if (/^#exit/) { $found_end =3D 1; last; return(1); } } return(0); } # dummy function sub DoNothing {print STDOUT;} # Main %commands=3D( 'show config' =3D> "WriteTerm", ); # keys() doesnt return things in the order entered and the order of the # cmds is important (show version first and write term last). pita @commands=3D( "show config", ); $cisco_cmds=3Djoin(";",@commands); $cmds_regexp=3Djoin("|",@commands); open(OUTPUT,">$host.new") || die "Can't open $host.new for writing: $!\n"; select(OUTPUT); # make OUTPUT unbuffered if debugging if ($debug) { $| =3D 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 nlogin -t $timeo -c \"$cisco_cmds\" $host\n" if= ($debug); print STDOUT "executing nlogin -t $timeo -c \"$cisco_cmds\" $host\n" if= ($log); if (defined($ENV{NOPIPE})) { system "nlogin -t $timeo -c \"$cisco_cmds\" $host $host.raw 2= >&1" || die "nlogin failed for $host: $!\n"; open(INPUT, "< $host.raw") || die "nlogin failed for $host: $!\n"; } else { open(INPUT,"nlogin -t $timeo -c \"$cisco_cmds\" $host ) { tr/\015//d; # if ($found_end =3D true) { # $clean_run=3D1; # last; # } if (/^Error:/) { print STDOUT ("$host nlogin error: $_"); print STDERR ("$host nlogin error: $_") if ($debug); $clean_run=3D0; last; } while (/#($cmds_regexp)\s*$/) { $cmd =3D $1; if (!defined($prompt)) { $prompt =3D ($_ =3D~ /^([^#]+#)/)[0]; $prompt =3D~ s/([}{)(\\])/\\$1/g; } print STDERR ("HIT COMMAND:$_") if ($debug); if (! defined($commands{$cmd})) { print STDERR "$host: found unexpected command - \"$cmd\"\n"; $clean_run =3D 0; last; } $rval =3D &{$commands{$cmd}}; delete($commands{$cmd}); if ($rval =3D=3D -1) { $clean_run =3D 0; last; } } } print STDOUT "Done $logincmd: $_\n" if ($log); # Flush History ProcessHistory("","","",""); # Cleanup close(INPUT); close(OUTPUT); $clean_run=3D1; $found_end=3D1; 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); } --/04w6evG8XlLl3ft-- From owner-rancid-discuss-outgoing@shrubbery.net Sat Dec 6 18:52:23 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id C4ACCC67A8 for ; Sat, 6 Dec 2003 18:52:23 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 365DF17D330; Sat, 6 Dec 2003 18:52:23 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 1210E17D332; Sat, 6 Dec 2003 18:52:23 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 96BBD17D331; Sat, 6 Dec 2003 18:52:21 +0000 (UTC) Date: Sat, 6 Dec 2003 18:52:21 +0000 From: john heasley To: Andrew Pollock Cc: rancid-discuss@shrubbery.net Subject: Re: RANCID's fantastic! Message-ID: <20031206185221.GJ28851@shrubbery.net> References: <20031205221714.GW26257@daedalus.andrew.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031205221714.GW26257@daedalus.andrew.net.au> User-Agent: Mutt/1.4i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk What if there were a "pre-login" (and perhaps post-disconnect) script (akin to clogin -s), specified/identified by cloginrc? for example, add loginscript router* {/usr/local/share/cisco-cons.exp} add logoutscript router* {/usr/local/share/cisco-cons-disco.exp} cisco-cons.exp might contain the bits necessary to perform the connection, after which *login will expect to have a direct connection; thus "connectscript" may be more apropos (the names are irrelevant). And, -disco would take care of the disconnect in the same manner. Those could accompanied by "post-{login,logout}" scripts. I suspect that both (any) of these would have to meet some expectations of *login. I'm not sure exactly what those might be, just a nagging thought in the back of the brain. I believe what afort referred to in his mail was the idea of having a "pre-login" command directive in cloginrc. An idea which would be replaced by this. That is very rough, completely ignoring how this affects detection of the disconnect/exit from the device CLI. But, the idea is to allow it to be adapted however _you_, the user, need. Thoughts? Sat, Dec 06, 2003 at 08:17:14AM +1000, Andrew Pollock: > Hi, > > I stumbled upon RANCID the other day, and boy is it the bees knees. I've > written something functionally similar (I haven't looked at RANCID's innards > yet) but this looks pretty spiffy. We use what I've written to drag configs > out of Cisco routers, switches and PIXes, and check them into CVS. > > One thing that we do is not allow telnet access to our switches. They're all > connected to Cyclades console access servers, and my script SSHes to the > Cyclades to get onto the console of the switch. Any thoughts on including > the ability to connect to a device via an intermediate device? > > To my knowledge, you can't setup RSA/DSA key access to a port on a Cyclades, > which is a bit of a bummer, and to work around the issues with trying to > authenticate to the Cyclades and then authenticate to the device on the > Cyclades' port, I've just disabled authentication on the port, so if you SSH > to the port, you land immediately on the console of the switch, and are > asked to authenticate to it. In an ideal world, it would be good to have > port-based authentication switched on... > > regards > > Andrew From owner-rancid-discuss-outgoing@shrubbery.net Sun Dec 7 10:42:25 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 9DF60C67E5 for ; Sun, 7 Dec 2003 10:42:25 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 0FA7B17D332; Sun, 7 Dec 2003 10:42:25 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id E091517D334; Sun, 7 Dec 2003 10:42:24 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from gizmo07bw.bigpond.com (gizmo07bw.bigpond.com [144.140.70.17]) by guelah.shrubbery.net (Postfix) with SMTP id 6D78617D333 for ; Sun, 7 Dec 2003 10:42:22 +0000 (UTC) Received: (qmail 15052 invoked from network); 7 Dec 2003 10:41:13 -0000 Received: from unknown (HELO bwmam08.bigpond.com) (144.135.24.91) by gizmo07bw.bigpond.com with SMTP; 7 Dec 2003 10:41:13 -0000 Received: from cpe-144-132-105-57.vic.bigpond.net.au ([144.132.105.57]) by bwmam08.bigpond.com(MAM REL_3_4_2 135/3985858) with SMTP id 3985858; Sun, 07 Dec 2003 20:41:43 +1000 Message-ID: <3FD303E6.7090807@choqolat.org> Date: Sun, 07 Dec 2003 21:41:42 +1100 From: Andrew Fort User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: john heasley Cc: rancid-discuss@shrubbery.net Subject: pre-post login script (was Re: RANCID's fantastic!) References: <20031205221714.GW26257@daedalus.andrew.net.au> <20031206185221.GJ28851@shrubbery.net> In-Reply-To: <20031206185221.GJ28851@shrubbery.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk john heasley wrote: >What if there were a "pre-login" (and perhaps post-disconnect) script (akin >to clogin -s), specified/identified by cloginrc? for example, > >add loginscript router* {/usr/local/share/cisco-cons.exp} >add logoutscript router* {/usr/local/share/cisco-cons-disco.exp} > >I suspect that both (any) of these would have to meet some expectations of >*login. I'm not sure exactly what those might be, just a nagging thought >in the back of the brain. > > The main change as I see it would be required in the logoutscript, since if I read this correctly, the end of each router. } else { label $router log_user 1 interact } # End of for each router wait sleep 0.3 } exit 0 The "interact" ends when the session closes? (i.e., after we might need to do some bits with the script). Looks straightforward if we're already running a script (-s), however. >I believe what afort referred to in his mail was the idea of having a >"pre-login" command directive in cloginrc. An idea which would be replaced >by this. > > Yep, that's what I was getting at. The type of hook you suggest sounds like a better option. -afort From owner-rancid-discuss-outgoing@shrubbery.net Mon Dec 8 09:48:27 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 9FD16C67EF for ; Mon, 8 Dec 2003 09:48:27 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 0D71D17D334; Mon, 8 Dec 2003 09:48:27 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id DC57A17D337; Mon, 8 Dec 2003 09:48:26 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from ns3.vmb-service.ru (ns3.vmb-service.ru [80.73.194.253]) by guelah.shrubbery.net (Postfix) with ESMTP id 74D5B17D334; Mon, 8 Dec 2003 09:48:20 +0000 (UTC) Received: from office.vmb-service.ru ([80.73.192.47]:54534 "EHLO ALEC") by Altair with ESMTP id ; Mon, 8 Dec 2003 12:48:10 +0300 Reply-To: From: "Alexander Voropay" To: "'john heasley'" Cc: Subject: RE: Riverstones and RANCID Date: Mon, 8 Dec 2003 12:44:31 +0300 Organization: VMB-Service Message-ID: <00d901c3bd6f$e11eaf90$1701a8c0@ALEC> 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.4024 In-Reply-To: <20031205175015.GP13880@shrubbery.net> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hi! >It is (will be) included in rancid 2-3. you are welcome to try the EFT image here: > ftp://ftp.shrubbery.net/outgoing/rancid-2.3.eft5.tar.gz Could you rename the RANCID's 'rename' utility too ? It conflicts with RedHat's '/usr/bin/rename' from the "util-linux" package (system). This "util-linux" also includes "/bin/login" "/sbin/clock" e.t.c. so, it is very hard to recompile/remove this package. So, RANCID incompatible with RedHat-based systems... P.S. I'm trying to create a ~good~ "rancid.spec" file to build RANCID as RPM. I've renamed 'rename' to 'rancid-rename' now. P.P.S. Will you update rancid's web-page http://www.shrubbery.net/rancid/ to new version ? -- -=AV=- From owner-rancid-discuss-outgoing@shrubbery.net Mon Dec 8 15:34:33 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id A03A1C6802 for ; Mon, 8 Dec 2003 15:34:33 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 0A40817D333; Mon, 8 Dec 2003 15:34:33 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id DE48117D33A; Mon, 8 Dec 2003 15:34:32 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from tower.partan.com (tower.partan.com [198.6.255.248]) by guelah.shrubbery.net (Postfix) with ESMTP id 832D217D333 for ; Mon, 8 Dec 2003 15:34:31 +0000 (UTC) Received: from tower.partan.com (localhost.partan.com [127.0.0.1]) by tower.partan.com (8.12.8p2/8.12.8) with ESMTP id hB8FYUgq015581; Mon, 8 Dec 2003 10:34:30 -0500 (EST) (envelope-from asp@tower.partan.com) Received: (from asp@localhost) by tower.partan.com (8.12.8p2/8.12.8/Submit) id hB8FYT6w015578; Mon, 8 Dec 2003 10:34:29 -0500 (EST) (envelope-from asp) Date: Mon, 8 Dec 2003 10:34:29 -0500 From: Andrew Partan To: Alexander Voropay Cc: rancid-discuss@shrubbery.net Subject: Re: Riverstones and RANCID Message-ID: <20031208153429.GC15104@partan.com> References: <20031205175015.GP13880@shrubbery.net> <00d901c3bd6f$e11eaf90$1701a8c0@ALEC> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00d901c3bd6f$e11eaf90$1701a8c0@ALEC> User-Agent: Mutt/1.4.1i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On Mon, Dec 08, 2003 at 12:44:31PM +0300, Alexander Voropay wrote: > Could you rename the RANCID's 'rename' utility too ? Hmm; does linux's rename do the same thing as rancid's rename? If it does, then we could see if we could convince configure to check for it & then not install rancid's rename if it found another rename. --asp From owner-rancid-discuss-outgoing@shrubbery.net Tue Dec 9 12:40:41 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 61F0AC67F3 for ; Tue, 9 Dec 2003 12:40:41 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id BAC3A17D33A; Tue, 9 Dec 2003 12:40:40 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 99BB417D33F; Tue, 9 Dec 2003 12:40:40 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from mignon.ki.iif.hu (mignon.ki.niif.hu [193.6.222.240]) by guelah.shrubbery.net (Postfix) with ESMTP id 8E42A17D33A; Tue, 9 Dec 2003 12:40:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mignon.ki.iif.hu (Postfix) with ESMTP id C31F25575; Tue, 9 Dec 2003 13:40:34 +0100 (CET) Received: from mignon.ki.iif.hu ([127.0.0.1]) by localhost (mignon.ki.iif.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 58504-01-8; Tue, 9 Dec 2003 13:40:33 +0100 (CET) Received: by mignon.ki.iif.hu (Postfix, from userid 1003) id 43B0F5574; Tue, 9 Dec 2003 13:40:33 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mignon.ki.iif.hu (Postfix) with ESMTP id 3FF195573; Tue, 9 Dec 2003 13:40:33 +0100 (CET) Date: Tue, 9 Dec 2003 13:40:33 +0100 (CET) From: Mohacsi Janos X-X-Sender: mohacsi@mignon.ki.iif.hu To: rancid-discuss@shrubbery.net, rancid@shrubbery.net Subject: new device for rancid 2.2.3? Message-ID: <20031209131251.S52654@mignon.ki.iif.hu> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1831094928-1070973633=:52654" Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-1831094928-1070973633=:52654 Content-Type: TEXT/PLAIN; charset=US-ASCII I send a quick/dirty hack attached for Hitachi routers. The ilogin is for logging into the Hitachi router, and irancid for getting Hitachi configuration. Best Regards, Janos Mohacsi Network Engineer, Research Associate NIIF/HUNGARNET, HUNGARY Key 00F9AF98: 8645 1312 D249 471B DBAE 21A2 9F52 0D1F 00F9 AF98 --0-1831094928-1070973633=:52654 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=irancid Content-Transfer-Encoding: BASE64 Content-ID: <20031209134033.R52654@mignon.ki.iif.hu> Content-Description: Content-Disposition: attachment; filename=irancid IyEvdXNyL2Jpbi9wZXJsNQ0KIyMNCiMjIGhhY2tlZCB2ZXJzaW9uIG9mIEhh bmsncyByYW5jaWQgLSB0aGlzIG9uZSB0cmllcyB0byBkZWFsIHdpdGggSGl0 YWNoaSdzLg0KIyMNCiMjIENvcHlyaWdodCAoQykgMTk5Ny0yMDAxIGJ5IEhl bnJ5IEtpbG1lci4NCiMjIENvcHlyaWdodCAyMDAzIEphbm9zIE1vaGFjc2ku DQojIyBBbGwgcmlnaHRzIHJlc2VydmVkLg0KIyMNCiMjIFRoaXMgc29mdHdh cmUgbWF5IGJlIGZyZWVseSBjb3BpZWQsIG1vZGlmaWVkIGFuZCByZWRpc3Ry aWJ1dGVkIHdpdGhvdXQNCiMjIGZlZSBmb3Igbm9uLWNvbW1lcmljYWwgcHVy cG9zZXMgcHJvdmlkZWQgdGhhdCB0aGlzIGNvcHlyaWdodCBub3RpY2UgaXMN CiMjIHByZXNlcnZlZCBpbnRhY3Qgb24gYWxsIGNvcGllcyBhbmQgbW9kaWZp ZWQgY29waWVzLg0KIyMNCiMjIFRoZXJlIGlzIG5vIHdhcnJhbnR5IG9yIG90 aGVyIGd1YXJhbnRlZSBvZiBmaXRuZXNzIG9mIHRoaXMgc29mdHdhcmUuDQoj IyBJdCBpcyBwcm92aWRlZCBzb2xlbHkgImFzIGlzIi4gVGhlIGF1dGhvcihz KSBkaXNjbGFpbShzKSBhbGwNCiMjIHJlc3BvbnNpYmlsaXR5IGFuZCBsaWFi aWxpdHkgd2l0aCByZXNwZWN0IHRvIHRoaXMgc29mdHdhcmUncyB1c2FnZQ0K IyMgb3IgaXRzIGVmZmVjdCB1cG9uIGhhcmR3YXJlLCBjb21wdXRlciBzeXN0 ZW1zLCBvdGhlciBzb2Z0d2FyZSwgb3INCiMjIGFueXRoaW5nIGVsc2UuDQ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Content-Type: TEXT/PLAIN; charset=US-ASCII; name=ilogin Content-Transfer-Encoding: BASE64 Content-ID: <20031209134033.E52654@mignon.ki.iif.hu> Content-Description: Content-Disposition: attachment; filename=ilogin IyEvdXNyL2xvY2FsL2Jpbi9leHBlY3QgLS0NCiMjDQojIw0KIyMgQ29weXJp Z2h0IChDKSAxOTk3LTIwMDEgYnkgSGVucnkgS2lsbWVyLCBFcmlrIFNoZXJr IGFuZCBQZXRlIFdoaXRpbmcuDQojIyBBbGwgcmlnaHRzIHJlc2VydmVkLg0K IyMNCiMjIFRoaXMgc29mdHdhcmUgbWF5IGJlIGZyZWVseSBjb3BpZWQsIG1v ZGlmaWVkIGFuZCByZWRpc3RyaWJ1dGVkIHdpdGhvdXQNCiMjIGZlZSBmb3Ig bm9uLWNvbW1lcmljYWwgcHVycG9zZXMgcHJvdmlkZWQgdGhhdCB0aGlzIGNv cHlyaWdodCBub3RpY2UgaXMNCiMjIHByZXNlcnZlZCBpbnRhY3Qgb24gYWxs IGNvcGllcyBhbmQgbW9kaWZpZWQgY29waWVzLg0KIyMNCiMjIFRoZXJlIGlz IG5vIHdhcnJhbnR5IG9yIG90aGVyIGd1YXJhbnRlZSBvZiBmaXRuZXNzIG9m IHRoaXMgc29mdHdhcmUuDQojIyBJdCBpcyBwcm92aWRlZCBzb2xlbHkgImFz IGlzIi4gVGhlIGF1dGhvcihzKSBkaXNjbGFpbShzKSBhbGwNCiMjIHJlc3Bv bnNpYmlsaXR5IGFuZCBsaWFiaWxpdHkgd2l0aCByZXNwZWN0IHRvIHRoaXMg c29mdHdhcmUncyB1c2FnZQ0KIyMgb3IgaXRzIGVmZmVjdCB1cG9uIGhhcmR3 YXJlLCBjb21wdXRlciBzeXN0ZW1zLCBvdGhlciBzb2Z0d2FyZSwgb3INCiMj IGFueXRoaW5nIGVsc2UuDQojIw0KIyMNCiMNCiMgaWxvZ2luIC0gSGl0YWNo aSByb3V0ZXIgbG9naW4NCiMNCiMgTW9zdCBvcHRpb25z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dGVy XQ0KICAgICAgaWYgeyAiJGN5cGhlcnR5cGUiID09ICIiIH0geyBzZXQgY3lw aGVydHlwZSAiM2RlcyIgfQ0KICAgIH0NCg0KICAgICMgRmlndXJlIG91dCBj b25uZWN0aW9uIG1ldGhvZA0KICAgIHNldCBjbWV0aG9kIFtmaW5kIG1ldGhv ZCAkcm91dGVyXQ0KICAgIGlmIHsgIiRjbWV0aG9kIiA9PSAiIiB9IHsgc2V0 IGNtZXRob2Qge3t0ZWxuZXR9fSB9DQoNCiAgICAjIExvZ2luIHRvIHRoZSBy b3V0ZXINCiAgICBpZiB7W2xvZ2luICRyb3V0ZXIgJHJ1c2VyICR1c2VycHN3 ZCAkcGFzc3dkICRwcm9tcHQgJGNtZXRob2QgJGN5cGhlcnR5cGVdfSB7DQoJ Y29udGludWUNCiAgICB9DQoNCiAgICBpZiB7ICRkb19jb21tYW5kIH0gew0K CWlmIHtbcnVuX2NvbW1hbmRzICRwcm9tcHQgJGNvbW1hbmRdfSB7DQoJICAg IGNvbnRpbnVlDQoJfQ0KICAgIH0gZWxzZWlmIHsgJGRvX3NjcmlwdCB9IHsN Cglzb3VyY2UgJHNmaWxlDQoJY2xvc2UNCiAgICB9IGVsc2Ugew0KCWxhYmVs ICRyb3V0ZXINCglsb2dfdXNlciAxDQoJaW50ZXJhY3QNCiAgICB9DQoNCiAg ICAjIEVuZCBvZiBmb3IgZWFjaCByb3V0ZXINCiAgICB3YWl0DQogICAgc2xl ZXAgMC4zDQp9DQpleGl0IDANCg== --0-1831094928-1070973633=:52654-- From owner-rancid-discuss-outgoing@shrubbery.net Tue Dec 9 20:28:44 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id A084AC680B for ; Tue, 9 Dec 2003 20:28:44 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 36F5217CFCE; Tue, 9 Dec 2003 20:28:44 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 137AC17D33E; Tue, 9 Dec 2003 20:28:44 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 6E09317D33D; Tue, 9 Dec 2003 20:28:43 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from rootshell.be (phenix.rootshell.be [195.74.192.154]) by guelah.shrubbery.net (Postfix) with ESMTP id 8A64517D337 for ; Tue, 9 Dec 2003 10:51:39 +0000 (UTC) Received: from localhost (alastair@localhost) by rootshell.be (8.12.10/8.11.5) with ESMTP id hB9AdjuH030290; Tue, 9 Dec 2003 11:39:47 +0100 X-Authentication-Warning: phenix.rootshell.be: alastair owned process doing -bs Date: Tue, 9 Dec 2003 11:39:45 +0100 (CET) From: Alastair Galloway X-X-Sender: alastair@phenix.rootshell.be To: rancid-discuss@shrubbery.net Subject: Whitespace after ":up" in router.db Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hi all, I've just started using RANCID 2.3 EFT (cheers to John for that) along with a rivlogin from Andrew Fort (based on rscmd, which was based on clogin). I found that a space after the ":up" in a router.db file resulted in that device being read as down. Andrew pointed out that the problem was in bin/control_rancid and that the two instances of the /^up$/ regexp would need to be replaced with /^up\s*$/ to match "up" and then any amount of whitespace after it. That's fixed the problem for me, so I'm sharing it with everyone else here: [rancid]$ diff bin/control_rancid~ bin/control_rancid 139c139 < if ($F[2] !~ /^up$/i);}' routers.db | sort -u > routers.down.new --- > if ($F[2] !~ /^up\s*$/i);}' routers.db | sort -u > routers.down.new 143c143 < if ($F[2] =~ /^up$/i);}' routers.db | sort -u > routers.up.new --- > if ($F[2] =~ /^up\s*$/i);}' routers.db | sort -u > routers.up.new [rancid]$ Cheers, Alastair Galloway From owner-rancid-discuss-outgoing@shrubbery.net Wed Dec 10 01:39:41 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 832A6C6811 for ; Wed, 10 Dec 2003 01:39:41 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id DD3BC17CFA0; Wed, 10 Dec 2003 01:39:38 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id BCF2717CFA3; Wed, 10 Dec 2003 01:39:38 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from kspmail.ksp.fi (kspmail.ksp.fi [193.185.184.66]) by guelah.shrubbery.net (Postfix) with ESMTP id AB61717CFA0 for ; Wed, 10 Dec 2003 01:39:36 +0000 (UTC) Received: from [172.16.1.111] (av.kestel.fi [195.236.254.244]) by kspmail.ksp.fi (8.11.1 - (Revision 1.4+JAGae91741)/8.11.1) with ESMTP id hBA1dUX09467 for ; Wed, 10 Dec 2003 03:39:30 +0200 (EET) Date: Wed, 10 Dec 2003 03:39:29 +0200 From: Juhis Harakka To: rancid-discuss@shrubbery.net Subject: =?ISO-8859-1?Q?Grabb=A7ing_ATM-configs_on_Catalysts?= Message-ID: <151750000.1071020369@kniga.kesnet.fi> X-Mailer: Mulberry/3.1.0 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hello all, I'm pretty new to rancid, only running it for few weeks. However, I noticed from the list archives, that in october there was some discussion about getting the configs from the ATM-daughterboards on Catalyst switches. I got the impression, that nobody hasn't done that yet, so I guess I have to scratch my own itch ;) I have been doing some thinking and testing, and my plan is as follws: Create a modified version of rancid, say e.g. carancid, which would during the config processing make a notice of slot numbers of ATM-cards. Then it could invoke modified version of clogin, e.g. calogin, for each slot. calogin should accept one additional command line argument specifying the slot number. Finally, carancid process the configs as usual and appends them to main switch config. Of course, modified version of cat5rancid is needed as well for CatOS switches... Any comments, thoughts, etc.? If no show stoppers pop up, I should have something cooked up before weekend... - juha - ---- Juha Harakka,Yliopistonkatu 42B29 ,SF-40321 Jyvaskyla- --- Tel: +358-500-643 319 -- -- e-mail: juhis@brewnuts.org -- - $ ! Welcome to X.400, BITNET for the '90s -- oh boy! ---- From owner-rancid-discuss-outgoing@shrubbery.net Wed Dec 10 01:55:55 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 1CE93C6811 for ; Wed, 10 Dec 2003 01:55:55 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 795D017CFA3; Wed, 10 Dec 2003 01:55:54 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 5D14017CFA7; Wed, 10 Dec 2003 01:55:54 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 6A3F717CFA6; Wed, 10 Dec 2003 01:55:53 +0000 (UTC) Date: Wed, 10 Dec 2003 01:55:53 +0000 From: john heasley To: Alastair Galloway Cc: rancid-discuss@shrubbery.net Subject: Re: Whitespace after ":up" in router.db Message-ID: <20031210015553.GU23866@shrubbery.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Tue, Dec 09, 2003 at 11:39:45AM +0100, Alastair Galloway: > Hi all, > > I've just started using RANCID 2.3 EFT (cheers to John for that) along with > a rivlogin from Andrew Fort (based on rscmd, which was based on clogin). I > found that a space after the ":up" in a router.db file resulted in that > device being read as down. Andrew pointed out that the problem was in > bin/control_rancid and that the two instances of the /^up$/ regexp would > need to be replaced with /^up\s*$/ to match "up" and then any amount of > whitespace after it. That's fixed the problem for me, so I'm sharing it > with everyone else here: > > [rancid]$ diff bin/control_rancid~ bin/control_rancid > 139c139 > < if ($F[2] !~ /^up$/i);}' routers.db | sort -u > routers.down.new > --- > > if ($F[2] !~ /^up\s*$/i);}' routers.db | sort -u > routers.down.new > 143c143 > < if ($F[2] =~ /^up$/i);}' routers.db | sort -u > routers.up.new > --- > > if ($F[2] =~ /^up\s*$/i);}' routers.db | sort -u > routers.up.new Thanks. This might make this just a bit more general. Index: control_rancid.in =================================================================== RCS file: /home/rancid/.CVS/rancid/bin/control_rancid.in,v retrieving revision 1.52 diff -u -d -u -r1.52 control_rancid.in --- control_rancid.in 26 Nov 2003 19:48:20 -0000 1.52 +++ control_rancid.in 10 Dec 2003 01:37:02 -0000 @@ -131,16 +131,17 @@ cd $DIR trap 'rm -fr routers.db routers.all.new routers.down.new routers.up.new \ routers.mail routers.added routers.deleted $TMP;' 1 2 15 -grep -v '^#' router.db > routers.db -cut -d: -f1,2 routers.db | sort -u > routers.all.new +sed -e '/^#/d' -e 's/^ *//' -e 's/ *$//' -e 's/ *: */:/g' router.db | + sort -u > routers.db +cut -d: -f1,2 routers.db > routers.all.new if [ ! -f routers.all ] ; then touch routers.all; fi diff routers.all routers.all.new > /dev/null 2>&1; RALL=$? @PERLV@ -F: -ane '{($F[0] =~ tr@A-Z@a-z@,print $_) - if ($F[2] !~ /^up$/i);}' routers.db | sort -u > routers.down.new + if ($F[2] !~ /^up$/i);}' routers.db > routers.down.new if [ ! -f routers.down ] ; then touch routers.down; fi diff routers.down routers.down.new > /dev/null 2>&1; RDOWN=$? @PERLV@ -F: -ane '{($F[0] =~ tr@A-Z@a-z@,print "$F[0]:$F[1]\n") - if ($F[2] =~ /^up$/i);}' routers.db | sort -u > routers.up.new + if ($F[2] =~ /^up$/i);}' routers.db > routers.up.new if [ ! -f routers.up ] ; then touch routers.up; fi diff routers.up routers.up.new > /dev/null 2>&1; RUP=$? From owner-rancid-discuss-outgoing@shrubbery.net Wed Dec 10 23:33:52 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 692C9C6810 for ; Wed, 10 Dec 2003 23:33:52 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id D2F6B17CFA0; Wed, 10 Dec 2003 23:33:51 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id B4A8617CFA3; Wed, 10 Dec 2003 23:33:51 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 7989A17CFA2; Wed, 10 Dec 2003 23:33:50 +0000 (UTC) Date: Wed, 10 Dec 2003 23:33:50 +0000 From: john heasley To: Andrew Fort Cc: john heasley , rancid-discuss@shrubbery.net Subject: Re: pre-post login script (was Re: RANCID's fantastic!) Message-ID: <20031210233350.GK10337@shrubbery.net> References: <20031205221714.GW26257@daedalus.andrew.net.au> <20031206185221.GJ28851@shrubbery.net> <3FD303E6.7090807@choqolat.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FD303E6.7090807@choqolat.org> User-Agent: Mutt/1.4i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Sun, Dec 07, 2003 at 09:41:42PM +1100, Andrew Fort: > john heasley wrote: > > >What if there were a "pre-login" (and perhaps post-disconnect) script (akin > >to clogin -s), specified/identified by cloginrc? for example, > > > >add loginscript router* {/usr/local/share/cisco-cons.exp} > >add logoutscript router* {/usr/local/share/cisco-cons-disco.exp} > > > >I suspect that both (any) of these would have to meet some expectations of > >*login. I'm not sure exactly what those might be, just a nagging thought > >in the back of the brain. > > > > > > The main change as I see it would be required in the logoutscript, since > if I read this correctly, the end of each router. > > } else { > label $router > log_user 1 > interact > } > > # End of for each router > wait > sleep 0.3 > } > exit 0 > > The "interact" ends when the session closes? (i.e., after we might need > to do some bits with the script). Looks straightforward if we're > already running a script (-s), however. Yes. For example, when the user types 'quit' at the device prompt, the spawned process (telnet, ssh, ...) exits and the interact ends. I do not know of any other way it would return. > >I believe what afort referred to in his mail was the idea of having a > >"pre-login" command directive in cloginrc. An idea which would be replaced > >by this. > > > > > > Yep, that's what I was getting at. The type of hook you suggest sounds > like a better option. > > -afort > From owner-rancid-discuss-outgoing@shrubbery.net Sun Dec 14 16:05:57 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 8F340C6795 for ; Sun, 14 Dec 2003 16:05:57 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id E160217CFCD; Sun, 14 Dec 2003 16:05:56 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id CBD0117CFCF; Sun, 14 Dec 2003 16:05:56 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by guelah.shrubbery.net (Postfix) with ESMTP id 0786B17CFCD for ; Sun, 14 Dec 2003 16:05:39 +0000 (UTC) Received: from localhost.localdomain (pcp02392381pcs.canton01.mi.comcast.net[68.41.78.4]) by comcast.net (rwcrmhc12) with ESMTP id <20031214160523014003lsphe>; Sun, 14 Dec 2003 16:05:23 +0000 Received: from [192.168.0.123] ([192.168.0.123]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id hBEH9xcJ022154 for ; Sun, 14 Dec 2003 12:09:59 -0500 User-Agent: Microsoft-Entourage/10.0.0.1309 Date: Sun, 14 Dec 2003 11:05:29 -0500 Subject: RANCID and PIX From: Brian Apley To: Untitled 5 Message-ID: In-Reply-To: <6.0.0.22.0.20031028164706.03eb06f8@mail.monterey.k12.ca.us> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hello- I've tried to add a PIX running 6.3.3 to my router.db, and listed it as a "Cisco" device. I'm able to SSH to the PIX from my RANCID box, and the key is stored, but the RANCID logs show a timeout for the PIX. Anyone have luck doing this? What might I need to change above and beyond a standard Cisco device? Brian Apley CCIE #7599, CCDP, CCSP, INFOSEC Professional LDMI Telecommunications From owner-rancid-discuss-outgoing@shrubbery.net Mon Dec 15 01:31:21 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id E9902C67A8 for ; Mon, 15 Dec 2003 01:31:21 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 5B94317CFA9; Mon, 15 Dec 2003 01:31:21 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 453FD17CFCF; Mon, 15 Dec 2003 01:31:21 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 5D2AA17CFCE; Mon, 15 Dec 2003 01:31:20 +0000 (UTC) Date: Sun, 14 Dec 2003 17:31:20 -0800 From: john heasley To: Brian Apley Cc: rancid-discuss@shrubbery.net Subject: Re: RANCID and PIX Message-ID: <20031215013120.GF12758@shrubbery.net> References: <6.0.0.22.0.20031028164706.03eb06f8@mail.monterey.k12.ca.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Sun, Dec 14, 2003 at 11:05:29AM -0500, Brian Apley: > Hello- > > I've tried to add a PIX running 6.3.3 to my router.db, and listed it as a > "Cisco" device. I'm able to SSH to the PIX from my RANCID box, and the key > is stored, but the RANCID logs show a timeout for the PIX. Anyone have luck > doing this? What might I need to change above and beyond a standard Cisco > device? > > Brian Apley > CCIE #7599, CCDP, CCSP, INFOSEC Professional > LDMI Telecommunications This is mostly likely to autoenable, see cloginrc(5), and test with % clogin pix and % clogin -c 'show version' pix From owner-rancid-discuss-outgoing@shrubbery.net Tue Dec 16 20:46:15 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 7C9BEC67C6 for ; Tue, 16 Dec 2003 20:46:15 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id EC54817CFA7; Tue, 16 Dec 2003 20:46:14 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id CA65217CFCF; Tue, 16 Dec 2003 20:46:14 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from z.paranode.com (z.paranode.com [63.249.3.194]) by guelah.shrubbery.net (Postfix) with SMTP id D647817CFA7 for ; Tue, 16 Dec 2003 20:46:13 +0000 (UTC) Received: (qmail 23396 invoked by uid 1000); 16 Dec 2003 20:46:12 -0000 Date: Tue, 16 Dec 2003 12:46:12 -0800 From: Troy Davis To: rancid-discuss@shrubbery.net Subject: Missed cmd(s) on certain devices, no .new file created Message-ID: <20031216204612.GC22186@nack.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GPG-Key: http://search.keyserver.net:11371/pks/lookup?op=get&search=0x26674368 User-Agent: Mutt/1.5.4i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hi, I've got 2.2.2 installed and successfully polling two 6500 supervisors (CatOS) and a Redback. However, on any of the IOS-based routers I try to poll (GSR 12000, 7200, 6500 MSFC), the logs give: Trying to get all of the configs. rtr.foo.com: missed cmd(s): show diag,show install active,show controllers cbus rtr2.foo.com: missed cmd(s): show diag,show install active,show controllers cbus (repeat for 4 rounds) /usr/local/rancid/bin/rename: *.new: No such file or directory and no config is updated. When I run "rancid rtr.foo.com" as the user rancid, it generates the same errors and removes the .new file. "rancid -d rtr.foo.com" shows: rtr.foo.com: missed cmd(s): show diag,show install active,show controllers cbus rtr.foo.com: missed cmd(s): show diag,show install active,show controllers cbus clogin is able to login and enable. It can do "show diag" (and any other command), though the other 2 commands above don't exist on these platforms. I'd expect to be able to comment those commands out in rancid and run the rest, but when I do that, the missed commands change to: rtr.foo.com: missed cmd(s): show env all,show diagbus Neither command exists. For grins I commented out the ones that don't exist and eventually end up with: rtr.foo.com: missed cmd(s): show env all,write term rtr.foo.com: missed cmd(s): show env all,write term rtr.foo.com: End of run not found rtr.foo.com: End of run not found ! cable type : V.35 DTE cable Anyone have any ideas? Cheers, Troy From owner-rancid-discuss-outgoing@shrubbery.net Tue Dec 16 20:58:54 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 28B10C67C6 for ; Tue, 16 Dec 2003 20:58:54 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id AC2EC17CFA2; Tue, 16 Dec 2003 20:58:53 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 8C16817CFD0; Tue, 16 Dec 2003 20:58:53 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 9D93017CFCF; Tue, 16 Dec 2003 20:58:52 +0000 (UTC) Date: Tue, 16 Dec 2003 12:58:52 -0800 From: john heasley To: Troy Davis Cc: rancid-discuss@shrubbery.net Subject: Re: Missed cmd(s) on certain devices, no .new file created Message-ID: <20031216205852.GN19611@shrubbery.net> References: <20031216204612.GC22186@nack.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031216204612.GC22186@nack.net> User-Agent: Mutt/1.4i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Tue, Dec 16, 2003 at 12:46:12PM -0800, Troy Davis: > Hi, > > I've got 2.2.2 installed and successfully polling two 6500 supervisors > (CatOS) and a Redback. However, on any of the IOS-based routers I try to > poll (GSR 12000, 7200, 6500 MSFC), the logs give: > > Trying to get all of the configs. > rtr.foo.com: missed cmd(s): show diag,show install active,show controllers cbus > rtr2.foo.com: missed cmd(s): show diag,show install active,show controllers cbus > (repeat for 4 rounds) > /usr/local/rancid/bin/rename: *.new: No such file or directory > > clogin is able to login and enable. It can do "show diag" (and any other > command), though the other 2 commands above don't exist on these platforms. > > I'd expect to be able to comment those commands out in rancid and run the > rest, but when I do that, the missed commands change to: > rtr.foo.com: missed cmd(s): show env all,show diagbus > > Neither command exists. For grins I commented out the ones that don't > exist and eventually end up with: > rtr.foo.com: missed cmd(s): show env all,write term > rtr.foo.com: missed cmd(s): show env all,write term > rtr.foo.com: End of run not found > rtr.foo.com: End of run not found > ! cable type : V.35 DTE cable > > > Anyone have any ideas? Mostly likely something in show version is causing rancid eat the output of the other commands (whatever appeared before "show env" in your last example). please try the eft image at ftp://ftp.shrubbery.net/rancid-2.3.eft5.tar.gz or send the .raw file from % setenv NOPIPE YES % rancid -d rtr.foo.com to me. From owner-rancid-discuss-outgoing@shrubbery.net Tue Dec 16 22:17:32 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id C8DD3C67C6 for ; Tue, 16 Dec 2003 22:17:32 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 4E70617CFD0; Tue, 16 Dec 2003 22:17:32 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 3922717D07E; Tue, 16 Dec 2003 22:17:32 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from z.paranode.com (z.paranode.com [63.249.3.194]) by guelah.shrubbery.net (Postfix) with SMTP id 5F98A17CFD0 for ; Tue, 16 Dec 2003 22:17:31 +0000 (UTC) Received: (qmail 28667 invoked by uid 1000); 16 Dec 2003 22:17:30 -0000 Date: Tue, 16 Dec 2003 14:17:30 -0800 From: Troy Davis To: rancid-discuss@shrubbery.net Subject: Re: Missed cmd(s) on certain devices, no .new file created Message-ID: <20031216221730.GI25767@nack.net> References: <20031216204612.GC22186@nack.net> <20031216205852.GN19611@shrubbery.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031216205852.GN19611@shrubbery.net> X-GPG-Key: http://search.keyserver.net:11371/pks/lookup?op=get&search=0x26674368 User-Agent: Mutt/1.5.4i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Upgrading to 2.3.eft5 did the trick. URL is ftp://ftp.shrubbery.net/outgoing/rancid-2.3.eft5.tar.gz Cheers, Troy From owner-rancid-discuss-outgoing@shrubbery.net Mon Dec 29 14:56:47 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 37A7BC680F for ; Mon, 29 Dec 2003 14:56:47 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 8240B17CFCD; Mon, 29 Dec 2003 14:56:46 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 5F04A17CFCF; Mon, 29 Dec 2003 14:56:46 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from triton.xo.com (plasmlprd03.pla.dc.xo.com [205.158.160.113]) by guelah.shrubbery.net (Postfix) with ESMTP id 3029B17CFCD for ; Mon, 29 Dec 2003 14:56:44 +0000 (UTC) Received: from ilchicsimr001.mail.inthosts.net ([172.19.22.41]) by triton.xo.com (Switch-3.1.3/Switch-3.1.0) with ESMTP id hBTEufXj029452 for ; Mon, 29 Dec 2003 08:56:42 -0600 (CST) Received: from ILCHICVEXC002.mail.inthosts.net ([172.19.22.15]) by ilchicsimr001.mail.inthosts.net with Microsoft SMTPSVC(5.0.2195.5329); Mon, 29 Dec 2003 09:56:34 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6470.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: Server crashed and RANCID somehow restored a two year old version Date: Mon, 29 Dec 2003 09:56:34 -0500 Message-ID: <9A0E9E976A6EBC4299764038209E498305237C6B@ILCHICVEXC002.mail.inthosts.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Server crashed and RANCID somehow restored a two year old version Thread-Index: AcPOG6PoZjUlOKseR3qXvH+ugT7jqQ== From: "Elliott, Andrew" To: X-OriginalArrivalTime: 29 Dec 2003 14:56:34.0810 (UTC) FILETIME=[F3E955A0:01C3CE1B] Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hello, I have been running RANCID for several years on several different networks. I run RANCID on Solaris on an U5. The box crashed last night and when it came back up RANCID somehow restored a copy of the very old (2+ yrs old) configs/directories/etc. I am wondering how to go about getting the configs restored from two days ago? Thanks, -andrew From owner-rancid-discuss-outgoing@shrubbery.net Mon Dec 29 15:42:01 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 4DAE7C67DF for ; Mon, 29 Dec 2003 15:42:01 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id A7C2017CFCF; Mon, 29 Dec 2003 15:42:00 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 887C117D07D; Mon, 29 Dec 2003 15:42:00 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 8447917CFD0; Mon, 29 Dec 2003 15:41:59 +0000 (UTC) Date: Mon, 29 Dec 2003 07:41:59 -0800 From: john heasley To: "Elliott, Andrew" Cc: rancid-discuss@shrubbery.net Subject: Re: Server crashed and RANCID somehow restored a two year old version Message-ID: <20031229154159.GB20456@shrubbery.net> References: <9A0E9E976A6EBC4299764038209E498305237C6B@ILCHICVEXC002.mail.inthosts.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9A0E9E976A6EBC4299764038209E498305237C6B@ILCHICVEXC002.mail.inthosts.net> User-Agent: Mutt/1.4i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Mon, Dec 29, 2003 at 09:56:34AM -0500, Elliott, Andrew: > Hello, > > I have been running RANCID for several years on several different > networks. > > I run RANCID on Solaris on an U5. The box crashed last night and when > it > came back up RANCID somehow restored a copy of the very old (2+ yrs old) > configs/directories/etc. > rancid just uses CVS. The only way it could have restored 2-yr old configs would be if someone restored from tape, a very nasty log-filesystem bug, or possibly (w/o having looked at the cvs source) an incorrect system clock might do it. It could also be that someone has purposely done it. You can check for other revisions (ie: newer than the one you're seeing) with cvs log; eg: cd /usr/local/rancid/groupfoo/configs cvs log router.foo.net | less If the CVS revisions have multiple dots ('.') in them, you've ended-up with a branch some how (again not something rancid does). You can return to the head with: cd /usr/local/rancid cvs update -AdP > I am wondering how to go about getting the configs restored from two > days ago? To get configs from specific times/revs/etc, see the -p, -r, and -D options of cvs checkout. Also see the cvs FAQ noted in the rancid FAQ. From owner-rancid-discuss-outgoing@shrubbery.net Mon Dec 29 15:49:48 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 7C140C6795 for ; Mon, 29 Dec 2003 15:49:48 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 052DF17CFCE; Mon, 29 Dec 2003 15:49:48 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id D4EBA17D0A9; Mon, 29 Dec 2003 15:49:47 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from ran.psg.com (ip166.usw253.dsl-acs2.sea.iinet.com [209.20.253.166]) by guelah.shrubbery.net (Postfix) with ESMTP id D674A17CFCE for ; Mon, 29 Dec 2003 15:49:46 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=ran.psg.com) by ran.psg.com with esmtp (Exim 4.24; FreeBSD) id 1Aaze6-000BY2-D2; Mon, 29 Dec 2003 07:49:30 -0800 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 29 Dec 2003 07:49:29 -0800 To: "Elliott, Andrew" Cc: Subject: Re: Server crashed and RANCID somehow restored a two year old version References: <9A0E9E976A6EBC4299764038209E498305237C6B@ILCHICVEXC002.mail.inthosts.net> Message-Id: Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk > I run RANCID on Solaris on an U5. The box crashed last night and > when it came back up RANCID somehow restored a copy of the very > old (2+ yrs old) configs/directories/etc. not bleedin' likely. on the target system, you forgot to save/force the configs to nvram so that, when it rebooted, it got the last saved config, which was 2+ years old. > I am wondering how to go about getting the configs restored from > two days ago? that depends a lot on the target box's command language, of course. but rancid has the configs in cvs, so just check out the one you want. or, if you like the most recent, you will find it in ../rancid//configs/ and then stick it up the target. randy From owner-rancid-discuss-outgoing@shrubbery.net Mon Dec 29 16:07:39 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 55566C6795 for ; Mon, 29 Dec 2003 16:07:39 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id D271717D0A9; Mon, 29 Dec 2003 16:07:38 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id BAD1A17D30B; Mon, 29 Dec 2003 16:07:38 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id BCA3E17D0AA; Mon, 29 Dec 2003 16:07:37 +0000 (UTC) Date: Mon, 29 Dec 2003 08:07:37 -0800 From: john heasley To: Randy Bush Cc: "Elliott, Andrew" , rancid-discuss@shrubbery.net Subject: Re: Server crashed and RANCID somehow restored a two year old version Message-ID: <20031229160737.GC20456@shrubbery.net> References: <9A0E9E976A6EBC4299764038209E498305237C6B@ILCHICVEXC002.mail.inthosts.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Mon, Dec 29, 2003 at 07:49:29AM -0800, Randy Bush: > that depends a lot on the target box's command language, of course. > but rancid has the configs in cvs, so just check out the one you > want. or, if you like the most recent, you will find it in > > ../rancid//configs/ > > and then stick it up the target. if/when you do this, be sure to replace the '' text in rancid configs with the proper password/etc. From owner-rancid-discuss-outgoing@shrubbery.net Mon Dec 29 16:18:35 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 9573AC6795 for ; Mon, 29 Dec 2003 16:18:35 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 01BB217D30B; Mon, 29 Dec 2003 16:18:35 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id D796317D32E; Mon, 29 Dec 2003 16:18:34 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from triton.xo.com (plasmlprd04.pla.dc.xo.com [205.158.160.114]) by guelah.shrubbery.net (Postfix) with ESMTP id 163A417D30B; Mon, 29 Dec 2003 16:18:33 +0000 (UTC) Received: from ilchicsimr002.mail.inthosts.net ([172.19.22.42]) by triton.xo.com (Switch-3.1.3/Switch-3.1.0) with ESMTP id hBTGIVY5010290; Mon, 29 Dec 2003 10:18:31 -0600 (CST) Received: from ILCHICVEXC002.mail.inthosts.net ([172.19.22.15]) by ilchicsimr002.mail.inthosts.net with Microsoft SMTPSVC(5.0.2195.5329); Mon, 29 Dec 2003 11:18:31 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6470.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Server crashed and RANCID somehow restored a two year old version Date: Mon, 29 Dec 2003 11:18:30 -0500 Message-ID: <9A0E9E976A6EBC4299764038209E498305237C79@ILCHICVEXC002.mail.inthosts.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Server crashed and RANCID somehow restored a two year old version Thread-Index: AcPOIk1GjrKowRuaRnCZc38q0jHFugABKT7g From: "Elliott, Andrew" To: "john heasley" Cc: X-OriginalArrivalTime: 29 Dec 2003 16:18:31.0206 (UTC) FILETIME=[664FD460:01C3CE27] Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk > It could also be that someone has purposely done it. You can=20 > check for > other revisions (ie: newer than the one you're seeing) with=20 > cvs log; eg: >=20 > cd /usr/local/rancid/groupfoo/configs > cvs log router.foo.net | less 10:05am rancid@bosshogg:/routers/Backbone/Cisco/configs> cvs log chr1.nyc-ny | less RCS file: /tftpboot/routers/Backbone/CVS/Cisco/configs/chr1.nyc-ny,v Working file: chr1.nyc-ny head: 1.23 branch: locks: strict access list: symbolic names: keyword substitution: o total revisions: 23; selected revisions: 23 description: ---------------------------- revision 1.23 date: 2003/12/29 06:14:16; author: rancid; state: Exp; lines: +1377 -566 updates ---------------------------- revision 1.22 date: 2002/05/17 05:06:56; author: rancid; state: Exp; lines: +117 -8 updates ---------------------------- From owner-rancid-discuss-outgoing@shrubbery.net Mon Dec 29 16:25:17 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 66E17C6795 for ; Mon, 29 Dec 2003 16:25:17 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id D75FF17D07D; Mon, 29 Dec 2003 16:25:16 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id BC30617D330; Mon, 29 Dec 2003 16:25:16 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id C435217D32E; Mon, 29 Dec 2003 16:25:15 +0000 (UTC) Date: Mon, 29 Dec 2003 08:25:15 -0800 From: john heasley To: "Elliott, Andrew" Cc: rancid-discuss@shrubbery.net Subject: Re: Server crashed and RANCID somehow restored a two year old version Message-ID: <20031229162515.GE20456@shrubbery.net> References: <9A0E9E976A6EBC4299764038209E498305237C79@ILCHICVEXC002.mail.inthosts.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9A0E9E976A6EBC4299764038209E498305237C79@ILCHICVEXC002.mail.inthosts.net> User-Agent: Mutt/1.4i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Mon, Dec 29, 2003 at 11:18:30AM -0500, Elliott, Andrew: > > > It could also be that someone has purposely done it. You can > > check for > > other revisions (ie: newer than the one you're seeing) with > > cvs log; eg: > > > > cd /usr/local/rancid/groupfoo/configs > > cvs log router.foo.net | less > > 10:05am rancid@bosshogg:/routers/Backbone/Cisco/configs> cvs log > chr1.nyc-ny | less > > RCS file: /tftpboot/routers/Backbone/CVS/Cisco/configs/chr1.nyc-ny,v > Working file: chr1.nyc-ny > head: 1.23 > branch: > locks: strict > access list: > symbolic names: > keyword substitution: o > total revisions: 23; selected revisions: 23 > description: > ---------------------------- > revision 1.23 > date: 2003/12/29 06:14:16; author: rancid; state: Exp; lines: +1377 > -566 > updates > ---------------------------- > revision 1.22 > date: 2002/05/17 05:06:56; author: rancid; state: Exp; lines: +117 -8 > updates > ---------------------------- hmm. Given the revs are serial, there are only 23, and the jump in dates; I'd guess that either rancid had trouble committing updates (see the log files) and the errors were ignored, the CVS file was damaged in the crash (check the ",v" RCS file and compare to your backups), or someone mucked with the cvs file. Note: I do not recommend manually mucking with the respository (ie: /tftpboot/routers/backbone/CVS in this case) in any fashion. From owner-rancid-discuss-outgoing@shrubbery.net Mon Dec 29 16:34:32 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id E92DEC6795 for ; Mon, 29 Dec 2003 16:34:31 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 78B4D17D333; Mon, 29 Dec 2003 16:34:31 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 544C617D335; Mon, 29 Dec 2003 16:34:31 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from triton.xo.com (plasmlprd04.pla.dc.xo.com [205.158.160.114]) by guelah.shrubbery.net (Postfix) with ESMTP id 92F1F17D333; Mon, 29 Dec 2003 16:34:29 +0000 (UTC) Received: from ilchicsimr001.mail.inthosts.net ([172.19.22.41]) by triton.xo.com (Switch-3.1.3/Switch-3.1.0) with ESMTP id hBTGYSY5015196; Mon, 29 Dec 2003 10:34:28 -0600 (CST) Received: from ILCHICVEXC002.mail.inthosts.net ([172.19.22.15]) by ilchicsimr001.mail.inthosts.net with Microsoft SMTPSVC(5.0.2195.5329); Mon, 29 Dec 2003 11:34:27 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6470.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Server crashed and RANCID somehow restored a two year old version Date: Mon, 29 Dec 2003 11:34:27 -0500 Message-ID: <9A0E9E976A6EBC4299764038209E498305237C7F@ILCHICVEXC002.mail.inthosts.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Server crashed and RANCID somehow restored a two year old version Thread-Index: AcPOKFimXNu7B9w9TYOByN5iI3GE5wAAGvlQ From: "Elliott, Andrew" To: "john heasley" Cc: X-OriginalArrivalTime: 29 Dec 2003 16:34:27.0970 (UTC) FILETIME=[A0966E20:01C3CE29] Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk > hmm. Given the revs are serial, there are only 23, and the=20 > jump in dates; > I'd guess that either rancid had trouble committing updates=20 > (see the log > files) and the errors were ignored, the CVS file was damaged=20 > in the crash > (check the ",v" RCS file and compare to your backups), or=20 > someone mucked > with the cvs file. This is one of the few routers that are still in existance from March 2002. 99% of the routers in the configs dir are no longer in operation. Also, other than Cisco, we also used to have Bay, Redback, etc, and we no longer even had those Vendors directories anymore... also several of the newer directories are missing (IE: Catalyst, Juniper, Unisphere)... I am starting to think I need to just blow it away and start over since I obviously don't know enough about CVS... all I have ever known about CVS was how to create new entries, delete old ones, and update and commit. Thanks for all the help,=20 -andrew From owner-rancid-discuss-outgoing@shrubbery.net Mon Dec 29 17:15:48 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 83129C6795 for ; Mon, 29 Dec 2003 17:15:48 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 16E4517D32E; Mon, 29 Dec 2003 17:15:48 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id EABAB17D338; Mon, 29 Dec 2003 17:15:47 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from triton.xo.com (plasmlprd03.pla.dc.xo.com [205.158.160.113]) by guelah.shrubbery.net (Postfix) with ESMTP id 62C5117D32E; Mon, 29 Dec 2003 17:15:46 +0000 (UTC) Received: from ilchicsimr002.mail.inthosts.net ([172.19.22.42]) by triton.xo.com (Switch-3.1.3/Switch-3.1.0) with ESMTP id hBTHFjXh018490; Mon, 29 Dec 2003 11:15:45 -0600 (CST) Received: from ILCHICVEXC002.mail.inthosts.net ([172.19.22.15]) by ilchicsimr002.mail.inthosts.net with Microsoft SMTPSVC(5.0.2195.5329); Mon, 29 Dec 2003 12:15:44 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6470.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Server crashed and RANCID somehow restored a two year old version Date: Mon, 29 Dec 2003 12:15:44 -0500 Message-ID: <9A0E9E976A6EBC4299764038209E498305237C94@ILCHICVEXC002.mail.inthosts.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Server crashed and RANCID somehow restored a two year old version Thread-Index: AcPOKFimXNu7B9w9TYOByN5iI3GE5wAAGvlQAAF+bWA= From: "Elliott, Andrew" To: "Elliott, Andrew" , "john heasley" Cc: X-OriginalArrivalTime: 29 Dec 2003 17:15:44.0747 (UTC) FILETIME=[64DC9BB0:01C3CE2F] Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Thanks for all the help. Found the problem to be a corrupt vfstab, so the "real" filesystem wasn't mounted properly on /tftpboot... the old /tftpboot was still showing up in the / filesystem. Sorry for the confusion. -andrew From owner-rancid-discuss-outgoing@shrubbery.net Tue Dec 30 15:48:28 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id EE740C67C8 for ; Tue, 30 Dec 2003 15:48:27 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 4D93A17D07C; Tue, 30 Dec 2003 15:48:27 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 34C4F17D0AA; Tue, 30 Dec 2003 15:48:27 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from ims.hub.nih.gov (nihhubims.hub.nih.gov [128.231.90.111]) by guelah.shrubbery.net (Postfix) with ESMTP id EEBA517D07C for ; Tue, 30 Dec 2003 15:48:25 +0000 (UTC) Received: by ims.hub.nih.gov with Internet Mail Service (5.5.2657.72) id ; Tue, 30 Dec 2003 10:48:24 -0500 Message-ID: <64BC9A2B18FC5843BA0DE93548F745F3236F4C98@nihexchange3.nih.gov> From: "Gee-clough, Aaron (NIH/CIT)" To: "'rancid-discuss@shrubbery.net'" Subject: Cloginvs dollar signs Date: Tue, 30 Dec 2003 10:48:00 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hello, all. I've been working on setting up Rancid, but I've run into a little problem...it looks like a bit of error-checking in the clogin script or in TCL itself is munging my logins, but I'm not sure how to fix it. The scenario: One of the logins I'm supposed to use for rancid has a dollar sign in its password. This is expanded to a variable by TCL, unless I escape it. But, when I try to escape out the dollar sign (ie, putting in \$ instead of just the $ in the password line in cloginrc) the whole password gets braces {} added around it, which makes the password invalid. (but the \$ is replaced with $, so it's close.) If I pre-emptively add braces (or quotes), they don't get removed before being used as a password, once again leading to an invalid password. (but then I don't need to escape out the dollar sign.) I've been testing this by changing the username to be the same as the password in cloginrc, and seeing what username it tries to login in as (since I can't see the password....the login is via ssh). I'd love to just do away with the dollar sign, but I'm not the one who decides the password or username for this account, and this may come up again anyway. Is there a way to properly escape out the dollar sign that I'm missing? I tried googling for this, but I haven't found anything yet...of course, I could be searching for the wrong thing. Thanks for any help. Aaron From owner-rancid-discuss-outgoing@shrubbery.net Tue Dec 30 15:55:13 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id AD1EFC67C8 for ; Tue, 30 Dec 2003 15:55:13 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 34B7817CFD0; Tue, 30 Dec 2003 15:55:13 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 145BE17D30B; Tue, 30 Dec 2003 15:55:13 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 1F88217D0AA; Tue, 30 Dec 2003 15:55:12 +0000 (UTC) Date: Tue, 30 Dec 2003 07:55:11 -0800 From: john heasley To: "Gee-clough, Aaron (NIH/CIT)" Cc: "'rancid-discuss@shrubbery.net'" Subject: Re: Cloginvs dollar signs Message-ID: <20031230155511.GF29302@shrubbery.net> References: <64BC9A2B18FC5843BA0DE93548F745F3236F4C98@nihexchange3.nih.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64BC9A2B18FC5843BA0DE93548F745F3236F4C98@nihexchange3.nih.gov> User-Agent: Mutt/1.4i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Tue, Dec 30, 2003 at 10:48:00AM -0500, Gee-clough, Aaron (NIH/CIT): > Hello, all. > I've been working on setting up Rancid, but I've run into a little > problem...it looks like a bit of error-checking in the clogin script or in > TCL itself is munging my logins, but I'm not sure how to fix it. The > scenario: > One of the logins I'm supposed to use for rancid has a dollar sign > in its password. This is expanded to a variable by TCL, unless I escape it. > But, when I try to escape out the dollar sign (ie, putting in \$ instead of > just the $ in the password line in cloginrc) the whole password gets braces > {} added around it, which makes the password invalid. (but the \$ is > replaced with $, so it's close.) If I pre-emptively add braces (or > quotes), they don't get removed before being used as a password, once again > leading to an invalid password. (but then I don't need to escape out the > dollar sign.) > > I've been testing this by changing the username to be the same as the > password in cloginrc, and seeing what username it tries to login in as > (since I can't see the password....the login is via ssh). > > I'd love to just do away with the dollar sign, but I'm not the one who > decides the password or username for this account, and this may come up > again anyway. Is there a way to properly escape out the dollar sign that > I'm missing? I tried googling for this, but I haven't found anything > yet...of course, I could be searching for the wrong thing. please provide an example of your .cloginrc entry. afaik, what you've tried should have worked. From owner-rancid-discuss-outgoing@shrubbery.net Tue Dec 30 16:13:33 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id CA16DC67C8 for ; Tue, 30 Dec 2003 16:13:32 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 4444917CFCE; Tue, 30 Dec 2003 16:13:32 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 2449C17D0A9; Tue, 30 Dec 2003 16:13:32 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from ims.hub.nih.gov (nihhubims.hub.nih.gov [128.231.90.111]) by guelah.shrubbery.net (Postfix) with ESMTP id 9086C17CFCE; Tue, 30 Dec 2003 16:13:30 +0000 (UTC) Received: by ims.hub.nih.gov with Internet Mail Service (5.5.2657.72) id ; Tue, 30 Dec 2003 11:13:28 -0500 Message-ID: <64BC9A2B18FC5843BA0DE93548F745F3236F4C99@nihexchange3.nih.gov> From: "Gee-clough, Aaron (NIH/CIT)" To: 'john heasley' Cc: "'rancid-discuss@shrubbery.net'" Subject: RE: Cloginvs dollar signs Date: Tue, 30 Dec 2003 11:13:26 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk > please provide an example of your .cloginrc entry. afaik, > what you've tried should have worked. Okay: There's an entry that doesn't change: add method * ssh The others I change... First example, with just the \ escaping: .cloginrc has: add user lab-* te\$tpass add userpassword lab-* te\$tpass clogin to the lab machine gives me: [rancid@lithium rancid] clogin lab-test.nih.gov lab-test.nih.gov spawn ssh -c 3des -x -l {te$tpass} lab-test.nih.gov {te$tpass}@lab-test.nih.gov's password: Permission denied, please try again. Error: Check your passwd for lab-test.nih.gov Second example, with no escaping, but with braces: .cloginrc has: add user lab-* {te$tpass} add userpassword lab-* {te$tpass} Clogin to the lab machine this time gives me: [rancid@lithium rancid] clogin lab-test.nih.gov lab-test.nih.gov spawn ssh -c 3des -x -l {te$tpass} lab-test.nih.gov {te$tpass}@lab-test.nih.gov's password: Permission denied, please try again. Error: Check your passwd for lab-test.nih.gov So, adding braces means I don't have to escape the $, but they stay in for the username. Escaping it also get it removed, but adds braces. Any ideas? Thanks. Aaron From owner-rancid-discuss-outgoing@shrubbery.net Tue Dec 30 16:17:26 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 9B4BAC67C8 for ; Tue, 30 Dec 2003 16:17:26 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 0F9C517D32E; Tue, 30 Dec 2003 16:17:26 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id E570C17D333; Tue, 30 Dec 2003 16:17:25 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from ims2.hub.nih.gov (ims2.hub.nih.gov [128.231.90.112]) by guelah.shrubbery.net (Postfix) with ESMTP id 7124317D32E; Tue, 30 Dec 2003 16:17:24 +0000 (UTC) Received: by ims2.hub.nih.gov with Internet Mail Service (5.5.2657.72) id ; Tue, 30 Dec 2003 11:17:06 -0500 Message-ID: <64BC9A2B18FC5843BA0DE93548F745F3236F4C9A@nihexchange3.nih.gov> From: "Gee-clough, Aaron (NIH/CIT)" To: 'john heasley' Cc: "'rancid-discuss@shrubbery.net'" Subject: RE: Cloginvs dollar signs Date: Tue, 30 Dec 2003 11:16:55 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk > please provide an example of your .cloginrc entry. afaik, > what you've tried should have worked. By the way, I'm using Rancid 2.2.2, Expect 5.39 and TCL 8.4.5 if that makes a difference. Thanks. Aaron From owner-rancid-discuss-outgoing@shrubbery.net Tue Dec 30 17:49:49 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id B7908C67C8 for ; Tue, 30 Dec 2003 17:49:49 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id F2E8B17CFCF; Tue, 30 Dec 2003 17:49:49 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id D8CBF17D335; Tue, 30 Dec 2003 17:49:48 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from tower.partan.com (tower.partan.com [198.6.255.248]) by guelah.shrubbery.net (Postfix) with ESMTP id 2139417CFCF for ; Tue, 30 Dec 2003 17:49:47 +0000 (UTC) Received: from tower.partan.com (localhost.partan.com [127.0.0.1]) by tower.partan.com (8.12.8p2/8.12.8) with ESMTP id hBUHnjnN093226; Tue, 30 Dec 2003 12:49:45 -0500 (EST) (envelope-from asp@tower.partan.com) Received: (from asp@localhost) by tower.partan.com (8.12.8p2/8.12.8/Submit) id hBUHnjPq093223; Tue, 30 Dec 2003 12:49:45 -0500 (EST) (envelope-from asp) Date: Tue, 30 Dec 2003 12:49:44 -0500 From: Andrew Partan To: "Gee-clough, Aaron (NIH/CIT)" Cc: rancid-discuss@shrubbery.net Subject: Re: Cloginvs dollar signs Message-ID: <20031230174944.GB89500@partan.com> References: <64BC9A2B18FC5843BA0DE93548F745F3236F4C99@nihexchange3.nih.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64BC9A2B18FC5843BA0DE93548F745F3236F4C99@nihexchange3.nih.gov> User-Agent: Mutt/1.4.1i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On Tue, Dec 30, 2003 at 11:13:26AM -0500, Gee-clough, Aaron (NIH/CIT) wrote: > First example, with just the \ escaping: > add user lab-* te\$tpass > spawn ssh -c 3des -x -l {te$tpass} lab-test.nih.gov > Second example, with no escaping, but with braces: > add user lab-* {te$tpass} > spawn ssh -c 3des -x -l {te$tpass} lab-test.nih.gov That is very odd - even w/o the {} in the 1st example, expect is adding the {} anyhow. I tried changing the 'spawn ssh' in clogin from: if [ catch {spawn ssh -c $cyphertype -x -l $user $router} reason ] { to: if [ catch {spawn ssh -c $cyphertype -x -l "$user" $router} reason ] { but that didn't make any difference. Grr, I don't like expect. --asp From owner-rancid-discuss-outgoing@shrubbery.net Tue Dec 30 18:00:46 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id BC4FEC67C8 for ; Tue, 30 Dec 2003 18:00:45 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 2460A17D0AA; Tue, 30 Dec 2003 18:00:45 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 075E917D338; Tue, 30 Dec 2003 18:00:44 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id EF23017D335; Tue, 30 Dec 2003 18:00:43 +0000 (UTC) Date: Tue, 30 Dec 2003 10:00:43 -0800 From: john heasley To: Andrew Partan Cc: "Gee-clough, Aaron (NIH/CIT)" , rancid-discuss@shrubbery.net Subject: Re: Cloginvs dollar signs Message-ID: <20031230180043.GK29302@shrubbery.net> References: <64BC9A2B18FC5843BA0DE93548F745F3236F4C99@nihexchange3.nih.gov> <20031230174944.GB89500@partan.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031230174944.GB89500@partan.com> User-Agent: Mutt/1.4i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Tue, Dec 30, 2003 at 12:49:44PM -0500, Andrew Partan: > On Tue, Dec 30, 2003 at 11:13:26AM -0500, Gee-clough, Aaron (NIH/CIT) wrote: > > First example, with just the \ escaping: > > add user lab-* te\$tpass > > spawn ssh -c 3des -x -l {te$tpass} lab-test.nih.gov > > > Second example, with no escaping, but with braces: > > add user lab-* {te$tpass} > > spawn ssh -c 3des -x -l {te$tpass} lab-test.nih.gov > > That is very odd - even w/o the {} in the 1st example, expect is > adding the {} anyhow. it appears to be added/preserved by tcl in the add procedure. I've tried many incantations.... It ignores the escape and adds the braces to delay the expansion of what it thinks is a variable? > I tried changing the 'spawn ssh' in clogin from: > if [ catch {spawn ssh -c $cyphertype -x -l $user $router} reason ] { > to: > if [ catch {spawn ssh -c $cyphertype -x -l "$user" $router} reason ] { > but that didn't make any difference. > > Grr, I don't like expect. double that for me. From owner-rancid-discuss-outgoing@shrubbery.net Tue Dec 30 18:23:50 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 46DD0C67C8 for ; Tue, 30 Dec 2003 18:23:50 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id B8FBB17D338; Tue, 30 Dec 2003 18:23:49 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 9441717D33D; Tue, 30 Dec 2003 18:23:49 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from server.nipper.de (relay.nipper.de [212.86.210.19]) by guelah.shrubbery.net (Postfix) with ESMTP id 0985417D338 for ; Tue, 30 Dec 2003 18:23:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by server.nipper.de (Postfix on SuSE Linux 7.3 (i386)) with ESMTP id 9321621A80 for ; Tue, 30 Dec 2003 19:23:45 +0100 (CET) Received: from server.nipper.de ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29875-10 for ; Tue, 30 Dec 2003 19:23:42 +0100 (CET) Received: from cr8sher (pc109.nipper.de [192.168.144.109]) by server.nipper.de (Postfix on SuSE Linux 7.3 (i386)) with SMTP id 915D54EB2 for ; Tue, 30 Dec 2003 19:23:41 +0100 (CET) Message-ID: <004b01c3cf02$0d514520$6d90a8c0@nipper.de> From: "Nipper, Arnold" To: Subject: diffs are "looping" Date: Tue, 30 Dec 2003 19:23:41 +0100 Organization: nIPper consulting MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at nipper.de Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Since a couple of days output of do-diffs for one switch (catalyst 3550, = (C3550-I9Q3L2-M), Version 12.1(12c)EA1) is "looping". That means = evertime do-diffs is ran, I get exactly the same diff, which is like Index: configs/sw101.de-cix.net =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D retrieving revision 1.21 diff -u -4 -r1.21 sw101.de-cix.net @@ -22,26 +22,21 @@ !Variable: NVRAM/Config file !Variable: buffer size: 393216 ! !Flash: Directory of flash:/ - !Flash: 2 -rwx 7751 Dec 12 2003 13:55:35 config.text + !Flash: 2 -rwx 7770 Dec 20 2003 14:09:41 config.text !Flash: 4 -rwx 16 Mar 01 1993 00:00:34 env_vars Anyone seen this before? My first guess was that some file permissions = were odd but everything looks fine. Looking at the archive didn't show anything what could fit. Thanks, Arnold From owner-rancid-discuss-outgoing@shrubbery.net Tue Dec 30 18:31:23 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id CA65BC67C8 for ; Tue, 30 Dec 2003 18:31:22 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 3B54117D33D; Tue, 30 Dec 2003 18:31:22 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 1C73817D33F; Tue, 30 Dec 2003 18:31:22 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 20AE617D33E; Tue, 30 Dec 2003 18:31:21 +0000 (UTC) Date: Tue, 30 Dec 2003 10:31:21 -0800 From: john heasley To: "Nipper, Arnold" Cc: rancid-discuss@shrubbery.net Subject: Re: diffs are "looping" Message-ID: <20031230183120.GL29302@shrubbery.net> References: <004b01c3cf02$0d514520$6d90a8c0@nipper.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004b01c3cf02$0d514520$6d90a8c0@nipper.de> User-Agent: Mutt/1.4i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk It is most likely that someone mucked with the CVS tree. check the log files for cvs errors/notices and 'cvs status configs/sw101.de-cix.net' should the "up-to-date" (or whatever the string is). If it is not up-to-date, rm the file and cvs update. Tue, Dec 30, 2003 at 07:23:41PM +0100, Nipper, Arnold: > Since a couple of days output of do-diffs for one switch (catalyst 3550, (C3550-I9Q3L2-M), Version 12.1(12c)EA1) is "looping". That means evertime do-diffs is ran, I get exactly the same diff, which is like > > Index: configs/sw101.de-cix.net > =================================================================== > retrieving revision 1.21 > diff -u -4 -r1.21 sw101.de-cix.net > @@ -22,26 +22,21 @@ > !Variable: NVRAM/Config file > !Variable: buffer size: 393216 > ! > !Flash: Directory of flash:/ > - !Flash: 2 -rwx 7751 Dec 12 2003 13:55:35 config.text > + !Flash: 2 -rwx 7770 Dec 20 2003 14:09:41 config.text > !Flash: 4 -rwx 16 Mar 01 1993 00:00:34 env_vars > > > Anyone seen this before? My first guess was that some file permissions were odd but everything looks fine. > > Looking at the archive didn't show anything what could fit. > > > Thanks, Arnold From owner-rancid-discuss-outgoing@shrubbery.net Tue Dec 30 19:13:33 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 516FBC67C8 for ; Tue, 30 Dec 2003 19:13:33 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id CC45B17D33E; Tue, 30 Dec 2003 19:13:32 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id A848C17D341; Tue, 30 Dec 2003 19:13:32 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from server.nipper.de (relay.nipper.de [212.86.210.19]) by guelah.shrubbery.net (Postfix) with ESMTP id A4C2C17D33E; Tue, 30 Dec 2003 19:13:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by server.nipper.de (Postfix on SuSE Linux 7.3 (i386)) with ESMTP id 1626021B35; Tue, 30 Dec 2003 20:13:29 +0100 (CET) Received: from server.nipper.de ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30344-08; Tue, 30 Dec 2003 20:13:27 +0100 (CET) Received: from nipper.de (pc103.nipper.de [192.168.144.103]) by server.nipper.de (Postfix on SuSE Linux 7.3 (i386)) with ESMTP id 8A5033FDE; Tue, 30 Dec 2003 20:13:27 +0100 (CET) Message-ID: <3FF1CE52.9090108@nipper.de> Date: Tue, 30 Dec 2003 20:13:22 +0100 From: Arnold Nipper Organization: nIPper consulting User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031208 X-Accept-Language: de, en-us, en MIME-Version: 1.0 To: john heasley Cc: rancid-discuss@shrubbery.net Subject: Re: diffs are "looping" References: <004b01c3cf02$0d514520$6d90a8c0@nipper.de> <20031230183120.GL29302@shrubbery.net> In-Reply-To: <20031230183120.GL29302@shrubbery.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at nipper.de Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk john heasley wrote, On 30.12.2003 19:31: > It is most likely that someone mucked with the CVS tree. check the > log files for cvs errors/notices and 'cvs status > configs/sw101.de-cix.net' should the "up-to-date" (or whatever the > string is). > > If it is not up-to-date, rm the file and cvs update. > That was it! Thanks and a peace- and sucessfull 2004 for everyone, Arnold From owner-rancid-discuss-outgoing@shrubbery.net Tue Dec 30 19:21:51 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 9F8B0C67C8 for ; Tue, 30 Dec 2003 19:21:51 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 3866217D341; Tue, 30 Dec 2003 19:21:51 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 181AF17D343; Tue, 30 Dec 2003 19:21:51 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from mail.padfoot.com (mail.PADFOOT.COM [198.137.194.43]) by guelah.shrubbery.net (Postfix) with ESMTP id 8B33017D341; Tue, 30 Dec 2003 19:21:49 +0000 (UTC) Received: by mail.padfoot.com (Postfix, from userid 102) id 8902F4F7F6; Tue, 30 Dec 2003 14:21:33 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16369.53309.115216.249477@durmstrang.padfoot.com> Date: Tue, 30 Dec 2003 14:21:33 -0500 From: Henry Kilmer To: john heasley Cc: Andrew Partan , "Gee-clough, Aaron (NIH/CIT)" , rancid-discuss@shrubbery.net Subject: Re: Cloginvs dollar signs In-Reply-To: <20031230180043.GK29302@shrubbery.net> References: <64BC9A2B18FC5843BA0DE93548F745F3236F4C99@nihexchange3.nih.gov> <20031230174944.GB89500@partan.com> <20031230180043.GK29302@shrubbery.net> X-Mailer: VM 7.14 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk john heasley writes: >it appears to be added/preserved by tcl in the add procedure. I've >tried many incantations.... It ignores the escape and adds the braces >to delay the expansion of what it thinks is a variable? It would be doing that for the passwords too though (and everything else). Doesn't make sense. I can't reproduce this here and I have the same version of expect/tcl that is being used for this error. Can anyone else reproduce it? >double that for me. Heh. The pain expect has caused....my my. -Hank From owner-rancid-discuss-outgoing@shrubbery.net Wed Dec 31 00:41:37 2003 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 99A79C67D3 for ; Wed, 31 Dec 2003 00:41:37 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id CDFE417CFCF; Wed, 31 Dec 2003 00:41:36 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id B208217D07C; Wed, 31 Dec 2003 00:41:36 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from tower.partan.com (tower.partan.com [198.6.255.248]) by guelah.shrubbery.net (Postfix) with ESMTP id 642DB17CFCF for ; Wed, 31 Dec 2003 00:41:35 +0000 (UTC) Received: from tower.partan.com (localhost.partan.com [127.0.0.1]) by tower.partan.com (8.12.8p2/8.12.8) with ESMTP id hBV0f8nN020714; Tue, 30 Dec 2003 19:41:08 -0500 (EST) (envelope-from asp@tower.partan.com) Received: (from asp@localhost) by tower.partan.com (8.12.8p2/8.12.8/Submit) id hBV0f40Q020711; Tue, 30 Dec 2003 19:41:04 -0500 (EST) (envelope-from asp) Date: Tue, 30 Dec 2003 19:41:04 -0500 From: Andrew Partan To: Henry Kilmer Cc: "Gee-clough, Aaron (NIH/CIT)" , rancid-discuss@shrubbery.net Subject: Re: Cloginvs dollar signs Message-ID: <20031231004104.GB20569@partan.com> References: <64BC9A2B18FC5843BA0DE93548F745F3236F4C99@nihexchange3.nih.gov> <20031230174944.GB89500@partan.com> <20031230180043.GK29302@shrubbery.net> <16369.53309.115216.249477@durmstrang.padfoot.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16369.53309.115216.249477@durmstrang.padfoot.com> User-Agent: Mutt/1.4.1i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On Tue, Dec 30, 2003 at 02:21:33PM -0500, Henry Kilmer wrote: > It would be doing that for the passwords too though (and everything > else). Doesn't make sense. I don't know if there is a difference between variables passed to spawn and variables send out in response to a Password: prompt. --asp