From mark.duling at biola.edu Wed May 14 21:59:49 2003 From: mark.duling at biola.edu (Mark Duling) Date: Wed, 14 May 2003 14:59:49 -0700 Subject: RANCID on OS X Message-ID: 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 heas at shrubbery.net Thu May 15 03:03:54 2003 From: heas at shrubbery.net (john heasley) Date: Thu, 15 May 2003 03:03:54 +0000 Subject: RANCID on OS X References: Message-ID: <20030515030354.GE9788@shrubbery.net> 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 at garibaldi0.com Thu May 15 04:06:18 2003 From: mike at garibaldi0.com (Mike Ethridge) Date: Wed, 14 May 2003 21:06:18 -0700 Subject: clogin to reverse telnet on console Message-ID: <5.2.1.1.0.20030514210132.00a86670@mail.garibaldi0.com> 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 heas at shrubbery.net Fri May 16 18:24:22 2003 From: heas at shrubbery.net (john heasley) Date: Fri, 16 May 2003 11:24:22 -0700 Subject: clogin to reverse telnet on console References: <5.2.1.1.0.20030514210132.00a86670@mail.garibaldi0.com> Message-ID: <20030516182422.GO18687@shrubbery.net> 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? From mike at garibaldi0.com Fri May 16 19:50:16 2003 From: mike at garibaldi0.com (Mike Ethridge) Date: Fri, 16 May 2003 12:50:16 -0700 Subject: clogin to reverse telnet on console 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> Message-ID: 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 nicolas.strina at smart-telecom.ch Tue May 27 13:17:42 2003 From: nicolas.strina at smart-telecom.ch (Strina Nicolas) Date: Tue, 27 May 2003 15:17:42 +0200 Subject: Problems ... Message-ID: 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 at smart-telecom.ch http://www.vtx.ch ---------------------------------------- From heas at shrubbery.net Tue May 27 14:59:10 2003 From: heas at shrubbery.net (john heasley) Date: Tue, 27 May 2003 07:59:10 -0700 Subject: Problems ... In-Reply-To: References: Message-ID: <20030527145910.GF11826@shrubbery.net> 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 georg.naggies at rizit.at Fri May 30 06:34:41 2003 From: georg.naggies at rizit.at (georg.naggies at rizit.at) Date: Fri, 30 May 2003 08:34:41 +0200 Subject: how to make rancid ignore password string changes Message-ID: 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 at rizit.at http://www.rizit.at From heas at shrubbery.net Fri May 30 16:01:56 2003 From: heas at shrubbery.net (john heasley) Date: Fri, 30 May 2003 09:01:56 -0700 Subject: how to make rancid ignore password string changes In-Reply-To: References: Message-ID: <20030530160156.GH2355@shrubbery.net> Fri, May 30, 2003 at 08:34:41AM +0200, georg.naggies at 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;}'