From: Mark Duling To: rancid-discuss@shrubbery.net Subject: RANCID on OS X Message-Id: Date: Wed, 14 May 2003 14:59:49 -0700 I am attempting to get RANCID on OS X 10.2 (Darwin). My knowledge of UNIX is not deep so bear with me. I have Tcl and Expect (5.38) installed and working. With one minor mod I got RANCID 2.2.2 compiled and installed with no errors. When I run clogin I get syntax errors I started to fix them by replacing occurrences like $env(HOME) with ${env::HOME} But after several replacing several of these and getting farther through the file I suddenly get the following. ./clogin: line 58: syntax error near unexpected token `}' ./clogin: line 58: `} elseif {[ info exists {env::USER} ] {' I don't know why because what I was doing shouldn't affect the surrounding parentheses and didn't until a certain point. Can RANCID run on OS X and if so can anyone tell me where to go from here? Thank you. Mark From: john heasley To: Mark Duling Cc: rancid-discuss@shrubbery.net Subject: Re: RANCID on OS X Date: Thu, 15 May 2003 03:03:54 +0000 Message-ID: <20030515030354.GE9788@shrubbery.net> References: Wed, May 14, 2003 at 02:59:49PM -0700, Mark Duling: > I am attempting to get RANCID on OS X 10.2 (Darwin). My knowledge of > UNIX is not deep so bear with me. > > I have Tcl and Expect (5.38) installed and working. > With one minor mod I got RANCID 2.2.2 compiled and installed with no errors. > When I run clogin I get syntax errors > I started to fix them by replacing occurrences like $env(HOME) with > ${env::HOME} > > But after several replacing several of these and getting farther > through the file I suddenly get the following. > > ./clogin: line 58: syntax error near unexpected token `}' > ./clogin: line 58: `} elseif {[ info exists {env::USER} ] {' i am not familiar with the :: syntax in tcl, but i'm using expect 5.3 (which is married to tcl 8.3). object-oriented infection? env(name) is (supposed to be) a simple array variable. the 8.4 manual says: On the Macintosh, the environment variable is constructed by Tcl as no global environment variable exists. The environment variables that are created for Tcl include: i wonder if there is some weirdness there. > I don't know why because what I was doing shouldn't affect the > surrounding parentheses and didn't until a certain point. Can RANCID > run on OS X and if so can anyone tell me where to go from here? > Thank you. > > Mark From: Mike Ethridge To: rancid-discuss@shrubbery.net Subject: clogin to reverse telnet on console Message-Id: <5.2.1.1.0.20030514210132.00a86670@mail.garibaldi0.com> Date: Wed, 14 May 2003 21:06:18 -0700 Greetings all. I have a cisco 3640 with three NM-32A's acting as a terminal server for several other routers and switches. One in particular is my external Internet router. Now I'm trying to add the Internet router to rancid, but since I can't telnet net to it, I can only access it's console via reverse telnet to the terminal server, it's been very difficult. What is happening is when you telnet to the terminal server, you have to press enter at least once before you get the console login prompt from the Internet router. So, clogin doesn't get the typical telnet login prompt so it times out. Any suggestions on how to get this working? --ME From: john heasley To: Mike Ethridge Cc: rancid-discuss@shrubbery.net Subject: Re: clogin to reverse telnet on console Date: Fri, 16 May 2003 11:24:22 -0700 Message-ID: <20030516182422.GO18687@shrubbery.net> References: <5.2.1.1.0.20030514210132.00a86670@mail.garibaldi0.com> Wed, May 14, 2003 at 09:06:18PM -0700, Mike Ethridge: > Greetings all. I have a cisco 3640 with three NM-32A's acting as a > terminal server for several other routers and switches. One in particular > is my external Internet router. Now I'm trying to add the Internet router > to rancid, but since I can't telnet net to it, I can only access it's > console via reverse telnet to the terminal server, it's been very difficult. > > What is happening is when you telnet to the terminal server, you have to > press enter at least once before you get the console login prompt from the > Internet router. So, clogin doesn't get the typical telnet login prompt so > it times out. > > Any suggestions on how to get this working? > > --ME thought about this for a while. clogin could be changed to permit a pre-login-sequence command via the .cloginrc, eg: "\r". i can see this being useful for a few platforms. but, is it possible to define a chat-script that sends \r when the async line is opened or connected? To: john heasley From: Mike Ethridge Subject: Re: clogin to reverse telnet on console Cc: rancid-discuss@shrubbery.net Date: Fri, 16 May 2003 12:50:16 -0700 In-Reply-To: <20030516182422.GO18687@shrubbery.net> References: <5.2.1.1.0.20030514210132.00a86670@mail.garibaldi0.com> <5.2.1.1.0.20030514210132.00a86670@mail.garibaldi0.com> At 11:24 AM 5/16/2003 -0700, john heasley wrote: >Wed, May 14, 2003 at 09:06:18PM -0700, Mike Ethridge: > > Greetings all. I have a cisco 3640 with three NM-32A's acting as a > > terminal server for several other routers and switches. One in particular > > is my external Internet router. Now I'm trying to add the Internet router > > to rancid, but since I can't telnet net to it, I can only access it's > > console via reverse telnet to the terminal server, it's been very > difficult. > > > > What is happening is when you telnet to the terminal server, you have to > > press enter at least once before you get the console login prompt from the > > Internet router. So, clogin doesn't get the typical telnet login > prompt so > > it times out. > > > > Any suggestions on how to get this working? > > > > --ME > >thought about this for a while. clogin could be changed to permit a >pre-login-sequence command via the .cloginrc, eg: "\r". i can see >this being useful for a few platforms. > >but, is it possible to define a chat-script that sends \r when the >async line is opened or connected? John, You and I are on the same thought path here. I tried all the various combinations of chat-scripts and they are all designed to work with a modem or something sending the data to the serial port not from it once a connection has been received. So, it looks like adding the "\r" will probably be the answer. However, if there is anyone out there that has more info on the chat-scripts, they might know of a way to do this. I just couldn't figure it out. --ME From owner-rancid-discuss-outgoing@shrubbery.net Tue May 27 13:18:09 2003 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id h4RDI9x16934 for ; Tue, 27 May 2003 13:18:09 GMT Received: by guelah.shrubbery.net (Postfix) id 6F6CA17D015; Tue, 27 May 2003 13:18:08 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: from smtp.vtx.ch (smtp.vtx.ch [212.147.0.55]) by guelah.shrubbery.net (Postfix) with ESMTP id A46E617D013 for ; Tue, 27 May 2003 13:18:06 +0000 (UTC) Received: from DEADMANWALKING (onyx.vtx.ch [212.147.0.95]) by smtp.vtx.ch (VTX Services) with SMTP id 3AF07FCAF for ; Tue, 27 May 2003 15:17:48 +0200 (CEST) From: "Strina Nicolas" To: Subject: Problems ... Date: Tue, 27 May 2003 15:17:42 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Hello, I am using Rancid since long time and just since 1 week i have a problem with it. It's sending all the time the same email for only some routers and i have this in my logs: cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs cvs commit: Up-to-date check failed for `configs/br00.cix.gva.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/br00.tix.zur.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/cr00.cix.gva.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/cr00.wtc.lsn.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ghi.customer.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.air.gva.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.arc.neu.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.bcs.lsm.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.ber.gva.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.boi.lsn.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.bor.mon.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.cbc.lcd.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.cvc.lso.e0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.dix.loc.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.gsx.gva.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.ico.bas.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.idi.lcd.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.inp.por.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.lon.gva.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.mon.gva.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.ome.mar.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.pra.gva.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.rbo.lsn.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.sal.lsn.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.sis.bie.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.sis.del.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.sis.loc.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.tek.zur.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.tix.zur.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.unk.bie.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.unk.mor.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.unk.mty.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.unk.nyo.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.unk.sio.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir00.unk.yve.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir01.air.gva.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir01.cbc.lcd.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir01.mon.gva.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir01.ome.mar.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir01.sis.del.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir01.unk.nyo.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/ir01.unk.sio.lb0.ch.vtxnet.net' cvs commit: Up-to-date check failed for `configs/lcite.customer.vtxnet.net' cvs commit: Up-to-date check failed for `configs/secheron.customer.vtxnet.net' cvs commit: Up-to-date check failed for `configs/valtronic.customer.vtxnet.net' cvs [commit aborted]: correct above errors first! Thanks for help. Nicolas ---------------------------------------- STRINA Nicolas IP Network Engineer VTX Services - Internet Service Provider Av. de Lavaux, 101 CH-1009 Pully nicolas.strina@smart-telecom.ch http://www.vtx.ch ---------------------------------------- From owner-rancid-discuss-outgoing@shrubbery.net Tue May 27 14:59:11 2003 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id h4RExBx02366 for ; Tue, 27 May 2003 14:59:11 GMT Received: by guelah.shrubbery.net (Postfix) id B11E717D013; Tue, 27 May 2003 14:59:10 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 6AD4317D015; Tue, 27 May 2003 14:59:10 +0000 (UTC) Date: Tue, 27 May 2003 07:59:10 -0700 From: john heasley To: Strina Nicolas Cc: rancid-discuss-outgoing@shrubbery.net Subject: Re: Problems ... Message-ID: <20030527145910.GF11826@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 Tue, May 27, 2003 at 03:17:42PM +0200, Strina Nicolas: > Hello, > > I am using Rancid since long time and just since 1 week i have a problem with it. It's sending all the time the same email for only > some routers and i have this in my logs: this is answered in the 3rd question of CVS section of the FAQ. http://www.shrubbery.net/rancid/FAQ From owner-rancid-discuss-outgoing@shrubbery.net Fri May 30 06:35:45 2003 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id h4U6Zjx17055 for ; Fri, 30 May 2003 06:35:45 GMT Received: by guelah.shrubbery.net (Postfix) id 6577117D018; Fri, 30 May 2003 06:35:44 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 4A0D517D020; Fri, 30 May 2003 06:35:44 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from postfix.raiffeisen.at (postfix.raiffeisen.at [193.110.28.53]) by guelah.shrubbery.net (Postfix) with ESMTP id 4FDDF17D018 for ; Fri, 30 May 2003 06:35:42 +0000 (UTC) Received: from mx01.mdcs.at ([10.14.33.76]) by postfix.raiffeisen.at (8.12.8/8.12.8) with ESMTP id h4U6ZcET015959 for ; Fri, 30 May 2003 08:35:39 +0200 (MET DST) Subject: how to make rancid ignore password string changes Message-ID: From: georg.naggies@rizit.at Date: Fri, 30 May 2003 08:34:41 +0200 To: rancid-discuss@shrubbery.net Cc: X-Priority: 3 (Normal) MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hello! I'm quite new to Rancid and love it of course, because for example CiscoWorks just can't compare in speed and reliability. Now I would like to tweak it to its best. Therefore one question, ... how to make rancid ignore password string changes? For example the "ntp authentication-key" changes all the time, and this makes cvs create a new version all the time. I would still like to have the passwords in the archive. (FILTER_PWDS=NO; export FILTER_PWDS) Thanks for hints, Mag. Georg Naggies Raiffeisen Informatik Zentrum GmbH NOC A-1020 Wien, Lilienbrunngasse 7-9, Zimmer 06F Tel: +43-(1)-99398 - 9354 Fax: +43-(1)-99398 - 5501 georg.naggies@rizit.at http://www.rizit.at From owner-rancid-discuss-outgoing@shrubbery.net Fri May 30 16:01:58 2003 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id h4UG1wx12829 for ; Fri, 30 May 2003 16:01:58 GMT Received: by guelah.shrubbery.net (Postfix) id B0FBC17D020; Fri, 30 May 2003 16:01:57 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 9B98717D022; Fri, 30 May 2003 16:01:57 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 8DCA017D021; Fri, 30 May 2003 16:01:56 +0000 (UTC) Date: Fri, 30 May 2003 09:01:56 -0700 From: john heasley To: georg.naggies@rizit.at Cc: rancid-discuss@shrubbery.net Subject: Re: how to make rancid ignore password string changes Message-ID: <20030530160156.GH2355@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, May 30, 2003 at 08:34:41AM +0200, georg.naggies@rizit.at: > Hello! > > I'm quite new to Rancid and love it of course, because for example > CiscoWorks just can't compare in speed and reliability. > > Now I would like to tweak it to its best. > > Therefore one question, ... how to make rancid ignore password string > changes? > > For example the "ntp authentication-key" changes all the time, and this > makes cvs create a new version all the time. I would still like to have the > passwords in the archive. (FILTER_PWDS=NO; export FILTER_PWDS) well, this would require post-cvs diff filtering. one could 1) run a second instance of rancid or the particular group 2) use a filter as the destination of the diff email which filtered things in which you were not interested 3) let users filter what they want via procmail (preferred). eg: someone balked about nvram diffs. .... # /dev/null rancid msgs with no diffs other than nvram: :0 HWi b * Subject: router config diffs$ | awk 'BEGIN{n=0;}{if(/...Flash: nvram:/)next; if(/^[-+]/){n++;}next;}END{exit n;}'