From owner-rancid-discuss-outgoing@shrubbery.net Tue Feb 3 06:41:08 2004 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 E7EA5C6967 for ; Tue, 3 Feb 2004 06:41:08 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id F394317CFC3; Tue, 3 Feb 2004 06:41:08 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id D942617CFC8; Tue, 3 Feb 2004 06:41:07 +0000 (UTC) X-Original-To: rancid-discuss Received: by guelah.shrubbery.net (Postfix, from userid 7053) id DE03A17CFC4; Tue, 3 Feb 2004 06:41:06 +0000 (UTC) Date: Mon, 2 Feb 2004 22:41:06 -0800 From: john heasley To: rancid-discuss@shrubbery.net Subject: rancid 2.3 rc1 Message-ID: <20040203064106.GK10813@shrubbery.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 A number of folks have downloaded ranicd 2.3.rc1 since it was made available. We'd appreciate any feedback folks have to offer - most intested any negative comments. :) We have about 4 to-do items left before the final cut. Thanks! From owner-rancid-discuss-outgoing@shrubbery.net Wed Feb 11 05:13:51 2004 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 E28EBC6787 for ; Wed, 11 Feb 2004 05:13:51 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 2E2CE17CFA8; Wed, 11 Feb 2004 05:13:51 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 0F81A17CFC8; Wed, 11 Feb 2004 05:13:51 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from spruce.grow.net (mail.grow.net [209.208.163.197]) by guelah.shrubbery.net (Postfix) with ESMTP id D259217CFA8 for ; Wed, 11 Feb 2004 05:13:49 +0000 (UTC) X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Ssh, Aironet Date: Wed, 11 Feb 2004 00:14:53 -0500 Message-ID: <417F5E81F35DDB4CA208F5B00AFA8FE6CB142D@spruce.grow.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Ssh, Aironet Thread-Index: AcPwXfsHZQvrqwe0RACfoHqR1Alv0w== From: "Kwan, William" To: Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hi all, I am testing Rancid. It works fine with testing switches with telnet. I have a couple Aironet Access points that are set to use ssh only. The user account is also customized. I have this in .cloginrc add autoenable 10.0.0.222 add user 10.0.0.222 {fakeuser} add userpassword 10.0.0.222 {fakepass} add method 10.0.0.222 {ssh} add password 10.0.0.222 {} {fakepass} This looks wrong, but it works. I issued: /usr/local/rancid/bin/clogin -c 'show ver' 10.0.0.222 Rancid was able to login with the username and password. But it just stopped at the prompt after login. Any suggestion? William From owner-rancid-discuss-outgoing@shrubbery.net Wed Feb 11 16:04:01 2004 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 49CBDC695E for ; Wed, 11 Feb 2004 16:04:01 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id C4F7617CFA8; Wed, 11 Feb 2004 16:03:57 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id AE3AF17CFC8; Wed, 11 Feb 2004 16:03:57 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id B6FD517CFC3; Wed, 11 Feb 2004 16:03:56 +0000 (UTC) Date: Wed, 11 Feb 2004 08:03:56 -0800 From: john heasley To: "Kwan, William" Cc: rancid-discuss@shrubbery.net Subject: Re: Ssh, Aironet Message-ID: <20040211160356.GC2264@shrubbery.net> References: <417F5E81F35DDB4CA208F5B00AFA8FE6CB142D@spruce.grow.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <417F5E81F35DDB4CA208F5B00AFA8FE6CB142D@spruce.grow.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 Wed, Feb 11, 2004 at 12:14:53AM -0500, Kwan, William: > > Hi all, > > I am testing Rancid. It works fine with testing switches with > telnet. I have a couple Aironet Access points that are set to use ssh > only. The user account is also customized. > > I have this in .cloginrc > > add autoenable 10.0.0.222 autoenable, and all other .cloginrc directives, require a value. add autoenable 10.0.0.222 {1} > add user 10.0.0.222 {fakeuser} > add userpassword 10.0.0.222 {fakepass} > add method 10.0.0.222 {ssh} > add password 10.0.0.222 {} {fakepass} > > This looks wrong, but it works. I issued: > /usr/local/rancid/bin/clogin -c 'show ver' 10.0.0.222 > > Rancid was able to login with the username and password. But it just > stopped at the prompt after login. > > Any suggestion? > > William From owner-rancid-discuss-outgoing@shrubbery.net Tue Feb 17 04:10:09 2004 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 D23BBC6985 for ; Tue, 17 Feb 2004 04:10:08 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 0E4AC17D05A; Tue, 17 Feb 2004 04:10:08 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id EE56917D07D; Tue, 17 Feb 2004 04:10:07 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id F33BB17D07C; Tue, 17 Feb 2004 04:10:06 +0000 (UTC) Date: Mon, 16 Feb 2004 20:10:06 -0800 From: john heasley To: Eric Van Tol Cc: rancid-discuss@shrubbery.net Subject: Re: Problems running do-diffs on Foundry Message-ID: <20040217041006.GG27966@shrubbery.net> References: <4CBD2D346320D541AB8BF4C0140EF7CD40DA4A@staq7.hq.atlantech.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CBD2D346320D541AB8BF4C0140EF7CD40DA4A@staq7.hq.atlantech.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, Feb 16, 2004 at 08:23:38PM -0500, Eric Van Tol: > Hi all, > We currently have Rancid set up to backup three Foundry ServerIron > switches and do-diffs cannot seem to log into one of them. When I run > flogin, everything works just fine, but when it's run using 'do-diffs', > the session times out. Here is a logfile snippet from the do-diffs: > > Trying to get all of the configs. > ! > slb02: flogin error: Error: TIMEOUT reached > slb02: missed cmd(s): write term,show flash,show module,show > chassis,show version > slb02: End of run not found > ===================================== > Getting missed routers: round 1. > > Why would flogin be able to log in when run independently of do-diffs? > The two Foundry switches that are working are running 07.3.06T12 and the > one that is not working is running 07.1.21T12. I've tried using both > SSH and telnet as the method on this particular switch. > > Any ideas? Does the following run successfully? flogin -c 'show version;show chassis' host From owner-rancid-discuss-outgoing@shrubbery.net Tue Feb 17 14:47:12 2004 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 4F709C699D for ; Tue, 17 Feb 2004 14:47:12 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 83C5717D059; Tue, 17 Feb 2004 14:47:11 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 6BEA617D07D; Tue, 17 Feb 2004 14:47:11 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from outbound.ea.com (outbound.ea.com [159.153.6.29]) by guelah.shrubbery.net (Postfix) with ESMTP id C886017D059; Tue, 17 Feb 2004 14:47:09 +0000 (UTC) Received: from eahq-bh2.rws.ad.ea.com (eahq-bh2.rws.ad.ea.com [10.14.204.33]) by outbound.ea.com (Switch-3.1.3/Switch-3.1.0) with ESMTP id i1HEkKWC020515; Tue, 17 Feb 2004 06:47:01 -0800 (PST) Received: from eahq-mb3.rws.ad.ea.com ([10.14.204.120]) by eahq-bh2.rws.ad.ea.com with Microsoft SMTPSVC(6.0.3790.0); Tue, 17 Feb 2004 06:46:56 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.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: Problems running do-diffs on Foundry Date: Tue, 17 Feb 2004 06:47:00 -0800 Message-ID: <194487E5B6AC1E4E82FCBD56E57997910556C9F7@eahq-mb3.rws.ad.ea.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problems running do-diffs on Foundry Thread-Index: AcP1C/H4w1/HtGZxQdyyoL/W+K5CGQAWGbTg From: "Rizzo, Joe" To: "john heasley" , "Eric Van Tol" Cc: X-OriginalArrivalTime: 17 Feb 2004 14:46:56.0580 (UTC) FILETIME=[E3E9F040:01C3F564] Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk It has been my experience that some Foundry code has a bug where enabling skip-page-display causes the output to hang. Try using flogin to login to the device, and then enter "skip" then "wri t". If the output hangs then it is a Foundry CLI bug. Joe -----Original Message----- From: john heasley [mailto:heas@shrubbery.net]=20 Sent: Monday, February 16, 2004 10:10 PM To: Eric Van Tol Cc: rancid-discuss@shrubbery.net Subject: Re: Problems running do-diffs on Foundry Mon, Feb 16, 2004 at 08:23:38PM -0500, Eric Van Tol: > Hi all, > We currently have Rancid set up to backup three Foundry ServerIron > switches and do-diffs cannot seem to log into one of them. When I run > flogin, everything works just fine, but when it's run using 'do-diffs', > the session times out. Here is a logfile snippet from the do-diffs: >=20 > Trying to get all of the configs. > ! > slb02: flogin error: Error: TIMEOUT reached > slb02: missed cmd(s): write term,show flash,show module,show > chassis,show version > slb02: End of run not found > = =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 > Getting missed routers: round 1. >=20 > Why would flogin be able to log in when run independently of do-diffs? > The two Foundry switches that are working are running 07.3.06T12 and the > one that is not working is running 07.1.21T12. I've tried using both > SSH and telnet as the method on this particular switch. =20 >=20 > Any ideas? Does the following run successfully? flogin -c 'show version;show chassis' host From owner-rancid-discuss-outgoing@shrubbery.net Thu Feb 19 01:10:26 2004 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 6154CC6795 for ; Thu, 19 Feb 2004 01:10:26 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 4536617CFC4; Thu, 19 Feb 2004 01:10:25 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 2CB6517CFC9; Thu, 19 Feb 2004 01:10:25 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from inergen.sybase.com (inergen.sybase.com [192.138.151.43]) by guelah.shrubbery.net (Postfix) with ESMTP id F422017CFC4 for ; Thu, 19 Feb 2004 01:10:23 +0000 (UTC) Received: from smtp2.sybase.com (sybgate2 [10.22.97.85]) by inergen.sybase.com with ESMTP id i1J1AMC07955 for ; Wed, 18 Feb 2004 17:10:23 -0800 (PST) Received: from clue.sybase.com (localhost [127.0.0.1]) by smtp2.sybase.com with ESMTP id RAA24183 for ; Wed, 18 Feb 2004 17:10:22 -0800 (PST) Received: by clue.sybase.com (Postfix, from userid 17945) id C2AB85F32; Wed, 18 Feb 2004 18:10:21 -0700 (MST) Date: Wed, 18 Feb 2004 18:10:21 -0700 From: Jason Ornstein To: rancid-discuss@shrubbery.net Subject: catos on cat5500 issues Message-ID: <20040219011021.GA11917@clue.sybase.com> Mail-Followup-To: rancid-discuss@shrubbery.net 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 I've just started to play with Rancid and am still learning on how to do the tuning part of it. The issue that I'm currently having appears to have been around for awhile based on past email on this list, but I didn't see a solution posted, so I thought I'd bring it up again. This is using the rancid 2.2.2 against a Cisco Catalyst 5500 running CatOS 6.3.5. The first issue is that it appears that some of the commands from clogin aren't being sent when cat5rancid is being run. Part of the diff that is sent to me is: + 2004 Feb 18 16:06:58 MST -07:00 %PAGP-5-PORTFROMSTP:Port 11/15 left bridge port 11/15 So, while rancid was grabbing the config, someone disconnected their machine and it got logged to the telnet session. From clogin, around line 751 there is this section of code: # If the prompt is (enable), then we are on a switch and the # command is "set length 0"; otherwise its "term length # 0". if [ regexp -- ".*> .*enable" "$prompt" ] { send "set length 0\r" send "set logging session disable\r" And when I run 'cat5rancid -d boulder-cat3' and look at the raw file, I never see the second line above being output. It could be that this section of code is never being hit as I'm not sure if the $do_script is valid coming right above this section of code. It could be taht the second logging line needs to be inserted in the run_commands code at line 487. Has anyone done this or does it break other platforms? And the second, and maybe easier issue, is that after people disconnect from the switch other lines in the config change which cause email to be sent. Some of those lines would look like this in the diff output: - set spantree portcost 2/1,2/3,2/5,2/11,2/14,2/16-19,2/21,2/26-27,2/34,2/38,2/40-42,2/46-48 200000 mst + set spantree portcost 2/1-2,2/4,2/6-10,2/12-13,2/15,2/20,2/22-25,2/28-33,2/35-37,2/39,2/43-45 2000000 mst This is on the same Catalyst above. Is there a way to filter this not being sent and/or being collected as a diff? Thanks. -jason ornstein From owner-rancid-discuss-outgoing@shrubbery.net Thu Feb 19 01:18:41 2004 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 55249C6795 for ; Thu, 19 Feb 2004 01:18:41 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 3E6D317CFC8; Thu, 19 Feb 2004 01:18:40 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 25DAE17CFCA; Thu, 19 Feb 2004 01:18:40 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from inergen.sybase.com (inergen.sybase.com [192.138.151.43]) by guelah.shrubbery.net (Postfix) with ESMTP id CE2A317CFC8 for ; Thu, 19 Feb 2004 01:18:38 +0000 (UTC) Received: from smtp2.sybase.com (sybgate2 [10.22.97.85]) by inergen.sybase.com with ESMTP id i1J1IbC09546 for ; Wed, 18 Feb 2004 17:18:37 -0800 (PST) Received: from clue.sybase.com (localhost [127.0.0.1]) by smtp2.sybase.com with ESMTP id RAA25725 for ; Wed, 18 Feb 2004 17:18:37 -0800 (PST) Received: by clue.sybase.com (Postfix, from userid 17945) id 839975F32; Wed, 18 Feb 2004 18:18:36 -0700 (MST) Date: Wed, 18 Feb 2004 18:18:36 -0700 From: Jason Ornstein To: rancid-discuss@shrubbery.net Subject: re: catos issues Message-ID: <20040219011836.GB11917@clue.sybase.com> Mail-Followup-To: rancid-discuss@shrubbery.net 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 I mistakenly said I was running 2.2.2 in my previous email, I am really running 2.3.rc1. Sorry for any confusion that might have caused. -jason From owner-rancid-discuss-outgoing@shrubbery.net Thu Feb 19 14:43:40 2004 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 0D2F5C67D8 for ; Thu, 19 Feb 2004 14:43:40 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id EF37417CFC4; Thu, 19 Feb 2004 14:43:39 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id D6CC817CFC9; Thu, 19 Feb 2004 14:43:38 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from eagle.aitken.com (eagle.aitken.com [198.137.194.213]) by guelah.shrubbery.net (Postfix) with ESMTP id 8849E17CFC4 for ; Thu, 19 Feb 2004 14:43:37 +0000 (UTC) Received: by eagle.aitken.com (Postfix, from userid 1000) id C6834B241F; Thu, 19 Feb 2004 09:43:36 -0500 (EST) Date: Thu, 19 Feb 2004 09:43:36 -0500 From: Jeff Aitken To: rancid-discuss@shrubbery.net Subject: Very strange problem with 2.2.2 (and 2.3-rc1) on FreeBSD-5.x Message-ID: <20040219144336.GA43301@eagle.aitken.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hello all, I'm seeing a very strange problem with rancid-2.2.2 (and 2.3-rc1). I've been talking privately with some of the developers but this has all of us stumped. Part of the problem is that no one has managed to duplicate the symptoms I'm seeing, so I'm I'm sending this to the -discuss list in the hopes that someone out there has seen something similar. I recently installed rancid-2.2.2 on a freshly-installed FreeBSD-5.1 system after installing tcl83 and expect (5.38.0) from /usr/ports. After setting up a small group of (mostly) Cisco 26xx and 72xx routers to be polled, on subsequent runs of rancid I saw oscillating sets of diffs like these: RUN1: [ on router1 ] - snmp-server contact + snmp-server contaact [on router2] - tacacs-server host 644.124.X.Y + tacacs-server host 64.124.X.Y [on router3] - taacacs-server host + tacacs-server host RUN2: [on router1] - snmp-server contaact + snmp-server contact [on router2] - tacacs-server host 64.124.X.Y + tacacs-server host 644.124.X.Y [on router3] - tacacs-server host + taacacs-server host Again, this is a stock FreeBSD-5.1-RELEASE system with a GENERIC kernel and very little in the way of additional software added... a couple things like apache and MRTG are about it. I was unable to duplicate this behavior by running: % clogin -c 'wr term' $router no matter how many times I tried. I also tried running 'rancid -d' in case it had something to do with the sequence of commands run by rancid and not just the 'wr term' itself, but did not see the same problem. I tried setting NOPIPE in rancid.conf but still saw the duplicate characters. I played with PAR_COUNT, to no avail. Thinking that it was something particular to the version of tcl and/or expect we're using, I tried several different combinations of those (including the latest, tcl8.4.5 and expect 5.40.0) but got the same results. I then loaded 2.2.2 on a freshly-installed FreeBSD-5.2-RELEASE system and got the same sort of behavior. Again, I tried different versions of everything (2.3-rc1, newer and older tcl, newer and older expect) but none of those made a difference. I also changed the set of routers I was polling to one that includes Cisco GSRs and Juniper M160s and saw the same sort of thing on both types of router, ruling out anything vendor-specific. After all of this, I loaded 2.3-rc1 on the system we currently use to poll the routers (an ancient FreeBSD-3.4 system) and it works as expected, with no duplicate characters. At this point I don't know what to think... it could be a 5.x issue, or a problem with newer tcl+expect, or even rancid itself, althouth that seems unlikely. Thanks for any suggestions, --Jeff From owner-rancid-discuss-outgoing@shrubbery.net Fri Feb 20 05:47:35 2004 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 1185DC67DF for ; Fri, 20 Feb 2004 05:47:35 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 0661217CFC4; Fri, 20 Feb 2004 05:47:34 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id DFD7E17CFC9; Fri, 20 Feb 2004 05:47:33 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 108F517CFC8; Fri, 20 Feb 2004 05:47:33 +0000 (UTC) Date: Thu, 19 Feb 2004 21:47:32 -0800 From: john heasley To: rancid-discuss@shrubbery.net Subject: Re: catos on cat5500 issues Message-ID: <20040220054732.GL8031@shrubbery.net> References: <20040219011021.GA11917@clue.sybase.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040219011021.GA11917@clue.sybase.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 Wed, Feb 18, 2004 at 06:10:21PM -0700, Jason Ornstein: > I've just started to play with Rancid and am still learning on how > to do the tuning part of it. The issue that I'm currently having > appears to have been around for awhile based on past email on this > list, but I didn't see a solution posted, so I thought I'd bring it > up again. > > This is using the rancid 2.2.2 against a Cisco Catalyst 5500 running > CatOS 6.3.5. > > The first issue is that it appears that some of the commands from > clogin aren't being sent when cat5rancid is being run. Part of > the diff that is sent to me is: > > + 2004 Feb 18 16:06:58 MST -07:00 %PAGP-5-PORTFROMSTP:Port 11/15 left > bridge port 11/15 the "set logging session disable" from below would get rid of messages like this one. > So, while rancid was grabbing the config, someone disconnected their > machine and it got logged to the telnet session. From clogin, around > line 751 there is this section of code: > > # If the prompt is (enable), then we are on a switch and the > # command is "set length 0"; otherwise its "term length > # 0". > if [ regexp -- ".*> .*enable" "$prompt" ] { > send "set length 0\r" > send "set logging session disable\r" > > And when I run 'cat5rancid -d boulder-cat3' and look at the raw file, > I never see the second line above being output. what follows that is an expect clause. expect will buffer the output (input) trying to match the prompt, so you may not see them if it is never getting a prompt back and times-out. > It could be that this section of code is never being hit as I'm not > sure if the $do_script is valid coming right above this section of > code. Correct, that would be the path for -s > It could be taht the second logging line needs to be inserted in the > run_commands code at line 487. Has anyone done this or does it break > other platforms? That is a bug; it should appear there. thanks. do those commands work on whatever catos flavour of the month you are running? does your prompt look something like "switch> (enable)"? do you get a usable login with 'clogin swtich'? my WAG would be that the prompt just isnt being matched properly. > And the second, and maybe easier issue, is that after people disconnect > from the switch other lines in the config change which cause email to be > sent. Some of those lines would look like this in the diff output: > > - set spantree portcost > 2/1,2/3,2/5,2/11,2/14,2/16-19,2/21,2/26-27,2/34,2/38,2/40-42,2/46-48 > 200000 mst > + set spantree portcost > 2/1-2,2/4,2/6-10,2/12-13,2/15,2/20,2/22-25,2/28-33,2/35-37,2/39,2/43-45 > 2000000 mst > > This is on the same Catalyst above. Is there a way to filter this not > being sent and/or being collected as a diff? it would have to be filtered in cat5rancid, though it is not clear to me that it should be. why would spanning tree be enabled on a user interface? From owner-rancid-discuss-outgoing@shrubbery.net Fri Feb 20 17:02:15 2004 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 B5FD7C6931 for ; Fri, 20 Feb 2004 17:02:15 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id AF7D217CFCA; Fri, 20 Feb 2004 17:02:14 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 9BAF817CFCC; Fri, 20 Feb 2004 17:02:14 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from fm200.sybase.com (fm200.sybase.com [192.138.151.122]) by guelah.shrubbery.net (Postfix) with ESMTP id 4BB7017CFCA; Fri, 20 Feb 2004 17:02:12 +0000 (UTC) Received: from smtp2.sybase.com (sybgate2.sybase.com [10.22.97.85]) by fm200.sybase.com with ESMTP id i1KH2Bk12409; Fri, 20 Feb 2004 09:02:11 -0800 (PST) Received: from clue.sybase.com (localhost [127.0.0.1]) by smtp2.sybase.com with ESMTP id JAA09880; Fri, 20 Feb 2004 09:02:10 -0800 (PST) Received: by clue.sybase.com (Postfix, from userid 17945) id 11D845F32; Fri, 20 Feb 2004 10:02:10 -0700 (MST) Date: Fri, 20 Feb 2004 10:02:09 -0700 From: Jason Ornstein To: john heasley Cc: rancid-discuss@shrubbery.net Subject: Re: catos on cat5500 issues Message-ID: <20040220170209.GA30853@clue.sybase.com> Mail-Followup-To: john heasley , rancid-discuss@shrubbery.net References: <20040219011021.GA11917@clue.sybase.com> <20040220054732.GL8031@shrubbery.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040220054732.GL8031@shrubbery.net> Organization: Sybase, Inc. X-URL: http://www.sybase.com/ User-Agent: Mutt/1.5.4i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk * john heasley [2004-02-19 21:47:32 -0800]: > the "set logging session disable" from below would get rid of messages > like this one. Right. This line works for the 3 Catalysts that I tested: 4506 CatOS 7.6(3) 4006 CatOS 6.3(7) 5500 CatOS 6.3(5) > That is a bug; it should appear there. thanks. I'll add it locally as well, thanks. > do those commands work on whatever catos flavour of the month you are > running? does your prompt look something like "switch> (enable)"? do > you get a usable login with 'clogin swtich'? my WAG would be that the > prompt just isnt being matched properly. Yes, those commands to work on my three Catalysts. And the prompt looks like this boulder-cat1> (enable) boulder-cat2> (enable) boulder-cat3> (enable) And 'clogin switchname' works for all three hosts w/o a problem. I think it is matching the prompts okay. Here is part of the raw file: boulder-cat1> (enable) boulder-cat1> (enable) set length 0 Screen length for this session set to 0. boulder-cat1> (enable) show version WS-C4506 Software, Version NmpSW: 7.6(3) Copyright (c) 1995-2003 by Cisco Systems, Inc. NMP S/W compiled on Aug 22 2003, 03:17:00 GSP S/W compiled on Aug 22 2003, 00:32:33 > > This is on the same Catalyst above. Is there a way to filter this not > > being sent and/or being collected as a diff? > it would have to be filtered in cat5rancid, though it is not clear to me > that it should be. why would spanning tree be enabled on a user interface? Well, the switch is running spanning tree as it has dual uplinks, but you're right there is no reason that the fast ethernet ports need to be running spanning tree. I'm unaware of a way to disable spanning tree on a port level though. I do have portfast enabled, but that is not the same. Are you thinking of something else? -jason From owner-rancid-discuss-outgoing@shrubbery.net Fri Feb 20 17:33:26 2004 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 DBC57C6931 for ; Fri, 20 Feb 2004 17:33:25 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id DCC6E17CFC8; Fri, 20 Feb 2004 17:33:24 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id C1C8E17CFCA; Fri, 20 Feb 2004 17:33:24 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id D0F8D17CFC9; Fri, 20 Feb 2004 17:33:23 +0000 (UTC) Date: Fri, 20 Feb 2004 09:33:23 -0800 From: john heasley To: rancid-discuss@shrubbery.net Subject: Re: catos on cat5500 issues Message-ID: <20040220173323.GJ8031@shrubbery.net> References: <20040219011021.GA11917@clue.sybase.com> <20040220054732.GL8031@shrubbery.net> <20040220170209.GA30853@clue.sybase.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040220170209.GA30853@clue.sybase.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 Fri, Feb 20, 2004 at 10:02:09AM -0700, Jason Ornstein: > And 'clogin switchname' works for all three hosts w/o a problem. I > think it is matching the prompts okay. Here is part of the raw file: > > boulder-cat1> (enable) > boulder-cat1> (enable) set length 0 > Screen length for this session set to 0. > boulder-cat1> (enable) show version > WS-C4506 Software, Version NmpSW: 7.6(3) > Copyright (c) 1995-2003 by Cisco Systems, Inc. > NMP S/W compiled on Aug 22 2003, 03:17:00 > GSP S/W compiled on Aug 22 2003, 00:32:33 ah, so it getting some portion of the output. can you give me the entire raw file (privately)? > > > This is on the same Catalyst above. Is there a way to filter this not > > > being sent and/or being collected as a diff? > > > it would have to be filtered in cat5rancid, though it is not clear to me > > that it should be. why would spanning tree be enabled on a user interface? > > Well, the switch is running spanning tree as it has dual uplinks, but > you're right there is no reason that the fast ethernet ports need to > be running spanning tree. I'm unaware of a way to disable spanning > tree on a port level though. I do have portfast enabled, but that is > not the same. Are you thinking of something else? hmm, looks like you're right. seems dangerous to me; it is a wonder no one has complained to cisco. Does that config command not get set for backbone links? ie: if it is just filtered by cat5rancid, actual useful configuration information would be lost. From owner-rancid-discuss-outgoing@shrubbery.net Fri Feb 20 20:44:03 2004 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 72917C6931 for ; Fri, 20 Feb 2004 20:44:03 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 5B7BA17CFC8; Fri, 20 Feb 2004 20:44:02 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 44FEE17CFCA; Fri, 20 Feb 2004 20:44:02 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from ntx.netvision.net.il (ananas1.netvision.net.il [199.203.100.202]) by guelah.shrubbery.net (Postfix) with ESMTP id CFBD617CFC8 for ; Fri, 20 Feb 2004 20:43:59 +0000 (UTC) Received: from Internal Mail-Server by ananas1 with SMTP; 20 Feb 2004 22:44:34 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: catos on cat5500 issues Date: Fri, 20 Feb 2004 22:42:36 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: catos on cat5500 issues Thread-Index: AcP2hQj3d+/oCYixTZWwG+U7Ba3yEQBbS1kg From: "Yuval Ben-Ari" To: "Jason Ornstein" , Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk a late reply to this discussion. I already reported the missing "set logging session disable\r" while clogin is in 'run_commands' mode (-c) but could not find where it was missing. Just now added it to run_commands as well, I do see one minor things now if I run clogin -c to cat5500 switch it will send the command twice, this is output from clogin -c 'sh alias' cat55: cat55-u-a> (enable) cat55-u-a> (enable) set length 0 Screen length for this session set to 0. cat55-u-a> (enable) set logging session disable System logging messages will not be sent to the current login session. cat55-u-a> (enable) set logging session disable System logging messages will not be sent to the current login session. cat55-u-a> (enable)sh alias No command aliases configured. cat55-u-a> (enable) exit Connection closed by foreign host. Any idea why it is being sent twice ? (before I added it to run_commands it would not be sent at all) Regarding the spanning tree changes. I was having similar problem with constant "set spantree portvlancost" config changes. I had to filter on cat5rancind by adding following line inside sub WriteTerm: /^set spantree portvlancost/ && next; In any case I don't think you want to disable spanning tree anywhere. It is there to protect the network from loops. What if someone in your network will manage to loop 2 ports ? if stp will be off it could melt down the network. The real problem is why port cost config keeps changing when ports go down and up which should probably be a question to Cisco. Yuval > -----Original Message----- > From: owner-rancid-discuss@shrubbery.net=20 > [mailto:owner-rancid-discuss@shrubbery.net] On Behalf Of=20 > Jason Ornstein > Sent: Thursday, February 19, 2004 03:10 > To: rancid-discuss@shrubbery.net > Subject: catos on cat5500 issues >=20 >=20 > I've just started to play with Rancid and am still learning on how > to do the tuning part of it. The issue that I'm currently having > appears to have been around for awhile based on past email on this > list, but I didn't see a solution posted, so I thought I'd bring it > up again. >=20 > This is using the rancid 2.2.2 against a Cisco Catalyst 5500 running > CatOS 6.3.5. >=20 > The first issue is that it appears that some of the commands from=20 > clogin aren't being sent when cat5rancid is being run. Part of=20 > the diff that is sent to me is: >=20 > + 2004 Feb 18 16:06:58 MST -07:00 %PAGP-5-PORTFROMSTP:Port 11/15 left > bridge port 11/15 >=20 > So, while rancid was grabbing the config, someone disconnected their > machine and it got logged to the telnet session. From clogin, around > line 751 there is this section of code: >=20 > # If the prompt is (enable), then we are on a switch and the > # command is "set length 0"; otherwise its "term length > # 0". > if [ regexp -- ".*> .*enable" "$prompt" ] { > send "set length 0\r" > send "set logging session disable\r" >=20 > And when I run 'cat5rancid -d boulder-cat3' and look at the raw file,=20 > I never see the second line above being output. =20 >=20 > It could be that this section of code is never being hit as I'm not > sure if the $do_script is valid coming right above this section of > code. =20 >=20 > It could be taht the second logging line needs to be inserted in the > run_commands code at line 487. Has anyone done this or does it break > other platforms? >=20 >=20 > And the second, and maybe easier issue, is that after people=20 > disconnect > from the switch other lines in the config change which cause=20 > email to be > sent. Some of those lines would look like this in the diff output: >=20 > - set spantree portcost > 2/1,2/3,2/5,2/11,2/14,2/16-19,2/21,2/26-27,2/34,2/38,2/40-42,2/46-48 > 200000 mst > + set spantree portcost > =20 > 2/1-2,2/4,2/6-10,2/12-13,2/15,2/20,2/22-25,2/28-33,2/35-37,2/3 9,2/43-45 > 2000000 mst >=20 > This is on the same Catalyst above. Is there a way to filter=20 > this not=20 > being sent and/or being collected as a diff? >=20 > Thanks. >=20 > -jason ornstein >=20 >=20 >=20 From owner-rancid-discuss-outgoing@shrubbery.net Sat Feb 21 07:48:16 2004 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 C7A38C6932 for ; Sat, 21 Feb 2004 07:48:15 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id D77BB17CFC8; Sat, 21 Feb 2004 07:48:14 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id C14B117CFCA; Sat, 21 Feb 2004 07:48:14 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from avs1.arnes.si (avs1.arnes.si [193.2.1.74]) by guelah.shrubbery.net (Postfix) with ESMTP id 7D52917CFC8 for ; Sat, 21 Feb 2004 07:48:12 +0000 (UTC) Received: from localhost (avs1.arnes.si [193.2.1.74]) by avs1.arnes.si (Postfix) with ESMTP id D83842E01F4 for ; Sat, 21 Feb 2004 08:48:09 +0100 (CET) Received: from avs1.arnes.si ([193.2.1.74]) by localhost (avs1.arnes.si [193.2.1.74]) (amavisd-new, port 10024) with ESMTP id 87414-03 for ; Sat, 21 Feb 2004 08:48:09 +0100 (CET) Received: from bfele (unknown [195.250.196.247]) by avs1.arnes.si (Postfix) with SMTP id 82D6C2E00F6 for ; Sat, 21 Feb 2004 08:48:05 +0100 (CET) From: "Bostjan Fele" To: "Rancid-Discuss@Shrubbery. Net" Subject: timeout on extreme switches Date: Sat, 21 Feb 2004 08:48:05 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0004_01C3F857.6BF976A0" 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 X-Virus-Scanned: by amavisd-new at arnes.si Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk This is a multi-part message in MIME format. ------=_NextPart_000_0004_01C3F857.6BF976A0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Hi, Have a running FreeBSD 4.9 with rancid 2.3r1_1 and am trying to collect configs from Extreme Switches. When I use clogin to test I get through login procedure but cannot issue any command - don't get responses back. It does not matter if logged in through telnet or SSH. If I run xrancid it complains about expired timeout. Any idea what is going wrong? # xrancid bd bd clogin error: Error: TIMEOUT reached bd: missed cmd(s): show configuration,show diagnostics,show memory,show slot,show switch,show configuration detail,show version bd: End of run not found # From owner-rancid-discuss-outgoing@shrubbery.net Sat Feb 21 08:19:36 2004 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 EE25CC6932 for ; Sat, 21 Feb 2004 08:19:35 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 89E4217CFCC; Sat, 21 Feb 2004 08:19:34 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 6A7B517CFCD; Sat, 21 Feb 2004 08:19:34 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id DB3E717CFCC; Sat, 21 Feb 2004 08:19:31 +0000 (UTC) Date: Sat, 21 Feb 2004 00:19:31 -0800 From: john heasley To: Bostjan Fele Cc: "Rancid-Discuss@Shrubbery. Net" Subject: Re: timeout on extreme switches Message-ID: <20040221081931.GW8031@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 Sat, Feb 21, 2004 at 08:48:05AM +0100, Bostjan Fele: > > Hi, > > Have a running FreeBSD 4.9 with rancid 2.3r1_1 and am trying to collect > configs from Extreme Switches. When I use clogin to test I get through login > procedure but cannot issue any command - don't get responses back. It does > not matter if logged in through telnet or SSH. > > If I run xrancid it complains about expired timeout. Any idea what is going > wrong? > > # xrancid bd > bd clogin error: Error: TIMEOUT reached > bd: missed cmd(s): show configuration,show diagnostics,show memory,show > slot,show switch,show configuration detail,show version > bd: End of run not found > # most often this is a problem with matching of the prompt. either the device "auto enables" or aaa has been used to alter the prompt. when you login manually, what does the prompt look like? From owner-rancid-discuss-outgoing@shrubbery.net Sat Feb 21 09:35:14 2004 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 6EDEDC6932 for ; Sat, 21 Feb 2004 09:35:14 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 5B25917CFC8; Sat, 21 Feb 2004 09:35:13 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 3567F17CFCA; Sat, 21 Feb 2004 09:35:13 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from avs1.arnes.si (avs1.arnes.si [193.2.1.74]) by guelah.shrubbery.net (Postfix) with ESMTP id 4896917CFC8; Sat, 21 Feb 2004 09:35:11 +0000 (UTC) Received: from localhost (avs1.arnes.si [193.2.1.74]) by avs1.arnes.si (Postfix) with ESMTP id 899572E0221; Sat, 21 Feb 2004 10:35:10 +0100 (CET) Received: from avs1.arnes.si ([193.2.1.74]) by localhost (avs1.arnes.si [193.2.1.74]) (amavisd-new, port 10024) with ESMTP id 03026-02; Sat, 21 Feb 2004 10:35:10 +0100 (CET) Received: from bfele (unknown [195.250.196.247]) by avs1.arnes.si (Postfix) with SMTP id 8B17A2E01A4; Sat, 21 Feb 2004 10:35:08 +0100 (CET) From: "Bostjan Fele" To: "john heasley" Cc: "Rancid-Discuss@Shrubbery. Net" Subject: RE: timeout on extreme switches Date: Sat, 21 Feb 2004 10:35:08 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <20040221081931.GW8031@shrubbery.net> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at arnes.si Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hi, Tried to go deeper with clogin. Machine prompts back with "TESTIRNICA-BD:1 #". $ clogin bd -c "show version" bd spawn telnet bd Trying 10.10.103.150... Connected to bd. Escape character is '^]'. login: nmis password: ExtremeWare Copyright (C) 1996-2003 Extreme Networks. All rights reserved. =============================================================== Press the key at any time for completions. Remember to save your configuration changes. TESTIRNICA-BD:1 # TESTIRNICA-BD:1 # Error: TIMEOUT reached That is already "enabled" prompt in Cisco terms. Here my .cloginrc config for this device: # BlackDiamond add user bd nmis add password bd nmis add noenable bd 1 Regards, Bostjan -----Original Message----- From: john heasley [mailto:heas@shrubbery.net] Sent: Saturday, February 21, 2004 9:20 AM To: Bostjan Fele Cc: Rancid-Discuss@Shrubbery. Net Subject: Re: timeout on extreme switches Sat, Feb 21, 2004 at 08:48:05AM +0100, Bostjan Fele: > > Hi, > > Have a running FreeBSD 4.9 with rancid 2.3r1_1 and am trying to collect > configs from Extreme Switches. When I use clogin to test I get through login > procedure but cannot issue any command - don't get responses back. It does > not matter if logged in through telnet or SSH. > > If I run xrancid it complains about expired timeout. Any idea what is going > wrong? > > # xrancid bd > bd clogin error: Error: TIMEOUT reached > bd: missed cmd(s): show configuration,show diagnostics,show memory,show > slot,show switch,show configuration detail,show version > bd: End of run not found > # most often this is a problem with matching of the prompt. either the device "auto enables" or aaa has been used to alter the prompt. when you login manually, what does the prompt look like? From owner-rancid-discuss-outgoing@shrubbery.net Sat Feb 21 15:04:06 2004 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 CF63DC6932 for ; Sat, 21 Feb 2004 15:04:06 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id E0B1517CFC8; Sat, 21 Feb 2004 15:04:05 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id BE02C17CFCA; Sat, 21 Feb 2004 15:04:05 +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 2DB2F17CFC8; Sat, 21 Feb 2004 15:04:04 +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 i1LF41nN002800; Sat, 21 Feb 2004 10:04:01 -0500 (EST) (envelope-from asp@tower.partan.com) Received: (from asp@localhost) by tower.partan.com (8.12.8p2/8.12.8/Submit) id i1LF40AE002797; Sat, 21 Feb 2004 10:04:00 -0500 (EST) (envelope-from asp) Date: Sat, 21 Feb 2004 10:04:00 -0500 From: Andrew Partan To: Bostjan Fele Cc: john heasley , "Rancid-Discuss@Shrubbery. Net" Subject: Re: timeout on extreme switches Message-ID: <20040221150400.GA2745@partan.com> References: <20040221081931.GW8031@shrubbery.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On Sat, Feb 21, 2004 at 10:35:08AM +0100, Bostjan Fele wrote: > That is already "enabled" prompt in Cisco terms. Here my .cloginrc config > for this device: > > # BlackDiamond > add user bd nmis > add password bd nmis > add noenable bd 1 You need this: add autoenable bd 1 I don't think you need the noenable. --asp From owner-rancid-discuss-outgoing@shrubbery.net Mon Feb 23 13:14:34 2004 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 CC008C698F for ; Mon, 23 Feb 2004 13:14:33 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id D094A17CF9E; Mon, 23 Feb 2004 13:14:32 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id B4A8317CFC3; Mon, 23 Feb 2004 13:14:32 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from avs2.arnes.si (avs2.arnes.si [193.2.1.75]) by guelah.shrubbery.net (Postfix) with ESMTP id 730EF17CF9E; Mon, 23 Feb 2004 13:14:30 +0000 (UTC) Received: from localhost (avs2.arnes.si [193.2.1.75]) by avs2.arnes.si (Postfix) with ESMTP id C19D5CFEF8; Mon, 23 Feb 2004 14:14:24 +0100 (CET) Received: from avs2.arnes.si ([193.2.1.75]) by localhost (avs2.arnes.si [193.2.1.75]) (amavisd-new, port 10024) with ESMTP id 19089-03; Mon, 23 Feb 2004 14:14:24 +0100 (CET) Received: from bfele (unknown [195.250.196.3]) by avs2.arnes.si (Postfix) with SMTP id 64DD9CFEB4; Mon, 23 Feb 2004 14:14:23 +0100 (CET) From: "Bostjan Fele" To: "Andrew Partan" , "Bostjan Fele" Cc: "john heasley" , "Rancid-Discuss@Shrubbery. Net" Subject: RE: timeout on extreme switches Date: Mon, 23 Feb 2004 14:14:22 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <20040221150400.GA2745@partan.com> X-Virus-Scanned: by amavisd-new at arnes.si Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hi, It worked. Thanks. Regards, Bostjan -------------------------------------------------------- Bostjan FELE E-mail: bostjan.fele@smart-com.si Smart Com, d.o.o. Brnciceva 45, 1001 Ljubljana, Slovenia URL: http://www.smart-com.si Tel.: +386-1-5308-312 Fax.: +386-1-5611-571 Mob.: +386-41-399-363 --------------------------------------------------------- -----Original Message----- From: Andrew Partan [mailto:asp@partan.com] Sent: Saturday, February 21, 2004 4:04 PM To: Bostjan Fele Cc: john heasley; Rancid-Discuss@Shrubbery. Net Subject: Re: timeout on extreme switches On Sat, Feb 21, 2004 at 10:35:08AM +0100, Bostjan Fele wrote: > That is already "enabled" prompt in Cisco terms. Here my .cloginrc config > for this device: > > # BlackDiamond > add user bd nmis > add password bd nmis > add noenable bd 1 You need this: add autoenable bd 1 I don't think you need the noenable. --asp From owner-rancid-discuss-outgoing@shrubbery.net Thu Feb 26 22:51:45 2004 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 807CFC6795 for ; Thu, 26 Feb 2004 22:51:45 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 66E4F17CFA8; Thu, 26 Feb 2004 22:51:44 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 48CA017CFC4; Thu, 26 Feb 2004 22:51:44 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 6E5CE17CFC3; Thu, 26 Feb 2004 22:51:43 +0000 (UTC) Date: Thu, 26 Feb 2004 14:51:43 -0800 From: john heasley To: Avram Dorfman Cc: rancid-discuss@shrubbery.net Subject: Re: adapting a 2.3 module to 2.2? Message-ID: <20040226225143.GW20180@shrubbery.net> References: <897CB9DD-6895-11D8-BB26-000393C94C78@juniper.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <897CB9DD-6895-11D8-BB26-000393C94C78@juniper.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 Thu, Feb 26, 2004 at 02:54:07PM -0500, Avram Dorfman: > Hello, > > I have a heavily hacked 2.2 rancid installation that I'd like to get > erx support into. Can anyone give me an idea of how hard & what will be > necessary for me to uber-hack it to support the erx module from 2.3? probably easy. adjust rancid-fe and install the erx script. From owner-rancid-discuss-outgoing@shrubbery.net Thu Feb 26 23:34:20 2004 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 A3557C6795 for ; Thu, 26 Feb 2004 23:34:20 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id AB26F17CFA8; Thu, 26 Feb 2004 23:34:19 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 9001217CFC4; Thu, 26 Feb 2004 23:34:19 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from fm200.sybase.com (fm200.sybase.com [192.138.151.122]) by guelah.shrubbery.net (Postfix) with ESMTP id 2710417CFA8 for ; Thu, 26 Feb 2004 23:34:18 +0000 (UTC) Received: from smtp2.sybase.com (sybgate2.sybase.com [10.22.97.85]) by fm200.sybase.com with ESMTP id i1QNYHk25619 for ; Thu, 26 Feb 2004 15:34:17 -0800 (PST) Received: from clue.sybase.com (localhost [127.0.0.1]) by smtp2.sybase.com with ESMTP id PAA14922 for ; Thu, 26 Feb 2004 15:34:16 -0800 (PST) Received: by clue.sybase.com (Postfix, from userid 17945) id 1D65B5F32; Thu, 26 Feb 2004 16:34:16 -0700 (MST) Date: Thu, 26 Feb 2004 16:34:16 -0700 From: Jason Ornstein To: rancid-discuss@shrubbery.net Subject: Re: catos on cat5500 issues Message-ID: <20040226233415.GA12128@clue.sybase.com> Mail-Followup-To: rancid-discuss@shrubbery.net References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Sybase, Inc. X-URL: http://www.sybase.com/ User-Agent: Mutt/1.5.4i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk * Yuval Ben-Ari [2004-02-20 22:42:36 +0200]: > a late reply to this discussion. > > I already reported the missing "set logging session disable\r" while > clogin is in 'run_commands' mode (-c) but could not find where it was > missing. Just now added it to run_commands as well, I do see one minor > things now if I run clogin -c to cat5500 switch it will send the command > twice, this is output from clogin -c 'sh alias' cat55: > > cat55-u-a> (enable) > cat55-u-a> (enable) set length 0 > Screen length for this session set to 0. > cat55-u-a> (enable) set logging session disable > System logging messages will not be sent to the current login session. > cat55-u-a> (enable) set logging session disable > System logging messages will not be sent to the current login session. > cat55-u-a> (enable)sh alias > No command aliases configured. > cat55-u-a> (enable) exit > Connection closed by foreign host. > > Any idea why it is being sent twice ? (before I added it to run_commands > it would not be sent at all) I don't know why it is doing this either, but I see the exact same thing and it causes the collection of the config files to fail. I don't see how a second 'send' command in an if statement would cause the commands to be sent twice. I don't know very much expect, so I haven't tried to debug this in depth. > Regarding the spanning tree changes. > I was having similar problem with constant "set spantree portvlancost" > config changes. > I had to filter on cat5rancind by adding following line inside sub > WriteTerm: > /^set spantree portvlancost/ && next; I think that I'll give this a try. > In any case I don't think you want to disable spanning tree anywhere. > It is there to protect the network from loops. > What if someone in your network will manage to loop 2 ports ? if stp > will be off it could melt down the network. > The real problem is why port cost config keeps changing when ports go > down and up which should probably be a question to Cisco. Agreed. It might be version of code or platform. I'll investigate this. -jason