From owner-rancid-discuss-outgoing@shrubbery.net Tue Jan 4 20:41:11 2005 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 2F19611CE31 for ; Tue, 4 Jan 2005 20:41:11 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 9B8F01113C; Tue, 4 Jan 2005 20:41:10 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 8E3F71114D; Tue, 4 Jan 2005 20:41:10 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from mel1.unite.net.au (mel1.uecomm.net.au [203.94.129.130]) by guelah.shrubbery.net (Postfix) with ESMTP id 67D1E1113C for ; Tue, 4 Jan 2005 20:41:06 +0000 (UTC) Received: from [10.190.3.21] ([203.94.135.59]) by mel1.unite.net.au (8.12.10/8.12.10) with ESMTP id j04KeqKU013702; Wed, 5 Jan 2005 07:40:57 +1100 (EST) Message-ID: <41DAFF7D.6020009@choqolat.org> Date: Wed, 05 Jan 2005 07:41:33 +1100 From: Andrew Fort User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andy Litzinger Cc: rancid-discuss@shrubbery.net Subject: Re: Rancid and Netscalers References: <6E494551E68B574688EB0D7E9B7169C98D808A@ex2000-c.vistocorp.com> In-Reply-To: <6E494551E68B574688EB0D7E9B7169C98D808A@ex2000-c.vistocorp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Andy Litzinger wrote: > Hi, > I'm having trouble using the netscaler code for rancid. Has anyone had > any success with it, especially with some of the newer nescaler code? I > have my .cloginrc line set up similar to: > > add user netscaler.foo.com nsroot > #note that I only supplied a vty password because netscaler is FreeBSD > based and does not use enable > add password netscaler.foo.com password > add method netscaler.foo.com ssh > > router.db > netscaler.foo.com:netscaler:up > > When I test with nslogin netscaler.foo.com it connects to the netscaler > and logs in(you get the login message and prompt >), but then you can't > enter any commands and eventually the expect script times out and > disconnects. I'm not sure what the expect script is trying to do at > this point. Wild-ass-guess: sounds like it's not recognizing the prompt, so the logic doesn't continue (to recognize command output if you type it in, or type commands in for you if you're '-c' ing). > I believe some of the netscaler commands may have changed in recent > versions and I'm not sure when the nslogin/nsrancid scripts were last > tested. FYI I am running NS5.2 Build 50.17. Did this 'use to' work? Has the prompt (format) changed (in recent software releases)? I don't have a netscaler so I can't help much more than that, sorry. -andrew From owner-rancid-discuss-outgoing@shrubbery.net Wed Jan 26 21:10:41 2005 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 64D8E11CE32 for ; Wed, 26 Jan 2005 21:10:41 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id EAB4D1113C; Wed, 26 Jan 2005 21:10:40 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id DE4EA1114D; Wed, 26 Jan 2005 21:10:40 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from testbed9.merit.edu (testbed9.merit.edu [198.108.1.10]) by guelah.shrubbery.net (Postfix) with ESMTP id 66EEB1113C for ; Wed, 26 Jan 2005 21:10:40 +0000 (UTC) Received: from utopia.merit.edu (utopia.merit.edu [198.108.61.52]) by testbed9.merit.edu (Postfix) with ESMTP id 3ABEF199F for ; Wed, 26 Jan 2005 16:10:39 -0500 (EST) Date: Wed, 26 Jan 2005 16:10:39 -0500 (EST) From: Glenn Wiltse To: rancid-discuss@shrubbery.net Subject: Problems Collecting Extreme configs. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk I've recently started trying to collect configurations from a Extreme switch. I've ran into problems, sorted some out, but still have questions... First off I'm currently runing 2.8b version of rancid. For this Extreme switch, I'm using telnet, adding autoenable, getting loged in alright... but I keep getting hung up on the clipaging that we like to keep enabled on these switches. If I disable clipaging, all goes well, but I really hate to have to leave clipaging off permenently. I was asked/told that if I just issue a the command 'diable clipaging session' before I issued the other commands, it should work. Well not knowing rancid and/or expect well enough to figure out how to make this hapen on my own. I decided to come and ask, if this issue has been delt with already in a more recent revsion of rancid... and/or if somone can point me in the right direction for dealing with the paging issue on a session basis. We really don't want to permenetly disable paging on our Extreme switches unless that is really our only option. Please advise... Thanks Glenn S. Wiltse From owner-rancid-discuss-outgoing@shrubbery.net Thu Jan 27 05:42:54 2005 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 F204B11CE2E for ; Thu, 27 Jan 2005 05:42:53 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 3D3331113C; Thu, 27 Jan 2005 05:42:53 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 3295C11149; Thu, 27 Jan 2005 05:42:53 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id B63CC11146; Thu, 27 Jan 2005 05:42:52 +0000 (UTC) Date: Wed, 26 Jan 2005 21:42:52 -0800 From: john heasley To: Glenn Wiltse Cc: rancid-discuss@shrubbery.net Subject: Re: Problems Collecting Extreme configs. Message-ID: <20050127054252.GO5245@shrubbery.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: i just want to have a beer while i am caring. Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Wed, Jan 26, 2005 at 04:10:39PM -0500, Glenn Wiltse: > > I've recently started trying to collect configurations from > a Extreme switch. I've ran into problems, sorted some out, but > still have questions... > > First off I'm currently runing 2.8b version of rancid. we have not reached 2.8 yet and all b ("beta") images have been yanked. perhaps this is 2.3b? I'd prefer that you had 2.3.1 + p1. > For this Extreme switch, I'm using telnet, adding autoenable, getting > loged in alright... but I keep getting hung up on the clipaging that we > like to keep enabled on these switches. If I disable clipaging, all goes > well, but I really hate to have to leave clipaging off permenently. > > I was asked/told that if I just issue a the command 'diable clipaging > session' before I issued the other commands, it should work. Well not > knowing rancid and/or expect well enough to figure out how to make this > hapen on my own. I decided to come and ask, if this issue has been > delt with already in a more recent revsion of rancid... and/or if somone > can point me in the right direction for dealing with the paging issue > on a session basis. > > We really don't want to permenetly disable paging on our Extreme switches > unless that is really our only option. The pager can normally be dealt with in the run_commands loop. ISTR there was a reason why we could not do this for the extreme, but I can't remember. I think it used terminal control codes to manipulate the lines, so weird spacing would show-up. but, you can certainly upgrade and try it. sorry - extreme is a bit of a bastard child for us. From owner-rancid-discuss-outgoing@shrubbery.net Thu Jan 27 13:42:22 2005 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 0A3AB11CE2E for ; Thu, 27 Jan 2005 13:42:21 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 0FEBB1113C; Thu, 27 Jan 2005 13:42:21 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 00C8C11149; Thu, 27 Jan 2005 13:42:21 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from testbed9.merit.edu (testbed9.merit.edu [198.108.1.10]) by guelah.shrubbery.net (Postfix) with ESMTP id 389CE1113C; Thu, 27 Jan 2005 13:42:20 +0000 (UTC) Received: from utopia.merit.edu (utopia.merit.edu [198.108.61.52]) by testbed9.merit.edu (Postfix) with ESMTP id 813B01D1A; Thu, 27 Jan 2005 08:42:19 -0500 (EST) Date: Thu, 27 Jan 2005 08:42:19 -0500 (EST) From: Glenn Wiltse To: john heasley Cc: rancid-discuss@shrubbery.net Subject: Re: Problems Collecting Extreme configs. In-Reply-To: <20050127054252.GO5245@shrubbery.net> Message-ID: References: <20050127054252.GO5245@shrubbery.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Ah, sorry... it's 2.2b8 that we are running. I've asked to have it updated so we'll see what happens afterwords. I'll let you all know if it helps any... and/or if I find another solution. Thanks, Glenn On Wed, 26 Jan 2005, john heasley wrote: > Wed, Jan 26, 2005 at 04:10:39PM -0500, Glenn Wiltse: > > > > I've recently started trying to collect configurations from > > a Extreme switch. I've ran into problems, sorted some out, but > > still have questions... > > > > First off I'm currently runing 2.8b version of rancid. > > we have not reached 2.8 yet and all b ("beta") images have been yanked. > perhaps this is 2.3b? I'd prefer that you had 2.3.1 + p1. > > > For this Extreme switch, I'm using telnet, adding autoenable, getting > > loged in alright... but I keep getting hung up on the clipaging that we > > like to keep enabled on these switches. If I disable clipaging, all goes > > well, but I really hate to have to leave clipaging off permenently. > > > > I was asked/told that if I just issue a the command 'diable clipaging > > session' before I issued the other commands, it should work. Well not > > knowing rancid and/or expect well enough to figure out how to make this > > hapen on my own. I decided to come and ask, if this issue has been > > delt with already in a more recent revsion of rancid... and/or if somone > > can point me in the right direction for dealing with the paging issue > > on a session basis. > > > > We really don't want to permenetly disable paging on our Extreme switches > > unless that is really our only option. > > The pager can normally be dealt with in the run_commands loop. ISTR there > was a reason why we could not do this for the extreme, but I can't remember. > I think it used terminal control codes to manipulate the lines, so weird > spacing would show-up. > > but, you can certainly upgrade and try it. sorry - extreme is a bit of a > bastard child for us. > > !DSPAM:41f87f6a2219362611576! > > > From owner-rancid-discuss-outgoing@shrubbery.net Thu Jan 27 21:16:51 2005 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 E188C11CE2E for ; Thu, 27 Jan 2005 21:16:50 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 28B2A1113C; Thu, 27 Jan 2005 21:16:50 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 1F29E11149; Thu, 27 Jan 2005 21:16:50 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from gizmo02bw.bigpond.com (gizmo02bw.bigpond.com [144.140.70.12]) by guelah.shrubbery.net (Postfix) with SMTP id E8E3D1113C for ; Thu, 27 Jan 2005 21:16:48 +0000 (UTC) Received: (qmail 7980 invoked from network); 27 Jan 2005 21:16:36 -0000 Received: from unknown (HELO bwmam02.bigpond.com) (144.135.24.72) by gizmo02bw.bigpond.com with SMTP; 27 Jan 2005 21:16:36 -0000 Received: from cpe-144-132-98-69.vic.bigpond.net.au ([144.132.98.69]) by bwmam02.bigpond.com(MAM REL_3_4_2a 17/54387034) with SMTP id 54387034; Fri, 28 Jan 2005 07:16:36 +1000 In-Reply-To: <6E494551E68B574688EB0D7E9B7169C98D80BC@ex2000-c.vistocorp.com> References: <6E494551E68B574688EB0D7E9B7169C98D80BC@ex2000-c.vistocorp.com> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Cc: From: Andrew Fort Subject: Re: Rancid and Netscalers Date: Fri, 28 Jan 2005 08:16:27 +1100 To: "Andy Litzinger" X-Mailer: Apple Mail (2.619) Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On 28/01/2005, at 6:23 AM, Andy Litzinger wrote: > > I did get a reply from Anshuman Karwar, who wrote hacked the clogin to > create the nslogin script. He is running almost the same netscaler > code revision as me and it works for him. Since he wrote the nslogin > code, I don't know if he is using a new/different version than what is > included in the Rancid build. > > anyway, I agree that it seems like nslogin is having trouble > recognizing the prompt. Is there anyway to have rancid/ the login > scrips dump out any more verbose info about where it is dying or > having trouble? > > -andy yes, this can be done: $ export NOPIPE=1 $ nsrancid -d -l hostname the output to the terminal, along with the output written into file hostname.raw should get things started. cheers, -andrew