From owner-rancid-discuss-outgoing@shrubbery.net Wed Sep 3 19:28:44 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 h83JSix25532 for ; Wed, 3 Sep 2003 19:28:44 GMT Received: by guelah.shrubbery.net (Postfix) id 57D9217D329; Wed, 3 Sep 2003 19:28:44 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 3588117D32D; Wed, 3 Sep 2003 19:28:44 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from web11703.mail.yahoo.com (web11703.mail.yahoo.com [216.136.172.69]) by guelah.shrubbery.net (Postfix) with SMTP id 333A517D329 for ; Wed, 3 Sep 2003 19:28:43 +0000 (UTC) Message-ID: <20030903192841.49221.qmail@web11703.mail.yahoo.com> Received: from [68.166.42.162] by web11703.mail.yahoo.com via HTTP; Wed, 03 Sep 2003 12:28:41 PDT Date: Wed, 3 Sep 2003 12:28:41 -0700 (PDT) From: James Kilton Subject: Prompt issues on Bay routers. To: rancid-discuss@shrubbery.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hi, I'm new to Rancid and not familiar with Tcl, so forgive the newbieness - I'm unable to run commands in BCC on Bay routers and I think it's because of prompt issues. When you first log in to a Bay router, you're in TI instead of BCC. The prompt is [1:TN]$. I can get Rancid to recognize this by doing 'set prompt "TN"' in blogin. Rancid then executes the 'bcc' command to get into BCC. BCC uses a totally different prompt, however (bcc>), and I'm wondering how to get Rancid to "switch" to that prompt so that commands can be run in BCC. I've tried stuff like 'set prompt "TN|bcc"' or 'set prompt (TN|bcc)' all to no avail. If anyone has any ideas I'd appreciate hearing them. Thanks, James __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com From owner-rancid-discuss-outgoing@shrubbery.net Thu Sep 4 18:37:33 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 h84IbWx06444 for ; Thu, 4 Sep 2003 18:37:32 GMT Received: by guelah.shrubbery.net (Postfix) id 5EB8517D330; Thu, 4 Sep 2003 18:37:32 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 3A64D17D332; Thu, 4 Sep 2003 18:37:32 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from mail0.lsil.com (mail0.lsil.com [147.145.40.20]) by guelah.shrubbery.net (Postfix) with ESMTP id 7931517D330 for ; Thu, 4 Sep 2003 18:37:30 +0000 (UTC) Received: from mhbs.lsil.com (mhbs.lsil.com [147.145.31.100]) by mail0.lsil.com (8.12.8/8.12.8) with ESMTP id h84IPDrt024809 for ; Thu, 4 Sep 2003 11:35:28 -0700 (PDT) Received: from vpmail.lsil.com by mhbs.lsil.com with ESMTP for rancid-discuss@shrubbery.net; Thu, 4 Sep 2003 11:37:00 -0700 Received: from elysium.lsil.com (elysium.lsil.com [147.145.105.145]) by vpmail.lsil.com (8.11.6+Sun/8.11.6) with ESMTP id h84Ib0I22085 for ; Thu, 4 Sep 2003 11:37:00 -0700 (PDT) Received: (from ellen@localhost) by elysium.lsil.com (8.10.2+Sun/8.10.2) id h84Iaua23267 for rancid-discuss@shrubbery.net; Thu, 4 Sep 2003 11:36:56 -0700 (PDT) Date: Thu, 4 Sep 2003 11:36:56 -0700 From: "Ellen M. Woods" To: rancid-discuss@shrubbery.net Subject: HP Procurve 4000 and 2400 Message-Id: <20030904113656.I22895@elysium.lsil.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1us Note: Eternal SJ Lasers Fan(atic) Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hi, Is there any way to get a command line interface when logging into the HP Procurve 4000 and 2400? I can only get to the menu interface and then to the CLI from there, so rancid is failing. I looked through the manuals and didn't see where that could be done, but was hoping it could. Thanks, Ellen -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _____ Ellen M. Woods Network Administrator LSI|LOGIC| ellen@lsil.com LSI Logic - GES LAN Support | | |_____| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From owner-rancid-discuss-outgoing@shrubbery.net Thu Sep 4 18:52:40 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 h84Iqex08272 for ; Thu, 4 Sep 2003 18:52:40 GMT Received: by guelah.shrubbery.net (Postfix) id 85F9017D332; Thu, 4 Sep 2003 18:52:40 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 65A8F17D334; Thu, 4 Sep 2003 18:52:40 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id BF40017D333; Thu, 4 Sep 2003 18:52:39 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from bug.uits.indiana.edu (bug.uits.indiana.edu [129.79.17.137]) by guelah.shrubbery.net (Postfix) with ESMTP id 9760F17D332 for ; Thu, 4 Sep 2003 18:41:03 +0000 (UTC) Received: (from mpd@localhost) by bug.uits.indiana.edu (8.12.9/8.12.7) id h84If1P3011353; Thu, 4 Sep 2003 13:41:01 -0500 (EST) Date: Thu, 4 Sep 2003 13:41:01 -0500 From: Matthew Davy To: "Ellen M. Woods" Cc: rancid-discuss@shrubbery.net Subject: Re: HP Procurve 4000 and 2400 Message-ID: <20030904134100.C10967@indiana.edu> References: <20030904113656.I22895@elysium.lsil.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030904113656.I22895@elysium.lsil.com>; from ellen@lsil.com on Thu, Sep 04, 2003 at 11:36:56AM -0700 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk I don't think you can get to the command line directly. You have to first go to the menu interface and select "Diagnostics" then "Command Prompt". - Matt -- Matthew Davy Chief Network Engineer, Indiana University University Information Technology Services / Abilene Network Operations Center 2711 East 10th Street, Bloomington IN, 47403 mpd@iu.edu / 812.855.7728 PGP key fingerprint: A84D DFB6 9DD5 BEB4 1EF7 D713 956F F85C 6422 CBEB On Thu, Sep 04, 2003 at 11:36:56AM -0700, Ellen M. Woods wrote: > Hi, > > Is there any way to get a command line interface when logging > into the HP Procurve 4000 and 2400? I can only get to the menu > interface and then to the CLI from there, so rancid is failing. > > I looked through the manuals and didn't see where that could > be done, but was hoping it could. > > Thanks, > > Ellen > > > -- > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > _____ > Ellen M. Woods Network Administrator LSI|LOGIC| > ellen@lsil.com LSI Logic - GES LAN Support | | > |_____| > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > From owner-rancid-discuss-outgoing@shrubbery.net Thu Sep 4 19:07:29 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 h84J7Tx08814 for ; Thu, 4 Sep 2003 19:07:29 GMT Received: by guelah.shrubbery.net (Postfix) id B0D9217D329; Thu, 4 Sep 2003 19:07:29 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 90A2817D32E; Thu, 4 Sep 2003 19:07:29 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 2F40217D32A; Thu, 4 Sep 2003 19:07:28 +0000 (UTC) Date: Thu, 4 Sep 2003 12:07:28 -0700 From: john heasley To: Matthew Davy Cc: "Ellen M. Woods" , rancid-discuss@shrubbery.net Subject: Re: HP Procurve 4000 and 2400 Message-ID: <20030904190728.GC9683@shrubbery.net> References: <20030904113656.I22895@elysium.lsil.com> <20030904134100.C10967@indiana.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030904134100.C10967@indiana.edu> 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 All I have is a 2524. perhaps these have a 'no menu' or 'default cmd-line' like-command in the vty or global config sections. OR, maybe there is a radius or tacacs AV that will set the default for a given login. Thu, Sep 04, 2003 at 01:41:01PM -0500, Matthew Davy: > I don't think you can get to the command line directly. You have to first > go to the menu interface and select "Diagnostics" then "Command Prompt". > > - Matt > > -- > Matthew Davy > Chief Network Engineer, Indiana University > University Information Technology Services / Abilene Network Operations Center > 2711 East 10th Street, Bloomington IN, 47403 > mpd@iu.edu / 812.855.7728 > PGP key fingerprint: A84D DFB6 9DD5 BEB4 1EF7 D713 956F F85C 6422 CBEB > > On Thu, Sep 04, 2003 at 11:36:56AM -0700, Ellen M. Woods wrote: > > Hi, > > > > Is there any way to get a command line interface when logging > > into the HP Procurve 4000 and 2400? I can only get to the menu > > interface and then to the CLI from there, so rancid is failing. > > > > I looked through the manuals and didn't see where that could > > be done, but was hoping it could. > > > > Thanks, > > > > Ellen > > > > > > -- > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > _____ > > Ellen M. Woods Network Administrator LSI|LOGIC| > > ellen@lsil.com LSI Logic - GES LAN Support | | > > |_____| > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > From owner-rancid-discuss-outgoing@shrubbery.net Thu Sep 4 22:05:23 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 h84M5Nx19793 for ; Thu, 4 Sep 2003 22:05:23 GMT Received: by guelah.shrubbery.net (Postfix) id 8A6E817D329; Thu, 4 Sep 2003 22:05:22 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 6C54A17D32E; Thu, 4 Sep 2003 22:05:22 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from thanatos.is.co.za (thanatos.is.co.za [196.4.160.229]) by guelah.shrubbery.net (Postfix) with ESMTP id AE1FB17D329 for ; Thu, 4 Sep 2003 22:05:20 +0000 (UTC) Received: from hermwas.is.co.za (hermwas.is.co.za [196.23.0.8]) by thanatos.is.co.za (Postfix) with ESMTP id 7091A9BF73 for ; Fri, 5 Sep 2003 00:05:14 +0200 (SAST) Received: by hermwas.is.co.za (Postfix, from userid 1071) id 4E89830AE7; Fri, 5 Sep 2003 00:05:14 +0200 (SAT) Date: Fri, 5 Sep 2003 00:05:14 +0200 From: Andre van der Merwe To: rancid-discuss@shrubbery.net Subject: AS5300 Message-ID: <20030905000513.D6565@is.co.za> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="wULyF7TL5taEdwHz" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk --wULyF7TL5taEdwHz Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi I noticed that the RANCID parser does not pick up the AS5300 "slots". Are there any plans to include it in the "next" RANCID version or should we look to adding it ? -Andr=E9 --wULyF7TL5taEdwHz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (SunOS) iD8DBQE/V7cYFgX7ot4NQaMRArRbAJ9H04GrVU8kKxJuVHPct3if/CAA+wCfTNXL 8othdoypjtalrbRwGOROuFw= =Armb -----END PGP SIGNATURE----- --wULyF7TL5taEdwHz-- From owner-rancid-discuss-outgoing@shrubbery.net Thu Sep 4 22:08:49 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 h84M8nx19801 for ; Thu, 4 Sep 2003 22:08:49 GMT Received: by guelah.shrubbery.net (Postfix) id C000217D32E; Thu, 4 Sep 2003 22:08:48 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id A3BA317D330; Thu, 4 Sep 2003 22:08:48 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id B983917D32F; Thu, 4 Sep 2003 22:08:47 +0000 (UTC) Date: Thu, 4 Sep 2003 15:08:47 -0700 From: john heasley To: Andre van der Merwe Cc: rancid-discuss@shrubbery.net Subject: Re: AS5300 Message-ID: <20030904220847.GH9683@shrubbery.net> References: <20030905000513.D6565@is.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030905000513.D6565@is.co.za> 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, Sep 05, 2003 at 12:05:14AM +0200, Andre van der Merwe: > Hi > > I noticed that the RANCID parser does not pick up the AS5300 > "slots". Are there any plans to include it in the "next" RANCID > version or should we look to adding it ? > > -Andr? I have none of these; it would be a welcome contribution. From owner-rancid-discuss-outgoing@shrubbery.net Fri Sep 5 13:37:38 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 h85Dbcx17652 for ; Fri, 5 Sep 2003 13:37:38 GMT Received: by guelah.shrubbery.net (Postfix) id CD22417D32E; Fri, 5 Sep 2003 13:37:37 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id ABDAD17D330; Fri, 5 Sep 2003 13:37:37 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from atlantech.net (staq1.atlantech.net [209.190.212.6]) by guelah.shrubbery.net (Postfix) with ESMTP id D85AF17D32E for ; Fri, 5 Sep 2003 13:37:35 +0000 (UTC) Received: from [207.188.223.197] (HELO staq7.hq.atlantech.net) by atlantech.net (CommuniGate Pro SMTP 4.0.6) with ESMTP id 53604580 for rancid-discuss@shrubbery.net; Fri, 05 Sep 2003 09:37:34 -0400 content-class: urn:content-classes:message Subject: Livingston Portmaster MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Date: Fri, 5 Sep 2003 09:37:34 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Message-ID: <4CBD2D346320D541AB8BF4C0140EF7CD40D8BD@staq7.hq.atlantech.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Livingston Portmaster Thread-Index: AcNzst0sihQ/GZpdTFKNKYOIqQJQzQ== From: "Eric Van Tol" To: Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by ni.shrubbery.net id h85Dbcx17652 Hello all, Does anyone happen to have a rancid script for getting information/configs from Livingston Portmasters? I'm surprised that there is not one already in the default distribution. thanks, eric From owner-rancid-discuss-outgoing@shrubbery.net Sat Sep 6 02:05:46 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 h8625kx04181 for ; Sat, 6 Sep 2003 02:05:46 GMT Received: by guelah.shrubbery.net (Postfix) id 22A5117D329; Sat, 6 Sep 2003 02:05:46 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 0285517D32E; Sat, 6 Sep 2003 02:05:45 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from biola.edu (mail.biola.edu [64.208.12.25]) by guelah.shrubbery.net (Postfix) with ESMTP id EB9CB17D329 for ; Sat, 6 Sep 2003 02:05:44 +0000 (UTC) Received: from bubbs-gw.biola.edu ([10.7.1.9] verified) by biola.edu (CommuniGate Pro SMTP 4.0.3) with ESMTP id 24857934 for rancid-discuss@shrubbery.net; Fri, 05 Sep 2003 19:07:30 -0700 Message-id: Date: Fri, 05 Sep 2003 19:05:20 -0700 Subject: login fails on Cisco Pix 512e To: rancid-discuss@shrubbery.net From: "Mark Duling" MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hello, I was using RANCID with our older pix but since swapping in a new pix firewall the login fails. I did clogin and it appears that carriage returns are being sent to the pix when I don't touch the keyboard. Three returns and then it fails of course. Has anyone experienced this? clogin seems to have a problem with the new pix. It is using version 6.3(1) of the pix software. Mark From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 9 07:05:13 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 h8975Dx14337 for ; Tue, 9 Sep 2003 07:05:13 GMT Received: by guelah.shrubbery.net (Postfix) id E197817D32A; Tue, 9 Sep 2003 07:05:12 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id C348117D32F; Tue, 9 Sep 2003 07:05:12 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from hotmail.com (law12-f122.law12.hotmail.com [64.4.19.122]) by guelah.shrubbery.net (Postfix) with ESMTP id A6AA017D32A for ; Tue, 9 Sep 2003 07:05:11 +0000 (UTC) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 9 Sep 2003 00:05:10 -0700 Received: from 130.102.128.60 by lw12fd.law12.hotmail.msn.com with HTTP; Tue, 09 Sep 2003 07:05:10 GMT X-Originating-IP: [130.102.128.60] X-Originating-Email: [chrisjohns_cisco@hotmail.com] From: "Chris Johns" To: rancid-discuss@shrubbery.net Subject: rancid clogin freezes after login Date: Tue, 09 Sep 2003 07:05:10 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 09 Sep 2003 07:05:10.0785 (UTC) FILETIME=[B5775F10:01C376A0] Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk hello folks, Sorry for the "i'm new to rancid question ... but"; I've just installed rancid and it works fine for some routers, ie. clogin works fine, grabs the routers config and mails me any diffs, the problem is this is only working for some routers. Currently for the routers that rancid isn't working on, it stops after rancid logs into the router, below is a clogin to the router, it appears to login to the router but then freezes, I can't type anything, CR doesn't work, I can either break out with a ctrl-c or wait for a timeout error; vertigo:~$ clogin -c 'show version' 192.168.152.1 192.168.152.1 spawn telnet 192.168.152.1 Trying 192.168.152.1... Connected to 192.168.152.1. Escape character is '^]'. ************************************************************** * Unauthorized access to this device or the attached * * networks is prohibited without express written permission. * * Violators will be prosecuted to the fullest extent of both * * civil and criminal law. * * Use of the system may be logged or monitored without * * further notice. * ************************************************************** User Access Verification Username: Kerberos: No default realm defined for Kerberos! resman Password: DC01-hga# Error: TIMEOUT reached vertigo:~$ My .cloginrc file is a follows; add password 192.168.152.1 vtypass enablepass add user 192.168.152.1 radius-user-name add userpassword 192.168.152.1 radius-password If I run the exact same command as above on another cisco 6500 (nativeIOS); vertigo:~$ clogin -c 'show version' 192.168.152.7 192.168.152.7 spawn telnet 192.168.152.7 Trying 192.168.152.7... Connected to 192.168.152.7. Escape character is '^]'. ************************************************************** * Unauthorized access to this device or the attached * * networks is prohibited without express written permission. * * Violators will be prosecuted to the fullest extent of both * * civil and criminal law. * * Use of the system may be logged or monitored without * * further notice. * ************************************************************** User Access Verification Username: Kerberos: No default realm defined for Kerberos! resman Password: test-box>enable Password: test-box# test-box#term length 0 test-box#show version Cisco Internetwork Operating System Software IOS (tm) c6sup1_rp Software (c6sup1_rp-JK2S-M), Version 12.1(13)E7, EARLY DEPLOYMENT RELEASE ... ... Configuration register is 0x2102 test-box#exit Connection closed by foreign host. vertigo:~$ RANCID is running on FreeBSD and trying to login into either 6500 (all nativeIOS) and 3600's at the moment thanks Chris _________________________________________________________________ Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage. http://join.msn.com/?PAGE=features/es From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 9 15:17:19 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 h89FHJx14321 for ; Tue, 9 Sep 2003 15:17:19 GMT Received: by guelah.shrubbery.net (Postfix) id B3EAB17D32F; Tue, 9 Sep 2003 15:17:18 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 909FC17D331; Tue, 9 Sep 2003 15:17:18 +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 A141D17D32F for ; Tue, 9 Sep 2003 15:17:16 +0000 (UTC) Received: from tower.partan.com (localhost.partan.com [127.0.0.1]) by tower.partan.com (8.12.6p2/8.12.6) with ESMTP id h89FH7si059462; Tue, 9 Sep 2003 11:17:07 -0400 (EDT) (envelope-from asp@tower.partan.com) Received: (from asp@localhost) by tower.partan.com (8.12.6p2/8.12.6/Submit) id h89FH788059459; Tue, 9 Sep 2003 11:17:07 -0400 (EDT) (envelope-from asp) Date: Tue, 9 Sep 2003 11:17:07 -0400 From: Andrew Partan To: Chris Johns Cc: rancid-discuss@shrubbery.net Subject: Re: rancid clogin freezes after login Message-ID: <20030909151707.GA59436@partan.com> References: 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 Tue, Sep 09, 2003 at 07:05:10AM +0000, Chris Johns wrote: > DC01-hga# You are already enabled here. > My .cloginrc file is a follows; > add password 192.168.152.1 vtypass enablepass > add user 192.168.152.1 radius-user-name > add userpassword 192.168.152.1 radius-password You need to add add autoenable 192.168.152.1 1 and then all should work. --asp From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 9 16:32:42 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 h89GWfx18636 for ; Tue, 9 Sep 2003 16:32:41 GMT Received: by guelah.shrubbery.net (Postfix) id 9054F17D32A; Tue, 9 Sep 2003 16:32:41 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 6A35C17D32F; Tue, 9 Sep 2003 16:32:41 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from stravinsky.khaoz.org (stravinsky.khaoz.org [208.184.38.99]) by guelah.shrubbery.net (Postfix) with ESMTP id DD4B617D32A for ; Tue, 9 Sep 2003 16:32:39 +0000 (UTC) Received: from stravinsky.khaoz.org (localhost.khaoz.org [IPv6:::1]) by stravinsky.khaoz.org (8.12.9/8.12.9) with ESMTP id h89GWxY7004749 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 9 Sep 2003 12:32:38 -0401 (EDT) Received: (from odemirmen@localhost) by stravinsky.khaoz.org (8.12.9/8.12.9/Submit) id h89GWxgT004262 for rancid-discuss@shrubbery.net; Tue, 9 Sep 2003 12:32:37 -0400 (EDT) Date: Tue, 9 Sep 2003 12:32:37 -0400 From: Okan Demirmen To: rancid-discuss@shrubbery.net Subject: idea Message-ID: <20030909163259.GN8168@stravinsky.khaoz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GPG-Fingerprint: 226D B4AE 78A9 7F4E CD2B 1B44 C281 AF18 B367 0934 User-Agent: Mutt/1.5.4i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk i've somewhat looked through the archives to find this question, but haven't found one yet - point me there if this has been asked before. i was wondering if anyone thought of splitting up $BASEDIR. the reason i ask is because i would like to throw bin/* into LOCALBASE/bin/* and util/* into LOCALBASE/share/rancid/* where LOCALBASE is whatever you wish (/opt /opt/local /usr/local ...). then move logs/ into another location, ie /var/ and toss bin/env into /etc/. (cvs is easy to move with CVSROOT) all this is fairly easy to do for most everything is shell or perl, but i was wondering if the group/list was interested in patches to see this happen. thanks, okan -- Okan Demirmen < okan at demirmen dot com > PGP Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xB3670934 Key FP: <0xB3670934> 226D B4AE 78A9 7F4E CD2B 1B44 C281 AF18 B367 0934 -- From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 9 18:29:19 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 h89ITJx26296 for ; Tue, 9 Sep 2003 18:29:19 GMT Received: by guelah.shrubbery.net (Postfix) id 0AA3E17D32F; Tue, 9 Sep 2003 18:29:19 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id E281317D331; Tue, 9 Sep 2003 18:29:18 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id D70CE17D330; Tue, 9 Sep 2003 18:29:17 +0000 (UTC) Date: Tue, 9 Sep 2003 11:29:17 -0700 From: john heasley To: Okan Demirmen Cc: rancid-discuss@shrubbery.net Subject: Re: idea Message-ID: <20030909182917.GL21446@shrubbery.net> References: <20030909163259.GN8168@stravinsky.khaoz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030909163259.GN8168@stravinsky.khaoz.org> User-Agent: Mutt/1.4i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Tue, Sep 09, 2003 at 12:32:37PM -0400, Okan Demirmen: > i've somewhat looked through the archives to find this question, but > haven't found one yet - point me there if this has been asked before. > > i was wondering if anyone thought of splitting up $BASEDIR. the > reason i ask is because i would like to throw bin/* into LOCALBASE/bin/* > and util/* into LOCALBASE/share/rancid/* where LOCALBASE is whatever > you wish (/opt /opt/local /usr/local ...). then move logs/ into > another location, ie /var/ and toss bin/env into > /etc/. (cvs is easy to move with CVSROOT) > > all this is fairly easy to do for most everything is shell or perl, but > i was wondering if the group/list was interested in patches to see > this happen. This is something that I'd like to do for the release after next; follow the autoconf placement/dir structure more closely. ie: bin/env should be etc/rancid.conf, util/* should be in share/rancid, log file directory should be configurable, and so on. From owner-rancid-discuss-outgoing@shrubbery.net Wed Sep 10 06:08:23 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 h8A68Nx18801 for ; Wed, 10 Sep 2003 06:08:23 GMT Received: by guelah.shrubbery.net (Postfix) id 85E6A17D32F; Wed, 10 Sep 2003 06:08:23 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 639B317D331; Wed, 10 Sep 2003 06:08:23 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 738E417D330; Wed, 10 Sep 2003 06:08:22 +0000 (UTC) Date: Wed, 10 Sep 2003 06:08:22 +0000 From: john heasley To: Eric Van Tol Cc: rancid-discuss@shrubbery.net Subject: Re: Livingston Portmaster Message-ID: <20030910060822.GD4603@shrubbery.net> References: <4CBD2D346320D541AB8BF4C0140EF7CD40D8BD@staq7.hq.atlantech.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CBD2D346320D541AB8BF4C0140EF7CD40D8BD@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 Fri, Sep 05, 2003 at 09:37:34AM -0400, Eric Van Tol: > Hello all, > Does anyone happen to have a rancid script for getting > information/configs from Livingston Portmasters? I'm surprised that > there is not one already in the default distribution. > > thanks, > eric I have none of these. contribitions in code ... or telnet & ssh welcome. From owner-rancid-discuss-outgoing@shrubbery.net Thu Sep 11 00:35:53 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 h8B0Zqx17240 for ; Thu, 11 Sep 2003 00:35:53 GMT Received: by guelah.shrubbery.net (Postfix) id 6868F17D330; Thu, 11 Sep 2003 00:35:52 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 467E517D332; Thu, 11 Sep 2003 00:35:52 +0000 (UTC) X-Original-To: rancid-discuss Received: by guelah.shrubbery.net (Postfix, from userid 7053) id DD15817D331; Thu, 11 Sep 2003 00:35:50 +0000 (UTC) Date: Wed, 10 Sep 2003 17:35:50 -0700 From: john heasley To: rancid-discuss@shrubbery.net Subject: Cisco forensics.log Message-ID: <20030911003550.GQ8656@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 patch for rancid 2.2.2 has been created to filter the forensics.log file which appears in recent 12.2 images. ftp://ftp.shrubbery.net/pub/rancid/rancid-2.2.2.p1 From owner-rancid-discuss-outgoing@shrubbery.net Thu Sep 11 00:38:36 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 h8B0cax17249 for ; Thu, 11 Sep 2003 00:38:36 GMT Received: by guelah.shrubbery.net (Postfix) id 48BB217D330; Thu, 11 Sep 2003 00:38:36 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 2871817D332; Thu, 11 Sep 2003 00:38:36 +0000 (UTC) X-Original-To: rancid-discuss Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 2E57C17D331; Thu, 11 Sep 2003 00:38:35 +0000 (UTC) Date: Wed, 10 Sep 2003 17:38:35 -0700 From: john heasley To: rancid-discuss@shrubbery.net Subject: rancid support for Juniper ERX Message-ID: <20030911003835.GR8656@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 If anyone is interested in trying Juniper ERX support, we're interested in feed back on the support that has just been added. ftp://ftp.shrubbery.net/outgoing/rancid-2.3.eft3.tar.gz The device type for router.db is "erx". From owner-rancid-discuss-outgoing@shrubbery.net Thu Sep 11 18:23:34 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 h8BINYx08731 for ; Thu, 11 Sep 2003 18:23:34 GMT Received: by guelah.shrubbery.net (Postfix) id 9CE7B17D32E; Thu, 11 Sep 2003 18:23:33 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 7C99017D330; Thu, 11 Sep 2003 18:23:33 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 496E117D32F; Thu, 11 Sep 2003 18:23:32 +0000 (UTC) Date: Thu, 11 Sep 2003 11:23:32 -0700 From: john heasley To: James Kilton Cc: rancid-discuss@shrubbery.net Subject: Re: Prompt issues on Bay routers. Message-ID: <20030911182332.GZ8656@shrubbery.net> References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030903192841.49221.qmail@web11703.mail.yahoo.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, Sep 03, 2003 at 12:28:41PM -0700, James Kilton: > Hi, > > I'm new to Rancid and not familiar with Tcl, so forgive the newbieness - > > I'm unable to run commands in BCC on Bay routers and I think it's because of prompt issues. When > you first log in to a Bay router, you're in TI instead of BCC. The prompt is [1:TN]$. I can get > Rancid to recognize this by doing 'set prompt "TN"' in blogin. Rancid then executes the 'bcc' > command to get into BCC. BCC uses a totally different prompt, however (bcc>), and I'm wondering > how to get Rancid to "switch" to that prompt so that commands can be run in BCC. I've tried stuff > like 'set prompt "TN|bcc"' or 'set prompt (TN|bcc)' all to no avail. > > If anyone has any ideas I'd appreciate hearing them. I think that someone explained this to me before, but I must have purged it. blogin has a comment which reads: # Unlike the Cisco's, there is no enable function on the Bay's. # Instead there are seperate User and Manager accounts. A 'system' command # exists, which i am told does nothing. so, what is bcc? for that matter, what is "TI"? is the prompt configurable? an example of non-privileged and privileged logins (and perhaps a few random commands) performed manually from the bay/nortel would be helpful. From owner-rancid-discuss-outgoing@shrubbery.net Fri Sep 12 13:04:32 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 h8CD4Wx10319 for ; Fri, 12 Sep 2003 13:04:32 GMT Received: by guelah.shrubbery.net (Postfix) id 9333917D330; Fri, 12 Sep 2003 13:04:31 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 6B0B417D332; Fri, 12 Sep 2003 13:04:31 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from localhost (stmp.specifiertools.com [205.219.204.80]) by guelah.shrubbery.net (Postfix) with ESMTP id C886A17D330; Fri, 12 Sep 2003 13:04:29 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 4E156BDFAA; Fri, 12 Sep 2003 07:58:17 -0500 (CDT) From: stefmit To: john heasley Subject: Re: Prompt issues on Bay routers. Date: Fri, 12 Sep 2003 07:58:16 -0500 User-Agent: KMail/1.5.3 References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <20030911182332.GZ8656@shrubbery.net> In-Reply-To: <20030911182332.GZ8656@shrubbery.net> Cc: rancid-discuss@shrubbery.net MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309120758.16320.stefmit@comcast.net> Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk I have raised this issue before, but I had never dared to go any further, knowing how hard it is for someone to create a program, then having to deal with all possible questions and issues raised by everyone, about every flavor of equipment that could possibly exist ... I have made myself some changes to the script, but have failed to properly login all the way into the "bcc". I will thus take advantage right now of this kind and direct offer from John, to help in resolving the Bays, and prodiving him with the info: TI = technician interface - a rudimentary management interface into the Bay/Nortel routers, with some (limited) capabilities. Unlike a regular CLI (command line interface), the TI has some scripting capabilities BCC = Bay Command Console - next level into the "guts" of the router. This has two modes: command mode and configuration mode. NOTE: before showing you a simple login session through all layers, I feel we need to specify something here: the majority of items to be set on Bay routers are reachable only via their corresponding MIB entity names/numbers, which is a PITA!!! And now a session - consisting in login to the TI (first level), then issuing the bcc command (second level, and first of the bcc, the command mode), then typing config (this is probably the equivalent of enable in cisco - second level for bcc) [scm@Crypto]$ telnet x.y.z.w Trying x.y.w.z... Connected to bcn (x.y.w.z). Escape character is '^]'. Bay Networks, Inc. and its Licensors. Copyright 1992,1993,1994,1995,1996,1997,1998,1999. All rights reserved. Login: Manager Password: [hidden] Mounting new volume... Device label: Directory: 1: New Present Working Directory: 1: Welcome to the Backbone Technician Interface [us-head-bcn]$bcc Welcome to the Bay Command Console! * To enter configuration mode, type config * To list all system commands, type ? * To exit the BCC, type exit bcc> config Reading configuration information, please wait . . . done. box# ... that's all that is to it. Thank you, John! Stef On Thursday 11 September 2003 01:23 pm, john heasley wrote: > Wed, Sep 03, 2003 at 12:28:41PM -0700, James Kilton: > > Hi, > > > > I'm new to Rancid and not familiar with Tcl, so forgive the newbieness - > > > > I'm unable to run commands in BCC on Bay routers and I think it's because > > of prompt issues. When you first log in to a Bay router, you're in TI > > instead of BCC. The prompt is [1:TN]$. I can get Rancid to recognize > > this by doing 'set prompt "TN"' in blogin. Rancid then executes the > > 'bcc' command to get into BCC. BCC uses a totally different prompt, > > however (bcc>), and I'm wondering how to get Rancid to "switch" to that > > prompt so that commands can be run in BCC. I've tried stuff like 'set > > prompt "TN|bcc"' or 'set prompt (TN|bcc)' all to no avail. > > > > If anyone has any ideas I'd appreciate hearing them. > > I think that someone explained this to me before, but I must have purged > it. blogin has a comment which reads: > > # Unlike the Cisco's, there is no enable function on the Bay's. > # Instead there are seperate User and Manager accounts. A 'system' command > # exists, which i am told does nothing. > > so, what is bcc? for that matter, what is "TI"? is the prompt > configurable? > > an example of non-privileged and privileged logins (and perhaps a few > random commands) performed manually from the bay/nortel would be helpful. From owner-rancid-discuss-outgoing@shrubbery.net Sat Sep 13 00:33:05 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 h8D0X4x10435 for ; Sat, 13 Sep 2003 00:33:04 GMT Received: by guelah.shrubbery.net (Postfix) id 8870A17D330; Sat, 13 Sep 2003 00:33:04 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 6827317D332; Sat, 13 Sep 2003 00:33:04 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from web11704.mail.yahoo.com (web11704.mail.yahoo.com [216.136.172.70]) by guelah.shrubbery.net (Postfix) with SMTP id DADC917D330 for ; Sat, 13 Sep 2003 00:33:02 +0000 (UTC) Message-ID: <20030913003300.8503.qmail@web11704.mail.yahoo.com> Received: from [68.49.148.23] by web11704.mail.yahoo.com via HTTP; Fri, 12 Sep 2003 17:33:00 PDT Date: Fri, 12 Sep 2003 17:33:00 -0700 (PDT) From: James Kilton Subject: Re: Prompt issues on Bay routers. To: stefmit , john heasley Cc: rancid-discuss@shrubbery.net In-Reply-To: <200309120758.16320.stefmit@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Thanks guys. I managed to fix this via some minor script hacking earlier in the week. I doubt it's pretty as I'm not a programmer (I know a bit of Perl and had never worked with TCL), and it may have the potential to cause other problems that I haven't run into yet, but as of now I can have Rancid log into bcc and do a 'show config -all' with success. I believe I ended up adding a handful of lines total to blogin and brancid, but I can't recall specifically since I tried about 100 things before I had success. I don't have access to the changes I made right this instant but I can get them to you guys if you want them. Thanks, James --- stefmit wrote: > I have raised this issue before, but I had never dared to go any further, > knowing how hard it is for someone to create a program, then having to deal > with all possible questions and issues raised by everyone, about every flavor > of equipment that could possibly exist ... I have made myself some changes to > the script, but have failed to properly login all the way into the "bcc". I > will thus take advantage right now of this kind and direct offer from John, > to help in resolving the Bays, and prodiving him with the info: > > TI = technician interface - a rudimentary management interface into the > Bay/Nortel routers, with some (limited) capabilities. Unlike a regular CLI > (command line interface), the TI has some scripting capabilities > > BCC = Bay Command Console - next level into the "guts" of the router. This has > two modes: command mode and configuration mode. > > NOTE: before showing you a simple login session through all layers, I feel we > need to specify something here: the majority of items to be set on Bay > routers are reachable only via their corresponding MIB entity names/numbers, > which is a PITA!!! > > And now a session - consisting in login to the TI (first level), then issuing > the bcc command (second level, and first of the bcc, the command mode), then > typing config (this is probably the equivalent of enable in cisco - second > level for bcc) > > [scm@Crypto]$ telnet x.y.z.w > Trying x.y.w.z... > Connected to bcn (x.y.w.z). > Escape character is '^]'. > > > Bay Networks, Inc. and its Licensors. > Copyright 1992,1993,1994,1995,1996,1997,1998,1999. All rights reserved. > > > > Login: Manager > > Password: [hidden] > > Mounting new volume... > Device label: > Directory: 1: > New Present Working Directory: 1: > > > Welcome to the Backbone Technician Interface > > > [us-head-bcn]$bcc > > Welcome to the Bay Command Console! > > * To enter configuration mode, type config > > * To list all system commands, type ? > > * To exit the BCC, type exit > > bcc> config > > Reading configuration information, please wait . . . done. > > box# > > ... that's all that is to it. > > Thank you, John! > > Stef > > On Thursday 11 September 2003 01:23 pm, john heasley wrote: > > Wed, Sep 03, 2003 at 12:28:41PM -0700, James Kilton: > > > Hi, > > > > > > I'm new to Rancid and not familiar with Tcl, so forgive the newbieness - > > > > > > I'm unable to run commands in BCC on Bay routers and I think it's because > > > of prompt issues. When you first log in to a Bay router, you're in TI > > > instead of BCC. The prompt is [1:TN]$. I can get Rancid to recognize > > > this by doing 'set prompt "TN"' in blogin. Rancid then executes the > > > 'bcc' command to get into BCC. BCC uses a totally different prompt, > > > however (bcc>), and I'm wondering how to get Rancid to "switch" to that > > > prompt so that commands can be run in BCC. I've tried stuff like 'set > > > prompt "TN|bcc"' or 'set prompt (TN|bcc)' all to no avail. > > > > > > If anyone has any ideas I'd appreciate hearing them. > > > > I think that someone explained this to me before, but I must have purged > > it. blogin has a comment which reads: > > > > # Unlike the Cisco's, there is no enable function on the Bay's. > > # Instead there are seperate User and Manager accounts. A 'system' command > > # exists, which i am told does nothing. > > > > so, what is bcc? for that matter, what is "TI"? is the prompt > > configurable? > > > > an example of non-privileged and privileged logins (and perhaps a few > > random commands) performed manually from the bay/nortel would be helpful. > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com From owner-rancid-discuss-outgoing@shrubbery.net Sat Sep 13 07:42:36 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 h8D7gax18335 for ; Sat, 13 Sep 2003 07:42:36 GMT Received: by guelah.shrubbery.net (Postfix) id 6901B17D330; Sat, 13 Sep 2003 07:42:36 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 46AFE17D332; Sat, 13 Sep 2003 07:42:36 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from mta05-svc.ntlworld.com (mta05-svc.ntlworld.com [62.253.162.45]) by guelah.shrubbery.net (Postfix) with ESMTP id E428517D330; Sat, 13 Sep 2003 07:42:33 +0000 (UTC) Received: from blueyonder.co.uk ([80.6.200.56]) by mta05-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20030913074231.MAJS10571.mta05-svc.ntlworld.com@blueyonder.co.uk>; Sat, 13 Sep 2003 08:42:31 +0100 Message-ID: <3F62CAA5.6040908@blueyonder.co.uk> Date: Sat, 13 Sep 2003 08:43:33 +0100 From: Mark Cooper User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5b) Gecko/20030830 X-Accept-Language: en, en-us MIME-Version: 1.0 To: rancid-discuss@shrubbery.net Cc: James Kilton , john heasley Subject: Re: Prompt issues on Bay routers. References: <20030913003300.8503.qmail@web11704.mail.yahoo.com> In-Reply-To: <20030913003300.8503.qmail@web11704.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk >>Wed, Sep 03, 2003 at 12:28:41PM -0700, James Kilton: >>>this by doing 'set prompt "TN"' in blogin. Rancid then executes the >>>'bcc' command to get into BCC. BCC uses a totally different prompt, >>>however (bcc>), and I'm wondering how to get Rancid to "switch" to You shouldn't need to use set prompt as it should automatically recognize the prompt when you login. If it doesn't then you its probably down to the prompt or a banner having some 'invalid' characters in it. > On Thursday 11 September 2003 01:23 pm, john heasley wrote: > >> >>I think that someone explained this to me before, but I must have purged >>it. blogin has a comment which reads: >> >># Unlike the Cisco's, there is no enable function on the Bay's. >># Instead there are seperate User and Manager accounts. A 'system' command >># exists, which i am told does nothing. That comment still stands and I think stefmit has posted a good example of a normal login. stefmit wrote: > And now a session - consisting in login to the TI (first level), then issuing > the bcc command (second level, and first of the bcc, the command mode), then > typing config (this is probably the equivalent of enable in cisco - second > level for bcc) This is a normal login session which blogin and brancid should handle fine. Unfortunately I no longer work for the company that used the bay kit so I carnt test it right at the moment. James Kilton wrote: > Thanks guys. > > I managed to fix this via some minor script hacking earlier in the >week. I doubt it's pretty as I would certainly be interested to know what you changed :) -- Mark Cooper http://netmangler.sourceforge.net - Network Management with Attitude http://pvrhw.goldfish.org - Open Source PVR Hardware Database From owner-rancid-discuss-outgoing@shrubbery.net Sat Sep 13 16:32:22 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 h8DGWLx28787 for ; Sat, 13 Sep 2003 16:32:21 GMT Received: by guelah.shrubbery.net (Postfix) id 2A26117D330; Sat, 13 Sep 2003 16:32:21 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 0853217D332; Sat, 13 Sep 2003 16:32:20 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from localhost (12-211-188-140.client.attbi.com [12.211.188.140]) by guelah.shrubbery.net (Postfix) with ESMTP id 460C517D330 for ; Sat, 13 Sep 2003 16:32:19 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 7CAE0BDFA9 for ; Sat, 13 Sep 2003 11:26:18 -0500 (CDT) From: stefmit To: rancid-discuss@shrubbery.net Subject: Re: Prompt issues on Bay routers. Date: Sat, 13 Sep 2003 11:26:16 -0500 User-Agent: KMail/1.5.3 References: <20030913003300.8503.qmail@web11704.mail.yahoo.com> <3F62CAA5.6040908@blueyonder.co.uk> In-Reply-To: <3F62CAA5.6040908@blueyonder.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309131126.17052.stefmit@comcast.net> Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On Saturday 13 September 2003 02:43 am, Mark Cooper wrote: > stefmit wrote: > > > > > And now a session - consisting in login to the TI (first level), then > > issuing > > > the bcc command (second level, and first of the bcc, the command > > mode), then > > > typing config (this is probably the equivalent of enable in cisco - > > second > > > level for bcc) > > > > This is a normal login session which blogin and brancid should handle > fine. It definitely does not. Even minor changes to get the first level (TI) were needed, compared to the original. I never pursued it any further, as - somehow - I couldn't log out of routers after, logging in using the modified blogin ... > James Kilton wrote: > > Thanks guys. > > > > I managed to fix this via some minor script hacking earlier in the > >week. I doubt it's pretty as > > I would certainly be interested to know what you changed :) Me too. TIA. Stef From owner-rancid-discuss-outgoing@shrubbery.net Mon Sep 15 22:52:26 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 h8FMqQS00616 for ; Mon, 15 Sep 2003 22:52:26 GMT Received: by guelah.shrubbery.net (Postfix) id B02BC17D32E; Mon, 15 Sep 2003 22:52:25 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 8EA2E17D330; Mon, 15 Sep 2003 22:52:25 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 2B2CC17D32F; Mon, 15 Sep 2003 22:52:24 +0000 (UTC) Date: Mon, 15 Sep 2003 15:52:24 -0700 From: john heasley To: stefmit Cc: john heasley , rancid-discuss@shrubbery.net Subject: Re: Prompt issues on Bay routers. Message-ID: <20030915225223.GS16671@shrubbery.net> References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <20030911182332.GZ8656@shrubbery.net> <200309120758.16320.stefmit@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200309120758.16320.stefmit@comcast.net> User-Agent: Mutt/1.4i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Fri, Sep 12, 2003 at 07:58:16AM -0500, stefmit: > I have raised this issue before, but I had never dared to go any further, > knowing how hard it is for someone to create a program, then having to deal > with all possible questions and issues raised by everyone, about every flavor > of equipment that could possibly exist ... I have made myself some changes to > the script, but have failed to properly login all the way into the "bcc". I > will thus take advantage right now of this kind and direct offer from John, > to help in resolving the Bays, and prodiving him with the info: > > TI = technician interface - a rudimentary management interface into the > Bay/Nortel routers, with some (limited) capabilities. Unlike a regular CLI > (command line interface), the TI has some scripting capabilities > > BCC = Bay Command Console - next level into the "guts" of the router. This has > two modes: command mode and configuration mode. > > NOTE: before showing you a simple login session through all layers, I feel we > need to specify something here: the majority of items to be set on Bay > routers are reachable only via their corresponding MIB entity names/numbers, > which is a PITA!!! > > And now a session - consisting in login to the TI (first level), then issuing > the bcc command (second level, and first of the bcc, the command mode), then > typing config (this is probably the equivalent of enable in cisco - second > level for bcc) > > [scm@Crypto]$ telnet x.y.z.w > Trying x.y.w.z... > Connected to bcn (x.y.w.z). > Escape character is '^]'. > > > Bay Networks, Inc. and its Licensors. > Copyright 1992,1993,1994,1995,1996,1997,1998,1999. All rights reserved. > > > > Login: Manager > > Password: [hidden] > > Mounting new volume... > Device label: > Directory: 1: > New Present Working Directory: 1: > > > Welcome to the Backbone Technician Interface > > > [us-head-bcn]$bcc ^^^^^^^^^^^^^^ where did this prompt come from? ie: what does "us-head-bcn" mean? is it always within []s (square brackets)? always end with $ (dollar sign)? no prompt for a password, because it is the "manager" account. right? btw, when i say "always", I mean at that privilege level and with all bay devices capable of cmd-line...or at least those we hope to collect. > Welcome to the Bay Command Console! > > * To enter configuration mode, type config > > * To list all system commands, type ? > > * To exit the BCC, type exit > > bcc> config > > Reading configuration information, please wait . . . done. > > box# the prompt is "box"? not us-head-bcn# or bcc#? I should have asked explicity; what does the exit from 'box#' back to your host look like? > ... that's all that is to it. > > Thank you, John! > > Stef > > On Thursday 11 September 2003 01:23 pm, john heasley wrote: > > Wed, Sep 03, 2003 at 12:28:41PM -0700, James Kilton: > > > Hi, > > > > > > I'm new to Rancid and not familiar with Tcl, so forgive the newbieness - > > > > > > I'm unable to run commands in BCC on Bay routers and I think it's because > > > of prompt issues. When you first log in to a Bay router, you're in TI > > > instead of BCC. The prompt is [1:TN]$. I can get Rancid to recognize > > > this by doing 'set prompt "TN"' in blogin. Rancid then executes the > > > 'bcc' command to get into BCC. BCC uses a totally different prompt, > > > however (bcc>), and I'm wondering how to get Rancid to "switch" to that > > > prompt so that commands can be run in BCC. I've tried stuff like 'set > > > prompt "TN|bcc"' or 'set prompt (TN|bcc)' all to no avail. > > > > > > If anyone has any ideas I'd appreciate hearing them. > > > > I think that someone explained this to me before, but I must have purged > > it. blogin has a comment which reads: > > > > # Unlike the Cisco's, there is no enable function on the Bay's. > > # Instead there are seperate User and Manager accounts. A 'system' command > > # exists, which i am told does nothing. > > > > so, what is bcc? for that matter, what is "TI"? is the prompt > > configurable? > > > > an example of non-privileged and privileged logins (and perhaps a few > > random commands) performed manually from the bay/nortel would be helpful. From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 16 00:01:44 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 h8G01fS01965 for ; Tue, 16 Sep 2003 00:01:41 GMT Received: by guelah.shrubbery.net (Postfix) id 97D8B17D332; Tue, 16 Sep 2003 00:01:41 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 778E717D334; Tue, 16 Sep 2003 00:01:41 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from localhost (12-211-188-140.client.attbi.com [12.211.188.140]) by guelah.shrubbery.net (Postfix) with ESMTP id 231B617D332; Tue, 16 Sep 2003 00:01:39 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 3615C18568; Mon, 15 Sep 2003 19:00:44 -0500 (CDT) From: stefmit To: john heasley Subject: Re: Prompt issues on Bay routers. Date: Mon, 15 Sep 2003 19:00:43 -0500 User-Agent: KMail/1.5.3 References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <200309120758.16320.stefmit@comcast.net> <20030915225223.GS16671@shrubbery.net> In-Reply-To: <20030915225223.GS16671@shrubbery.net> Cc: rancid-discuss@shrubbery.net MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309151900.43300.stefmit@comcast.net> Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk See comments inline: On Monday 15 September 2003 05:52 pm, you wrote: > Fri, Sep 12, 2003 at 07:58:16AM -0500, stefmit: > > I have raised this issue before, but I had never dared to go any further, > > knowing how hard it is for someone to create a program, then having to > > deal with all possible questions and issues raised by everyone, about > > every flavor of equipment that could possibly exist ... I have made > > myself some changes to the script, but have failed to properly login all > > the way into the "bcc". I will thus take advantage right now of this kind > > and direct offer from John, to help in resolving the Bays, and prodiving > > him with the info: > > > > TI = technician interface - a rudimentary management interface into the > > Bay/Nortel routers, with some (limited) capabilities. Unlike a regular > > CLI (command line interface), the TI has some scripting capabilities > > > > BCC = Bay Command Console - next level into the "guts" of the router. > > This has two modes: command mode and configuration mode. > > > > NOTE: before showing you a simple login session through all layers, I > > feel we need to specify something here: the majority of items to be set > > on Bay routers are reachable only via their corresponding MIB entity > > names/numbers, which is a PITA!!! > > > > And now a session - consisting in login to the TI (first level), then > > issuing the bcc command (second level, and first of the bcc, the command > > mode), then typing config (this is probably the equivalent of enable in > > cisco - second level for bcc) > > > > [scm@Crypto]$ telnet x.y.z.w > > Trying x.y.w.z... > > Connected to bcn (x.y.w.z). > > Escape character is '^]'. > > > > > > Bay Networks, Inc. and its Licensors. > > Copyright 1992,1993,1994,1995,1996,1997,1998,1999. All rights reserved. > > > > > > > > Login: Manager > > > > Password: [hidden] > > > > Mounting new volume... > > Device label: > > Directory: 1: > > New Present Working Directory: 1: > > > > > > Welcome to the Backbone Technician Interface > > > > > > [us-head-bcn]$bcc > > ^^^^^^^^^^^^^^ > where did this prompt come from? ie: what does "us-head-bcn" mean? > is it always within []s (square brackets)? always end with $ (dollar > sign)? I apologize - the name in between [] is the sysID associated with SNMP, that the system reads (for example we named our router us (location) - head (headquarters) - bcn (model). The important part is $ only, I think. > > no prompt for a password, because it is the "manager" account. right? Right! > > btw, when i say "always", I mean at that privilege level and with all > bay devices capable of cmd-line...or at least those we hope to collect. > > > Welcome to the Bay Command Console! > > > > * To enter configuration mode, type config > > > > * To list all system commands, type ? > > > > * To exit the BCC, type exit > > > > bcc> config > > > > Reading configuration information, please wait . . . done. > > > > box# > > the prompt is "box"? not us-head-bcn# or bcc#? Right! it is box# - but - yet again - the point here is to pay attention to the # only (I think). > > I should have asked explicity; what does the exit from 'box#' back to your > host look like? > > > ... that's all that is to it. > > > > Thank you, John! > > > > Stef In my opinion, the sequence would be: $ prompt for TI > prompt for bcc as command interface # prompt for bcc as "enable" The rest being more or less variable (for example, after getting into box#, then every "move" is similar to "enable" in Cisco, i.e. changing the string before # into whatever interface/entity is being processed. Thx, Stef From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 16 00:29:22 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 h8G0TMS02488 for ; Tue, 16 Sep 2003 00:29:22 GMT Received: by guelah.shrubbery.net (Postfix) id B334717D334; Tue, 16 Sep 2003 00:29:21 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 92B5817D337; Tue, 16 Sep 2003 00:29:21 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from localhost (12-211-188-140.client.attbi.com [12.211.188.140]) by guelah.shrubbery.net (Postfix) with ESMTP id 7FCA017D334 for ; Tue, 16 Sep 2003 00:29:20 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id C16B5BDFAA for ; Mon, 15 Sep 2003 19:23:11 -0500 (CDT) From: stefmit To: rancid-discuss@shrubbery.net Subject: Re: Prompt issues on Bay routers. Date: Mon, 15 Sep 2003 19:23:09 -0500 User-Agent: KMail/1.5.3 References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <20030915225223.GS16671@shrubbery.net> <200309151900.43300.stefmit@comcast.net> In-Reply-To: <200309151900.43300.stefmit@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309151923.10289.stefmit@comcast.net> Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Forgot to answer your last question - will let the previously recorded session do it for me: > > > Welcome to the Bay Command Console! > > > > > > * To enter configuration mode, type config > > > > > > * To list all system commands, type ? > > > > > > * To exit the BCC, type exit > > I should have asked explicity; what does the exit from 'box#' back to > > your host look like? i.e. same as the "exit" from bcc ... "exit" Thanks a lot for all your help, John! From owner-rancid-discuss-outgoing@shrubbery.net Wed Sep 17 18:39:24 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 h8HIdOS15905 for ; Wed, 17 Sep 2003 18:39:24 GMT Received: by guelah.shrubbery.net (Postfix) id E23D317D330; Wed, 17 Sep 2003 18:39:23 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id C5E9F17D332; Wed, 17 Sep 2003 18:39:23 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id A8ECB17D331; Wed, 17 Sep 2003 18:39:22 +0000 (UTC) Date: Wed, 17 Sep 2003 11:39:22 -0700 From: john heasley To: stefmit Cc: john heasley , rancid-discuss@shrubbery.net Subject: Re: Prompt issues on Bay routers. Message-ID: <20030917183922.GF6180@shrubbery.net> References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <20030915225223.GS16671@shrubbery.net> <200309151900.43300.stefmit@comcast.net> <200309151923.10289.stefmit@comcast.net> <20030903192841.49221.qmail@web11703.mail.yahoo.com> <200309120758.16320.stefmit@comcast.net> <20030915225223.GS16671@shrubbery.net> <200309151900.43300.stefmit@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200309151923.10289.stefmit@comcast.net> <200309151900.43300.stefmit@comcast.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, Sep 15, 2003 at 07:00:43PM -0500, stefmit: > See comments inline: > > On Monday 15 September 2003 05:52 pm, you wrote: > > Fri, Sep 12, 2003 at 07:58:16AM -0500, stefmit: > > > I have raised this issue before, but I had never dared to go any further, > > > knowing how hard it is for someone to create a program, then having to > > > deal with all possible questions and issues raised by everyone, about > > > every flavor of equipment that could possibly exist ... I have made > > > myself some changes to the script, but have failed to properly login all > > > the way into the "bcc". I will thus take advantage right now of this kind > > > and direct offer from John, to help in resolving the Bays, and prodiving > > > him with the info: > > > > > > TI = technician interface - a rudimentary management interface into the > > > Bay/Nortel routers, with some (limited) capabilities. Unlike a regular > > > CLI (command line interface), the TI has some scripting capabilities > > > > > > BCC = Bay Command Console - next level into the "guts" of the router. > > > This has two modes: command mode and configuration mode. > > > > > > NOTE: before showing you a simple login session through all layers, I > > > feel we need to specify something here: the majority of items to be set > > > on Bay routers are reachable only via their corresponding MIB entity > > > names/numbers, which is a PITA!!! > > > > > > And now a session - consisting in login to the TI (first level), then > > > issuing the bcc command (second level, and first of the bcc, the command > > > mode), then typing config (this is probably the equivalent of enable in > > > cisco - second level for bcc) > > > > > > [scm@Crypto]$ telnet x.y.z.w > > > Trying x.y.w.z... > > > Connected to bcn (x.y.w.z). > > > Escape character is '^]'. > > > > > > > > > Bay Networks, Inc. and its Licensors. > > > Copyright 1992,1993,1994,1995,1996,1997,1998,1999. All rights reserved. > > > > > > > > > > > > Login: Manager > > > > > > Password: [hidden] > > > > > > Mounting new volume... > > > Device label: > > > Directory: 1: > > > New Present Working Directory: 1: > > > > > > > > > Welcome to the Backbone Technician Interface > > > > > > > > > [us-head-bcn]$bcc > > > > ^^^^^^^^^^^^^^ > > where did this prompt come from? ie: what does "us-head-bcn" mean? > > is it always within []s (square brackets)? always end with $ (dollar > > sign)? > > I apologize - the name in between [] is the sysID associated with SNMP, that > the system reads (for example we named our router us (location) - head > (headquarters) - bcn (model). The important part is $ only, I think. so, this may contain spaces and puctuation? sorry, dont have the mib handy. as for '$' only, no. looking for lone characters or english phrases that can not be anchored has a tendency to match random characters appearing in the normal output. something more like ^\[[^][]+\]\$ > > > > no prompt for a password, because it is the "manager" account. right? > > Right! > > > > > btw, when i say "always", I mean at that privilege level and with all > > bay devices capable of cmd-line...or at least those we hope to collect. > > > > > Welcome to the Bay Command Console! > > > > > > * To enter configuration mode, type config > > > > > > * To list all system commands, type ? > > > > > > * To exit the BCC, type exit > > > > > > bcc> config > > > > > > Reading configuration information, please wait . . . done. > > > > > > box# > > > > the prompt is "box"? not us-head-bcn# or bcc#? > > Right! it is box# - but - yet again - the point here is to pay attention to > the # only (I think). > > > > > I should have asked explicity; what does the exit from 'box#' back to your > > host look like? > > > > > ... that's all that is to it. > > > > > > Thank you, John! > > > > > > Stef > > In my opinion, the sequence would be: > > $ prompt for TI > > prompt for bcc as command interface > # prompt for bcc as "enable" > > The rest being more or less variable (for example, after getting into box#, > then every "move" is similar to "enable" in Cisco, i.e. changing the string > before # into whatever interface/entity is being processed. > > Thx, > Stef > Forgot to answer your last question - will let the previously recorded session > do it for me: > > > > > > > Welcome to the Bay Command Console! > > > > > > > > * To enter configuration mode, type config > > > > > > > > * To list all system commands, type ? > > > > > > > > * To exit the BCC, type exit > > > > > > I should have asked explicity; what does the exit from 'box#' back to > > > your host look like? > > i.e. same as the "exit" from bcc ... "exit" so, box# exit unix_host% blogin host ... not, box# exit bcc> exit [foo]$ exit unix_host% From owner-rancid-discuss-outgoing@shrubbery.net Wed Sep 17 19:29:44 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 h8HJTiS16888 for ; Wed, 17 Sep 2003 19:29:44 GMT Received: by guelah.shrubbery.net (Postfix) id 6777E17D334; Wed, 17 Sep 2003 19:29:45 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 4B53A17D337; Wed, 17 Sep 2003 19:29:45 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from localhost (stmp.specifiertools.com [205.219.204.80]) by guelah.shrubbery.net (Postfix) with ESMTP id 1DE6E17D334; Wed, 17 Sep 2003 19:29:44 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 889EFBE18E; Wed, 17 Sep 2003 14:23:13 -0500 (CDT) From: stefmit To: john heasley Subject: Re: Prompt issues on Bay routers. Date: Wed, 17 Sep 2003 14:23:12 -0500 User-Agent: KMail/1.5.3 Cc: rancid-discuss@shrubbery.net References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <200309151900.43300.stefmit@comcast.net> <20030917183922.GF6180@shrubbery.net> In-Reply-To: <20030917183922.GF6180@shrubbery.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309171423.12772.stefmit@comcast.net> Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On Wednesday 17 September 2003 01:39 pm, john heasley wrote: This came the closest:) - my mistake for not being clear about the end of the session: > box# exit > bcc> exit > [foo]$ exit ^^^^^ it is actually "logout" ("exit" comes back with "unknown command") > unix_host% One more note - at the [whatever]$ TI prompt, typing bcc takes a looong time (I've seen routers where it took upwards to 30-45 sec, and not link related!), before getting the "command" level bcc (i.e. bcc>), Typing then config is pretty fast, though (to get the "enable" level", i.e. box#). Thx again for all your work, Stefan From owner-rancid-discuss-outgoing@shrubbery.net Wed Sep 17 20:15:15 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 h8HKFFS18498 for ; Wed, 17 Sep 2003 20:15:15 GMT Received: by guelah.shrubbery.net (Postfix) id D6CDC17D331; Wed, 17 Sep 2003 20:15:15 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id B4B0D17D333; Wed, 17 Sep 2003 20:15:15 +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 76EFA17D331 for ; Wed, 17 Sep 2003 20:15:14 +0000 (UTC) Received: from eahq-bh3.rws.ad.ea.com (eahq-bh3.rws.ad.ea.com [10.14.204.35]) by outbound.ea.com (Switch-3.1.0/Switch-3.1.0) with ESMTP id h8HKFCrH029059 for ; Wed, 17 Sep 2003 13:15:15 -0700 (PDT) Received: from eahq-mb3.rws.ad.ea.com ([10.14.204.120]) by eahq-bh3.rws.ad.ea.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 17 Sep 2003 13:15:09 -0700 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" Subject: running rancid manually works, but not via do-diffs Date: Wed, 17 Sep 2003 13:15:09 -0700 Message-ID: <194487E5B6AC1E4E82FCBD56E579979103222DF2@eahq-mb3.rws.ad.ea.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: running rancid manually works, but not via do-diffs Thread-Index: AcN9WGR9E7BxH758Rs+wh0UGjWUCTg== From: "Rizzo, Joe" To: X-OriginalArrivalTime: 17 Sep 2003 20:15:09.0873 (UTC) FILETIME=[64D43A10:01C37D58] Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by ni.shrubbery.net id h8HKFFS18498 I am setting up RANCID on a new system. When do-diffs is ran a device does not get polled. The error in the log is: vpwan01_eatx clogin error: Error: Connection closed (ssh): vpwan01_eatx vpwan01_eatx: missed cmd(s): show env all,show module,show controllers,show diagbus,show diag,dir /all disk1:,show gsr ch assis,dir /all bootflash:,write term,dir /all disk2:,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all slo t0:,dir /all sup-microcode:,dir /all disk0:,show install active,show bootvar,show vlan,show controllers cbus,dir /all nvr am:,show flash,show version,show variables boot,show c7200,show boot,dir /all slot1: vpwan01_eatx: End of run not found However rancid -d vpwan01_eatx produces no errors and generates healthy looking .raw and .new files. Why would clogin/rancid work manually but not when do-diffs calls rancid/clogin? Any ideas? Thanks, Joe From owner-rancid-discuss-outgoing@shrubbery.net Wed Sep 17 20:32:30 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 h8HKWTS20824 for ; Wed, 17 Sep 2003 20:32:29 GMT Received: by guelah.shrubbery.net (Postfix) id B020617D333; Wed, 17 Sep 2003 20:32:30 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 8DCC117D337; Wed, 17 Sep 2003 20:32:30 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 837ED17D335; Wed, 17 Sep 2003 20:32:29 +0000 (UTC) Date: Wed, 17 Sep 2003 13:32:29 -0700 From: john heasley To: "Rizzo, Joe" Cc: rancid-discuss@shrubbery.net Subject: Re: running rancid manually works, but not via do-diffs Message-ID: <20030917203229.GQ6180@shrubbery.net> References: <194487E5B6AC1E4E82FCBD56E579979103222DF2@eahq-mb3.rws.ad.ea.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <194487E5B6AC1E4E82FCBD56E579979103222DF2@eahq-mb3.rws.ad.ea.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, Sep 17, 2003 at 01:15:09PM -0700, Rizzo, Joe: > I am setting up RANCID on a new system. When do-diffs is ran a device > does not get polled. The error in the log is: > vpwan01_eatx clogin error: Error: Connection closed (ssh): vpwan01_eatx > vpwan01_eatx: missed cmd(s): show env all,show module,show > controllers,show diagbus,show diag,dir /all disk1:,show gsr ch > assis,dir /all bootflash:,write term,dir /all disk2:,show vtp status,dir > /all sup-bootflash:,dir /all slot2:,dir /all slo > t0:,dir /all sup-microcode:,dir /all disk0:,show install active,show > bootvar,show vlan,show controllers cbus,dir /all nvr > am:,show flash,show version,show variables boot,show c7200,show boot,dir > /all slot1: > vpwan01_eatx: End of run not found > > However rancid -d vpwan01_eatx produces no errors and generates healthy > looking .raw and .new files. > > Why would clogin/rancid work manually but not when do-diffs calls > rancid/clogin? dumb q, but are both instances (cron and manual) using ssh? next, I would suspect pty handling by ssh - or maybe the terminal type it ends-up with might be affecting it? what o/s? expect/etc versions? From owner-rancid-discuss-outgoing@shrubbery.net Wed Sep 17 20:43:35 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 h8HKhZS21012 for ; Wed, 17 Sep 2003 20:43:35 GMT Received: by guelah.shrubbery.net (Postfix) id A040A17D337; Wed, 17 Sep 2003 20:43:36 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 7FBFB17D33A; Wed, 17 Sep 2003 20:43:36 +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 0198117D337; Wed, 17 Sep 2003 20:43:35 +0000 (UTC) Received: from eahq-bh3.rws.ad.ea.com (eahq-bh3.rws.ad.ea.com [10.14.204.35]) by outbound.ea.com (Switch-3.1.0/Switch-3.1.0) with ESMTP id h8HKhZrF003271; Wed, 17 Sep 2003 13:43:36 -0700 (PDT) Received: from eahq-mb3.rws.ad.ea.com ([10.14.204.120]) by eahq-bh3.rws.ad.ea.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 17 Sep 2003 13:43:28 -0700 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" Subject: RE: running rancid manually works, but not via do-diffs Date: Wed, 17 Sep 2003 13:43:28 -0700 Message-ID: <194487E5B6AC1E4E82FCBD56E579979103222DF3@eahq-mb3.rws.ad.ea.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: running rancid manually works, but not via do-diffs Thread-Index: AcN9WtLeW5RSTpcWQ6Gru7q3f0OZnQAAAzeg From: "Rizzo, Joe" To: "john heasley" Cc: X-OriginalArrivalTime: 17 Sep 2003 20:43:28.0253 (UTC) FILETIME=[592472D0:01C37D5C] Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by ni.shrubbery.net id h8HKhZS21012 "next, I would suspect pty handling by ssh - or maybe the terminal type it ends-up with might be affecting it?" refreshed my memory... I set the following in bin/env TERM=vt100;export TERM COLUMNS=160; LINES=48; export COLUMNS LINES The affected devices are now being polled successfully. Thanks much John! FYI - here are the versions: Redhat9 2.4.20smp kernel Expect 5.39 Tcl 8.4.4 The device being polled is Linux system running ZebOS. -----Original Message----- From: john heasley [mailto:heas@shrubbery.net] Sent: Wednesday, September 17, 2003 3:32 PM To: Rizzo, Joe Cc: rancid-discuss@shrubbery.net Subject: Re: running rancid manually works, but not via do-diffs Wed, Sep 17, 2003 at 01:15:09PM -0700, Rizzo, Joe: > I am setting up RANCID on a new system. When do-diffs is ran a device > does not get polled. The error in the log is: > vpwan01_eatx clogin error: Error: Connection closed (ssh): vpwan01_eatx > vpwan01_eatx: missed cmd(s): show env all,show module,show > controllers,show diagbus,show diag,dir /all disk1:,show gsr ch > assis,dir /all bootflash:,write term,dir /all disk2:,show vtp status,dir > /all sup-bootflash:,dir /all slot2:,dir /all slo > t0:,dir /all sup-microcode:,dir /all disk0:,show install active,show > bootvar,show vlan,show controllers cbus,dir /all nvr > am:,show flash,show version,show variables boot,show c7200,show boot,dir > /all slot1: > vpwan01_eatx: End of run not found > > However rancid -d vpwan01_eatx produces no errors and generates healthy > looking .raw and .new files. > > Why would clogin/rancid work manually but not when do-diffs calls > rancid/clogin? dumb q, but are both instances (cron and manual) using ssh? next, I would suspect pty handling by ssh - or maybe the terminal type it ends-up with might be affecting it? what o/s? expect/etc versions? From owner-rancid-discuss-outgoing@shrubbery.net Thu Sep 18 02:18:12 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 h8I2ICS14671 for ; Thu, 18 Sep 2003 02:18:12 GMT Received: by guelah.shrubbery.net (Postfix) id 5FE2B17D330; Thu, 18 Sep 2003 02:18:07 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 3D95017D332; Thu, 18 Sep 2003 02:18:07 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from mta03-svc.ntlworld.com (mta03-svc.ntlworld.com [62.253.162.43]) by guelah.shrubbery.net (Postfix) with ESMTP id 8DDB917D330; Thu, 18 Sep 2003 02:18:04 +0000 (UTC) Received: from blueyonder.co.uk ([80.6.200.56]) by mta03-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20030918021802.EPPG24521.mta03-svc.ntlworld.com@blueyonder.co.uk>; Thu, 18 Sep 2003 03:18:02 +0100 Message-ID: <3F6915D5.6000208@blueyonder.co.uk> Date: Thu, 18 Sep 2003 03:17:57 +0100 From: Mark Cooper User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5b) Gecko/20030912 X-Accept-Language: en, en-us MIME-Version: 1.0 To: stefmit Cc: john heasley , rancid-discuss@shrubbery.net Subject: Re: Prompt issues on Bay routers. References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <200309151900.43300.stefmit@comcast.net> <20030917183922.GF6180@shrubbery.net> <200309171423.12772.stefmit@comcast.net> In-Reply-To: <200309171423.12772.stefmit@comcast.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk stefmit wrote: > On Wednesday 17 September 2003 01:39 pm, john heasley wrote: > This came the closest:) - my mistake for not being clear about the end of the > session: > > >>box# exit >>bcc> exit >>[foo]$ exit > > ^^^^^ it is actually "logout" ("exit" comes back with "unknown > command") > >>unix_host% [mcooper@dire bin]$ grep logout * blogin.in: send "logout\r" brancid.in: if ( (/\>\s?logout$/) || $found_end ) { [mcooper@dire bin]$ > One more note - at the [whatever]$ TI prompt, typing bcc takes a looong time > (I've seen routers where it took upwards to 30-45 sec, and not link > related!), before getting the "command" level bcc (i.e. bcc>), Typing then > config is pretty fast, though (to get the "enable" level", i.e. box#). typing bcc taks a long time? Do you mean it takes a long time for blogin/brancid to get into bcc or that when you manually login you cannot type bcc? I think you mean the first as it's something I've seen myself. It all depends on the spec/loading of router involved, and particularly memory. It seems to have to do *alot* of work to load the bcc module on low sepc/memory routers. One lovely side effect of this I noted was a massive jump in latency through the router! Try pinging the router and then running brancid. As soon as it hits the bcc line the ping times go through the roof :( I've seen ping times go from 1mc up to 300ms!! :( One thing I should mention ( I've still not been able to get access to any bay kit ), but brancid does not do a config command while in bcc and never needed to in order to run the show config commands. Has this changed in new revision's of BayOS? -- Mark Cooper http://netmangler.sourceforge.net - Network Management with Attitude http://pvrhw.goldfish.org - Open Source PVR Hardware Database From owner-rancid-discuss-outgoing@shrubbery.net Thu Sep 18 10:41:44 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 h8IAfiS24821 for ; Thu, 18 Sep 2003 10:41:44 GMT Received: by guelah.shrubbery.net (Postfix) id F06F717D32E; Thu, 18 Sep 2003 10:41:44 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id D72EB17D330; Thu, 18 Sep 2003 10:41:43 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from localhost (stmp.specifiertools.com [205.219.204.80]) by guelah.shrubbery.net (Postfix) with ESMTP id EF3BE17D32E; Thu, 18 Sep 2003 10:41:41 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 78262BE18E; Thu, 18 Sep 2003 05:35:11 -0500 (CDT) From: stefmit To: Mark Cooper Subject: Re: Prompt issues on Bay routers. Date: Thu, 18 Sep 2003 05:35:08 -0500 User-Agent: KMail/1.5.3 Cc: john heasley , rancid-discuss@shrubbery.net References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <200309171423.12772.stefmit@comcast.net> <3F6915D5.6000208@blueyonder.co.uk> In-Reply-To: <3F6915D5.6000208@blueyonder.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309180535.09464.stefmit@comcast.net> Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On Wednesday 17 September 2003 09:17 pm, Mark Cooper wrote: > stefmit wrote: > [mcooper@dire bin]$ grep logout * > blogin.in: send "logout\r" > brancid.in: if ( (/\>\s?logout$/) || $found_end ) { > [mcooper@dire bin]$ For whatever reasons, in all Nortel/Bat routers I have tried this, blogin never makes it this far (as in "reaching the logout"). It gets me to the TI prompt ($), and I can run commands there, but even when typing "logout" (!!!) I cannot actually log out of the router(s). Telnet-ing "normally" (i.e. no "blogin") into those same routers, and running commands, then a logout, allows me to cleanly close the sessions ... very odd ... > > > One more note - at the [whatever]$ TI prompt, typing bcc takes a looong > > time (I've seen routers where it took upwards to 30-45 sec, and not link > > related!), before getting the "command" level bcc (i.e. bcc>), Typing > > then config is pretty fast, though (to get the "enable" level", i.e. > > box#). > > typing bcc taks a long time? Do you mean it takes a long time for > blogin/brancid to get into bcc or that when you manually login you > cannot type bcc? I think you mean the first as it's something I've seen > myself. It all depends on the spec/loading of router involved, and > particularly memory. It seems to have to do *alot* of work to load the > bcc module on low sepc/memory routers. One lovely side effect of this I > noted was a massive jump in latency through the router! Try pinging the > router and then running brancid. As soon as it hits the bcc line the > ping times go through the roof :( I've seen ping times go from 1mc up to > 300ms!! :( blogin/brancid never make it as far as getting to a bcc prompt (whether be it "bcc>" or - even furfther - "box#"). I was referring to a normal login session, going through TI, then typing bcc. All my Nortel routers hve at least 32MB of RAM, and they handle small frame relay sites, with very small tables, and not very much traffic. > > One thing I should mention ( I've still not been able to get access to > any bay kit ), but brancid does not do a config command while in bcc and > never needed to in order to run the show config commands. Has this > changed in new revision's of BayOS? No, it hasn't - one can do a "show config" under TI, without having to go into bcc. The issue with bcc being the subject of this email thread was started by someone's question about the equivalent of "enable" in the Nortel/Bat world. I have explained as much as I was able to - in my initial response to that query - what is the difference between TI and bcc ... and the thought was to provide enough info to change the blogin/brancid to be able to handle a whole session (login (telnet) into TI -->[router-ID]$bcc --> bcc>config --> box#exit --> bcc>exit -->[router-ID]logout) properly. I do not think that anybody was ever able to use blogin/brancid beyond the login to TI capability. Thx, Stef From owner-rancid-discuss-outgoing@shrubbery.net Fri Sep 19 14:08:07 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 h8JE87S27024 for ; Fri, 19 Sep 2003 14:08:07 GMT Received: by guelah.shrubbery.net (Postfix) id 9685417D32E; Fri, 19 Sep 2003 14:08:07 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 7639E17D330; Fri, 19 Sep 2003 14:08:07 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from hkexhub2.us.firm.hklaw.com (hkexhub2.hklaw.com [63.146.184.41]) by guelah.shrubbery.net (Postfix) with ESMTP id 2A4BD17D32F for ; Fri, 19 Sep 2003 14:08:06 +0000 (UTC) Received: from qflex.us.firm.hklaw.com ([172.22.11.95]) by hkexhub2.us.firm.hklaw.com with Microsoft SMTPSVC(5.0.2195.5329); Fri, 19 Sep 2003 10:08:04 -0400 Subject: Having an install issue with Rancid From: Andrew Ellis Reply-To: andrew.ellis@hklaw.com To: rancid-discuss@shrubbery.net Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Holland & Knight, LLP Message-Id: <1063980484.6728.14.camel@LAK-ALELLIS> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Fri, 19 Sep 2003 10:08:04 -0400 X-OriginalArrivalTime: 19 Sep 2003 14:08:04.0922 (UTC) FILETIME=[71C2E9A0:01C37EB7] Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk I am getting an error log everytime i try to run rancid. I get the following: x.x.x.x being the router ip localhost$./rancid x.x.x.x sh: line 1: clogin: command not found x.x.x.x: missed cmd(s): show env all,show module,show controllers,show diagbus,show diag,dir /all disk1:,show gsr chassis,dir /all bootflash:,write term,dir /all disk2:,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all slot0:,dir /all sup-microcode:,dir /all disk0:,show install active,show bootvar,show vlan,show controllers cbus,dir /all nvram:,show flash,show version,show variables boot,show c7200,show boot,dir /all slot1: x.x.xx: End of run not found clogin -c 'show version; show diag' x.x.x.x works fine and logs in as it should seems that there is a path missing somewhere. Can someone please help me. Thanks in advance. -- Andrew Ellis From owner-rancid-discuss-outgoing@shrubbery.net Fri Sep 19 14:21:03 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 h8JEL3S27311 for ; Fri, 19 Sep 2003 14:21:03 GMT Received: by guelah.shrubbery.net (Postfix) id 562BF17D331; Fri, 19 Sep 2003 14:21:03 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id B3D9317D333; Fri, 19 Sep 2003 14:21:02 +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 7BFF017D331 for ; Fri, 19 Sep 2003 14:21:01 +0000 (UTC) Received: from eahq-bh3.rws.ad.ea.com (eahq-bh3.rws.ad.ea.com [10.14.204.35]) by outbound.ea.com (Switch-3.1.2/Switch-3.1.0) with ESMTP id h8JEKeUo001711; Fri, 19 Sep 2003 07:20:59 -0700 (PDT) Received: from eahq-mb3.rws.ad.ea.com ([10.14.204.120]) by eahq-bh3.rws.ad.ea.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 19 Sep 2003 07:20:45 -0700 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" Subject: RE: Having an install issue with Rancid Date: Fri, 19 Sep 2003 07:20:44 -0700 Message-ID: <194487E5B6AC1E4E82FCBD56E5799791036BB692@eahq-mb3.rws.ad.ea.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Having an install issue with Rancid Thread-Index: AcN+t31Lz5E/SPNhQka5+BasRtCubgAARq8g From: "Rizzo, Joe" To: , X-OriginalArrivalTime: 19 Sep 2003 14:20:45.0128 (UTC) FILETIME=[36E12480:01C37EB9] Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by ni.shrubbery.net id h8JEL3S27311 I believe that would happen if clogin is not in the path. Try adding your rancid bin directory to your path. Joe -----Original Message----- From: Andrew Ellis [mailto:andrew.ellis@hklaw.com] Sent: Friday, September 19, 2003 9:08 AM To: rancid-discuss@shrubbery.net Subject: Having an install issue with Rancid I am getting an error log everytime i try to run rancid. I get the following: x.x.x.x being the router ip localhost$./rancid x.x.x.x sh: line 1: clogin: command not found x.x.x.x: missed cmd(s): show env all,show module,show controllers,show diagbus,show diag,dir /all disk1:,show gsr chassis,dir /all bootflash:,write term,dir /all disk2:,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all slot0:,dir /all sup-microcode:,dir /all disk0:,show install active,show bootvar,show vlan,show controllers cbus,dir /all nvram:,show flash,show version,show variables boot,show c7200,show boot,dir /all slot1: x.x.xx: End of run not found clogin -c 'show version; show diag' x.x.x.x works fine and logs in as it should seems that there is a path missing somewhere. Can someone please help me. Thanks in advance. -- Andrew Ellis From owner-rancid-discuss-outgoing@shrubbery.net Sat Sep 20 02:56:03 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 h8K2u3S11973 for ; Sat, 20 Sep 2003 02:56:03 GMT Received: by guelah.shrubbery.net (Postfix) id 8008D17D32E; Sat, 20 Sep 2003 02:56:02 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 5DE6417D331; Sat, 20 Sep 2003 02:56:02 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by guelah.shrubbery.net (Postfix) with ESMTP id 081DD17D32E; Sat, 20 Sep 2003 02:55:59 +0000 (UTC) Received: from blueyonder.co.uk ([80.6.200.56]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20030920025557.LAGA2405.mta06-svc.ntlworld.com@blueyonder.co.uk>; Sat, 20 Sep 2003 03:55:57 +0100 Message-ID: <3F6BC1B8.3010505@blueyonder.co.uk> Date: Sat, 20 Sep 2003 03:55:52 +0100 From: Mark Cooper User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5b) Gecko/20030912 X-Accept-Language: en, en-us MIME-Version: 1.0 To: stefmit Cc: john heasley , rancid-discuss@shrubbery.net Subject: Re: Prompt issues on Bay routers. References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <200309171423.12772.stefmit@comcast.net> <3F6915D5.6000208@blueyonder.co.uk> <200309180535.09464.stefmit@comcast.net> In-Reply-To: <200309180535.09464.stefmit@comcast.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk stefmit wrote: > For whatever reasons, in all Nortel/Bat routers I have tried this, blogin > never makes it this far (as in "reaching the logout"). It gets me to the TI > prompt ($), and I can run commands there, but even when typing "logout" (!!!) > I cannot actually log out of the router(s). Telnet-ing "normally" (i.e. no > "blogin") into those same routers, and running commands, then a logout, > allows me to cleanly close the sessions ... very odd ... I don't remember blogin being an interactive process?? You should be able to do something like blogin -c 'bcc; show config' routername if not can you post or email me the output? > blogin/brancid never make it as far as getting to a bcc prompt (whether be it > "bcc>" or - even furfther - "box#"). I was referring to a normal login > session, going through TI, then typing bcc. All my Nortel routers hve at > least 32MB of RAM, and they handle small frame relay sites, with very small > tables, and not very much traffic. Can you post/email me the router.raw file after doing:- setenv NOPIPE=YES brancid -d routername > No, it hasn't - one can do a "show config" under TI, without having to go into > bcc. The issue with bcc being the subject of this email thread was started by > someone's question about the equivalent of "enable" in the Nortel/Bat world. > I have explained as much as I was able to - in my initial response to that > query - what is the difference between TI and bcc ... and the thought was to > provide enough info to change the blogin/brancid to be able to handle a whole > session (login (telnet) into TI -->[router-ID]$bcc --> bcc>config --> > box#exit --> bcc>exit -->[router-ID]logout) properly. I do not think that > anybody was ever able to use blogin/brancid beyond the login to TI > capability. OK, herein lies the problem. When I originally ported clogin/rancid to the Bay Networks kit that we were using at the time, you *HAD* to enter bcc to run the show config command. I have no idea what version of BayOS they were running at the time...but it was quite some time ago now :) Can you confirm what version(s) you are running? I do remember seeing someone post about problems with blogin/brancid a while back, which they solved by changing the "more off" to "config cli more false" and "show config -all" to "show config verbose". If, as you say, you can run the "show config" command in TI mode, than brancid can be simplified from:- 'bcc' => "RunCommand", 'show config' => "ShowConfig", 'show config -all' => "ShowConfig", to:- 'show config' => "ShowConfig", try testing this by doing blogin -c 'show config' routername Again, if this doesn't work, please post/email me the output - hopefully than I can get a better idea what is going wrong :) HTH -- Mark Cooper http://netmangler.sourceforge.net - Network Management with Attitude http://pvrhw.goldfish.org - Open Source PVR Hardware Database From owner-rancid-discuss-outgoing@shrubbery.net Sat Sep 20 15:01:19 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 h8KF1JS26009 for ; Sat, 20 Sep 2003 15:01:19 GMT Received: by guelah.shrubbery.net (Postfix) id A10E317D32E; Sat, 20 Sep 2003 15:01:18 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 7CBDF17D331; Sat, 20 Sep 2003 15:01:18 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from localhost (12-211-188-140.client.attbi.com [12.211.188.140]) by guelah.shrubbery.net (Postfix) with ESMTP id 1AB9B17D32E; Sat, 20 Sep 2003 15:01:17 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 67E52EED3; Sat, 20 Sep 2003 10:00:11 -0500 (CDT) From: stefmit To: Mark Cooper Subject: Re: Prompt issues on Bay routers. Date: Sat, 20 Sep 2003 10:00:10 -0500 User-Agent: KMail/1.5.3 Cc: john heasley , rancid-discuss@shrubbery.net References: <20030903192841.49221.qmail@web11703.mail.yahoo.com> <200309180535.09464.stefmit@comcast.net> <3F6BC1B8.3010505@blueyonder.co.uk> In-Reply-To: <3F6BC1B8.3010505@blueyonder.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309201000.10824.stefmit@comcast.net> Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Mark, I am soooo sorry - I don't know what I was thinking of ... ;( I said: "one can do a "show config" from a TI prompt" - THAT IS WRONG!!!. Only after reading your specific question below, have I realized that I had screwed up. I meant: one can do a "show" from a TI prompt (e.g. $show ip route), but the specific "show config" is NOT available from a TI ($) prompt, it needs a bcc> environment (not the enabled one, but the bcc nonetheless). I want to send this ASAP, because I misled you, not re-reading my email before sending it. For the rest - I will get back to you on Monday, probably. Thank you again for your help, and sorry about my mistake. Stef On Friday 19 September 2003 09:55 pm, Mark Cooper wrote: > If, as you say, you can run the "show config" command in TI mode, than > brancid can be simplified from:- > 'bcc' => "RunCommand", > 'show config' => "ShowConfig", > 'show config -all' => "ShowConfig", > > to:- > > 'show config' => "ShowConfig", From owner-rancid-discuss-outgoing@shrubbery.net Sat Sep 20 18:59:50 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 h8KIxoS00891 for ; Sat, 20 Sep 2003 18:59:50 GMT Received: by guelah.shrubbery.net (Postfix) id 7936D17D32E; Sat, 20 Sep 2003 18:59:49 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 56E1D17D331; Sat, 20 Sep 2003 18:59:49 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 6815017D330; Sat, 20 Sep 2003 18:59:48 +0000 (UTC) Date: Sat, 20 Sep 2003 11:59:48 -0700 From: john heasley To: andrew.ellis@hklaw.com, rancid-discuss@shrubbery.net Subject: Re: Having an install issue with Rancid Message-ID: <20030920185948.GF1969@shrubbery.net> References: <194487E5B6AC1E4E82FCBD56E5799791036BB692@eahq-mb3.rws.ad.ea.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <194487E5B6AC1E4E82FCBD56E5799791036BB692@eahq-mb3.rws.ad.ea.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, Sep 19, 2003 at 07:20:44AM -0700, Rizzo, Joe: > I believe that would happen if clogin is not in the path. > > Try adding your rancid bin directory to your path. correct. the configure process adds the location of clogin in the PATH enviroment variable within bin/env. this file is included by bin/do-diffs. if your shell is a bourne shell derivative, the following ought to do it: . /usr/local/rancid/bin/env rancid x.x.x.x the alternative, in the case below, is adding . to the end of your path, though that is often dis-recommended by security folk. > Joe > > -----Original Message----- > From: Andrew Ellis [mailto:andrew.ellis@hklaw.com] > Sent: Friday, September 19, 2003 9:08 AM > To: rancid-discuss@shrubbery.net > Subject: Having an install issue with Rancid > > I am getting an error log everytime i try to run rancid. I get the > following: > x.x.x.x being the router ip > > localhost$./rancid x.x.x.x > sh: line 1: clogin: command not found > x.x.x.x: missed cmd(s): show env all,show module,show controllers,show > diagbus,show diag,dir /all disk1:,show gsr chassis,dir /all > bootflash:,write term,dir /all disk2:,show vtp status,dir /all > sup-bootflash:,dir /all slot2:,dir /all slot0:,dir /all > sup-microcode:,dir /all disk0:,show install active,show bootvar,show > vlan,show controllers cbus,dir /all nvram:,show flash,show version,show > variables boot,show c7200,show boot,dir /all slot1: > x.x.xx: End of run not found > > clogin -c 'show version; show diag' x.x.x.x works fine and logs in as it > should seems that there is a path missing somewhere. Can someone please > help me. Thanks in advance. > > -- > Andrew Ellis > From owner-rancid-discuss-outgoing@shrubbery.net Sat Sep 20 22:55:00 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 h8KMt0S05232 for ; Sat, 20 Sep 2003 22:55:00 GMT Received: by guelah.shrubbery.net (Postfix) id 0C41C17D32E; Sat, 20 Sep 2003 22:55:00 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id D6A3617D331; Sat, 20 Sep 2003 22:54:59 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from web11701.mail.yahoo.com (web11701.mail.yahoo.com [216.136.172.67]) by guelah.shrubbery.net (Postfix) with SMTP id 7B87117D32E for ; Sat, 20 Sep 2003 22:54:58 +0000 (UTC) Message-ID: <20030920225457.42814.qmail@web11701.mail.yahoo.com> Received: from [68.49.148.23] by web11701.mail.yahoo.com via HTTP; Sat, 20 Sep 2003 15:54:57 PDT Date: Sat, 20 Sep 2003 15:54:57 -0700 (PDT) From: James Kilton Subject: Re: Prompt issues on Bay routers. To: rancid-discuss@shrubbery.net In-Reply-To: <200309131126.17052.stefmit@comcast.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-425264686-1064098497=:42662" Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk --0-425264686-1064098497=:42662 Content-Type: text/plain; charset=us-ascii Content-Id: Content-Disposition: inline > > James Kilton wrote: > > > Thanks guys. > > > > > > I managed to fix this via some minor script hacking earlier in the > > >week. I doubt it's pretty as > > > > I would certainly be interested to know what you changed :) > > Me too. TIA. > > Stef Sorry for the delay on this, I was out of town. My versions of brancid and blogin are attached. You should be able to run 'diff' to see what I changed. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --0-425264686-1064098497=:42662 Content-Type: text/plain; name="brancid.txt" Content-Description: brancid.txt Content-Disposition: inline; filename="brancid.txt" #!/usr/bin/perl ## ## hacked version of Hank's rancid - this one tries to deal with Bay's. ## ## Copyright (C) 1997-2001 by Henry Kilmer. ## All rights reserved. ## ## This software may be freely copied, modified and redistributed without ## fee for non-commerical purposes provided that this copyright notice is ## preserved intact on all copies and modified copies. ## ## There is no warranty or other guarantee of fitness of this software. ## It is provided solely "as is". The author(s) disclaim(s) all ## responsibility and liability with respect to this software's usage ## or its effect upon hardware, computer systems, other software, or ## anything else. ## ## # # RANCID - Really Awesome New Cisco confIg Differ # # usage: rancid [-d] [-l] [-f filename | $host] # use Getopt::Std; getopts('dflm'); $log = $opt_l; $debug = $opt_d; $file = $opt_f; $host = $ARGV[0]; $clean_run = 0; $found_end = 0; $timeo = 90; # blogin timeout in seconds my(%filter_pwds); # password filtering mode # This routine is used to print out the router configuration sub ProcessHistory { my($new_hist_tag,$new_command,$command_string,@string)=(@_); if((($new_hist_tag ne $hist_tag) || ($new_command ne $command)) && defined %history) { print eval "$command \%history"; undef %history; } if (($new_hist_tag) && ($new_command) && ($command_string)) { if ($history{$command_string}) { $history{$command_string} = "$history{$command_string}@string"; } else { $history{$command_string} = "@string"; } } elsif (($new_hist_tag) && ($new_command)) { $history{++$#history} = "@string"; } else { print "@string"; } $hist_tag = $new_hist_tag; $command = $new_command; 1; } sub numerically { $a <=> $b; } # This is a sort routing that will sort numerically on the # keys of a hash as if it were a normal array. sub keynsort { local(%lines)=@_; local($i) = 0; local(@sorted_lines); foreach $key (sort numerically keys(%lines)) { $sorted_lines[$i] = $lines{$key}; $i++; } @sorted_lines; } # This is a sort routing that will sort on the # keys of a hash as if it were a normal array. sub keysort { local(%lines)=@_; local($i) = 0; local(@sorted_lines); foreach $key (sort keys(%lines)) { $sorted_lines[$i] = $lines{$key}; $i++; } @sorted_lines; } # This is a sort routing that will sort on the # values of a hash as if it were a normal array. sub valsort{ local(%lines)=@_; local($i) = 0; local(@sorted_lines); foreach $key (sort values %lines) { $sorted_lines[$i] = $key; $i++; } @sorted_lines; } # This is a numerical sort routing (ascending). sub numsort { local(%lines)=@_; local($i) = 0; local(@sorted_lines); foreach $num (sort {$a <=> $b} keys %lines) { $sorted_lines[$i] = $lines{$num}; $i++; } @sorted_lines; } # This is a sort routine that will sort on the # ip address when the ip address is anywhere in # the strings. sub ipsort { local(%lines)=@_; local($i) = 0; local(@sorted_lines); foreach $addr (sort sortbyipaddr keys %lines) { $sorted_lines[$i] = $lines{$addr}; $i++; } @sorted_lines; } # These two routines will sort based upon IP addresses sub ipaddrval { my(@a) = ($_[0] =~ m#^(\d+)\.(\d+)\.(\d+)\.(\d+)$#); $a[3]+256*($a[2]+256*($a[1]+256*$a[0])); } sub sortbyipaddr { &ipaddrval($a) <=> &ipaddrval($b); } # This routine parses "show config" sub ShowConfig { print STDERR " In ShowConfig: $_" if ($debug); while () { tr/\015//d; last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); next if (/^Reading configuration information/); next if (/^Can\'t find object or class named \"\-all\"\s*$/); next if (/lock-address .*$/); next if (/^\# *uptime +-?\d+\s*$/); if (/community label /) { if (defined($ENV{'NOCOMMSTR'})) { $_ =~ s/community label .*$/community label /; } } return(1) if /(invalid command name)/; ProcessHistory("","","","$_"); } # ProcessHistory("","","","!$_"); if (/exit$/) { $found_end = 1; return(1); } return(0); } # This routine parses single command's that return no required info sub RunCommand { print STDERR " In RunCommand: $_" if ($debug); while () { tr/\015//d; last if (/^$prompt/); next if (/^(\s*|\s*$cmd\s*)$/); # prompt may have changed if (/\>/) { $prompt = ($_ =~ /^([^>]+>)/)[0]; $prompt =~ s/([][])/\\$1/g; last; } } return(0) } # dummy function sub DoNothing {print STDOUT;} # Main %commands=( 'bcc' => "RunCommand", 'show config -all' => "ShowConfig", 'exit' => "RunCommand" ); # keys() doesnt return things in the order entered and the order of the # cmds is important (show version first and write term last). pita @commands=( "bcc", "show config -all", "exit" ); $cisco_cmds=join(";",@commands); $cmds_regexp=join("|",@commands); open(OUTPUT,">$host.new") || die "Can't open $host.new for writing: $!\n"; select(OUTPUT); # make OUTPUT unbuffered if debugging if ($debug) { $| = 1; } if ($file) { print STDERR "opening file $host\n" if ($debug); print STDOUT "opening file $host\n" if ($log); open(INPUT,"<$host") || die "open failed for $host: $!\n"; } else { print STDERR "executing blogin -t $timeo -c\"$cisco_cmds\" $host\n" if ($debug); print STDOUT "executing blogin -t $timeo -c\"$cisco_cmds\" $host\n" if ($log); if (defined($ENV{NOPIPE})) { system "blogin -t $timeo -c \"$cisco_cmds\" $host $host.raw 2>&1" || die "blogin failed for $host: $!\n"; open(INPUT, "< $host.raw") || die "blogin failed for $host: $!\n"; } else { open(INPUT,"blogin -t $timeo -c \"$cisco_cmds\" $host ) { tr/\015//d; if ( (/>\s?exit$/) || $found_end ) { $clean_run=1; last; } if (/^Error:/) { print STDOUT ("$host blogin error: $_"); print STDERR ("$host blogin error: $_") if ($debug); $clean_run=0; last; } while (/>\s*($cmds_regexp)\s*$/ | /\$\s*($cmds_regexp)\s*$/) { $cmd = $1; if (!defined($prompt)) { $prompt = ($_ =~ /^([^>]+>)/)[0]; $prompt =~ s/([][])/\\$1/g; } print STDERR ("HIT COMMAND:$_") if ($debug); if (! defined($commands{$cmd})) { print STDERR "$host: found unexpected command - \"$cmd\"\n"; $clean_run = 0; last TOP; } $rval = &{$commands{$cmd}}; delete($commands{$cmd}); if ($rval == -1) { $clean_run = 0; last TOP; } if ( (/>\s?exit$/) || $found_end ) { $clean_run=1; } } } print STDOUT "Done $logincmd: $_\n" if ($log); # Flush History ProcessHistory("","","",""); # Cleanup close(INPUT); close(OUTPUT); if (defined($ENV{NOPIPE})) { unlink("$host.raw") if (! $debug); } # check for completeness if (scalar(%commands) || !$clean_run || !$found_end) { if (scalar(%commands)) { printf(STDOUT "$host: missed cmd(s): %s\n", join(',', keys(%commands))); printf(STDERR "$host: missed cmd(s): %s\n", join(',', keys(%commands))) if ($debug); } if (!$clean_run || !$found_end) { print STDOUT "$host: End of run not found\n"; print STDERR "$host: End of run not found\n" if ($debug); system("/usr/bin/tail -1 $host.new"); } unlink "$host.new" if (! $debug); } --0-425264686-1064098497=:42662 Content-Type: text/plain; name="blogin.txt" Content-Description: blogin.txt Content-Disposition: inline; filename="blogin.txt" #!/usr/bin/expect -- ## ## ## Copyright (C) 1997-2001 by Henry Kilmer, Erik Sherk and Pete Whiting. ## All rights reserved. ## ## This software may be freely copied, modified and redistributed without ## fee for non-commerical purposes provided that this copyright notice is ## preserved intact on all copies and modified copies. ## ## There is no warranty or other guarantee of fitness of this software. ## It is provided solely "as is". The author(s) disclaim(s) all ## responsibility and liability with respect to this software's usage ## or its effect upon hardware, computer systems, other software, or ## anything else. ## ## # # blogin - Bay Networks(Nortel) login # # Unlike the Cisco's, there is no enable function on the Bay's. # Instead there are seperate User and Manager accounts. A 'system' command # exists, which i am told does nothing. # # Usage line set usage "Usage: $argv0 \[-autoenable\] \[-noenable\] \[-c command\] \ \[-Evar=x\] \[-e enable-password\] \[-f cloginrc-file\] \[-p user-password\] \ \[-s script-file\] \[-t timeout\] \[-u username\] \ \[-v vty-password\] \[-w enable-username\] \[-x command-file\] \ \[-y ssh_cypher_type\] router \[router...\]\n" # env(CLOGIN) may contain: # x == do not set xterm banner or name # Password file set password_file $env(HOME)/.cloginrc # Default is to login to the router set do_command 0 set do_script 0 # The default is to automatically enable set enable 0 # The default is that you login non-enabled (tacacs can have you login already enabled) set autoenable 0 # The default is to look in the password file to find the passwords. This # tracks if we receive them on the command line. set do_passwd 1 set do_enapasswd 0 # Find the user in the ENV, or use the unix userid. if {[ info exists env(CISCO_USER) ] } { set default_user $env(CISCO_USER) } elseif {[ info exists env(USER) ]} { set default_user $env(USER) } else { # This uses "id" which I think is portable. At least it has existed # (without options) on all machines/OSes I've been on recently - # unlike whoami or id -nu. if [ catch {exec id} reason ] { send_error "\nError: could not exec id: $reason\n" exit 1 } regexp {\(([^)]*)} "$reason" junk default_user } # Sometimes routers take awhile to answer (the default is 10 sec) set timeout 45 # Process the command line for {set i 0} {$i < $argc} {incr i} { set arg [lindex $argv $i] switch -glob -- $arg { # Username -u* - -U* { if {! [ regexp .\[uU\](.+) $arg ignore user]} { incr i set username [ lindex $argv $i ] } # VTY Password } -p* - -P* { if {! [ regexp .\[pP\](.+) $arg ignore userpasswd]} { incr i set userpasswd [ lindex $argv $i ] } set do_passwd 0 # VTY Password } -v* - -v* { if {! [ regexp .\[vV\](.+) $arg ignore passwd]} { incr i set passwd [ lindex $argv $i ] } set do_passwd 0 # Enable Username } -w* - -W* { if {! [ regexp .\[wW\](.+) $arg ignore enauser]} { incr i set enausername [ lindex $argv $i ] } # Environment variable to pass to -s scripts } -E* { if {[ regexp .\[E\](.+)=(.+) $arg ignore varname varvalue]} { set E$varname $varvalue } else { send_user "Error: invalid format for -E in $arg\n" exit 1 } # Enable Password } -e* { if {! [ regexp .\[eE\](.+) $arg ignore enapasswd]} { incr i set enapasswd [ lindex $argv $i ] } set do_enapasswd 0 # Command to run. } -c* - -C* { if {! [ regexp .\[cC\](.+) $arg ignore command]} { incr i set command [ lindex $argv $i ] } set do_command 1 # Expect script to run. } -s* - -S* { if {! [ regexp .\[sS\](.+) $arg ignore sfile]} { incr i set sfile [ lindex $argv $i ] } if { ! [ file readable $sfile ] } { send_user "\nError: Can't read $sfile\n" exit 1 } set do_script 1 # 'ssh -c' cypher type } -y* - -Y* { if {! [ regexp .\[eE\](.+) $arg ignore cypher]} { incr i set cypher [ lindex $argv $i ] } # alternate cloginrc file } -f* - -F* { if {! [ regexp .\[fF\](.+) $arg ignore password_file]} { incr i set password_file [ lindex $argv $i ] } # Timeout } -t* - -T* { if {! [ regexp .\[tT\](.+) $arg ignore timeout]} { incr i set timeout [ lindex $argv $i ] } # Command file } -x* - -X { if {! [ regexp .\[xX\](.+) $arg ignore cmd_file]} { incr i set cmd_file [ lindex $argv $i ] } set cmd_fd [open $cmd_file r] set cmd_text [read $cmd_fd] close $cmd_fd set command [join [split $cmd_text \n] \;] set do_command 1 # Do we enable? } -noenable { set enable 0 # Does tacacs automatically enable us? } -autoenable { set autoenable 1 set enable 0 } -* { send_user "\nError: Unknown argument! $arg\n" send_user $usage exit 1 } default { break } } } # Process routers...no routers listed is an error. if { $i == $argc } { send_user "\nError: $usage" } # Only be quiet if we are running a script (it can log its output # on its own) if { $do_script } { log_user 0 } else { log_user 1 } # # Done configuration/variable setting. Now run with it... # # Sets Xterm title if interactive...if its an xterm and the user cares proc label { host } { global env # if CLOGIN has an 'x' in it, don't set the xterm name/banner if [info exists env(CLOGIN)] { if {[string first "x" $env(CLOGIN)] != -1} { return } } # take host from ENV(TERM) if [info exists env(TERM)] { if [regexp \^(xterm|vs) $env(TERM) ignore ] { send_user "\033]1;[lindex [split $host "."] 0]\a" send_user "\033]2;$host\a" } } } # This is a helper function to make the password file easier to # maintain. Using this the password file has the form: # add password sl* pete cow # add password at* steve # add password * hanky-pie proc add {var args} { global int_$var ; lappend int_$var $args} proc include {args} { global env regsub -all "(^{|}$)" $args {} args if { [ regexp "^/" $args ignore ] == 0 } { set args $env(HOME)/$args } source_password_file $args } proc find {var router} { upvar int_$var list if { [info exists list] } { foreach line $list { if { [string match [lindex $line 0] $router ] } { return [lrange $line 1 end] } } } return {} } # Loads the password file. Note that as this file is tcl, and that # it is sourced, the user better know what to put in there, as it # could install more than just password info... I will assume however, # that a "bad guy" could just as easy put such code in the clogin # script, so I will leave .cloginrc as just an extention of that script proc source_password_file { password_file } { global env if { ! [file exists $password_file] } { send_user "\nError: password file ($password_file) does not exist\n" exit 1 } file stat $password_file fileinfo if { [expr ($fileinfo(mode) & 007)] != 0000 } { send_user "\nError: $password_file must not be world readable/writable\n" exit 1 } if [ catch {source $password_file} reason ] { send_user "\nError: $reason\n" exit 1 } } # Log into the router. proc login { router user userpswd passwd enapasswd prompt cmethod cyphertype } { global spawn_id in_proc do_command do_script global u_prompt p_prompt e_prompt set in_proc 1 # try each of the connection methods in $cmethod until one is successful set progs [llength $cmethod] foreach prog [lrange $cmethod 0 end] { if [string match "telnet*" $prog] { regexp {telnet(:([^[:space:]]+))*} $prog command suffix port if {"$port" == ""} { set retval [ catch {spawn telnet $router} reason ] } else { set retval [ catch {spawn telnet $router $port} reason ] } if { $retval } { send_user "\nError: telnet failed: $reason\n" exit 1 } } elseif ![string compare $prog "ssh"] { if [ catch {spawn ssh -c $cyphertype -x -l $user $router} reason ] { send_user "\nError: ssh failed: $reason\n" exit 1 } } elseif ![string compare $prog "rsh"] { if [ catch {spawn rsh -l $user $router} reason ] { send_user "\nError: rsh failed: $reason\n" exit 1 } } else { puts "\nError: unknown connection method: $prog" return 1 } incr progs -1 sleep 0.3 # This helps cleanup each expect clause. expect_after { timeout { send_user "\nError: TIMEOUT reached\n" catch {close}; wait if { $in_proc} { return 1 } else { continue } } eof { send_user "\nError: EOF received\n" catch {close}; wait if { $in_proc} { return 1 } else { continue } } } # Here we get a little tricky. There are several possibilities: # the router can ask for a username and passwd and then # talk to the TACACS server to authenticate you, or if the # TACACS server is not working, then it will use the enable # passwd. Or, the router might not have TACACS turned on, # then it will just send the passwd. # if telnet fails with connection refused, try ssh expect { -re "(Connection refused|Secure connection \[^\n\r]+ refused|Connection closed by)" { catch {close}; wait if !$progs { send_user "\nError: Connection Refused ($prog)\n"; return 1 } } eof { send_user "\nError: Couldn't login\n"; wait; return 1 } -nocase "unknown host\r" { catch {close}; send_user "\nError: Unknown host\n"; wait; return 1 } "Host is unreachable" { catch {close}; send_user "\nError: Host Unreachable!\n"; wait; return 1 } "No address associated with name" { catch {close}; send_user "\nError: Unknown host\n"; wait; return 1 } -re "(Host key not found |The authenticity of host .* be established).*\(yes\/no\)\?" { send "yes\r" send_user "\nHost $router added to the list of known hosts.\n" exp_continue } -re "HOST IDENTIFICATION HAS CHANGED.* \(yes\/no\)\?" { send "no\r" send_user "\nError: The host key for $router has changed. Update the SSH known_hosts file accordingly.\n" return 1 } -re "Offending key for .* \(yes\/no\)\?" { send "no\r" send_user "\nError: host key mismatch for $router. Update the SSH known_hosts file accordingly.\n" return 1 } -re "$u_prompt" { send "$user\r" expect { eof { send_user "\nError: Couldn't login\n"; wait; return 1 } "Login invalid" { send_user "\nError: Invalid login\n"; vatch {close}; wait; return 1 } -re "$p_prompt" { send "$userpswd\r" } "$prompt" { set in_proc 0; return 0 } } exp_continue } -re "$p_prompt" { if ![string compare $prog "ssh"] { send "$userpswd\r" } else { send "$passwd\r" } expect { eof { send_user "\nError: Couldn't login\n"; wait; return 1 } -re "$e_prompt" { send "$enapasswd\r" } "$prompt" { set in_proc 0; return 0 } } exp_continue } "$prompt" { break; } denied { send_user "\nError: Check your passwd for $router\n" catch {close}; wait; return 1 } "% Bad passwords" {send_user "\nError: Check your passwd for $router\n"; return 1 } } } set in_proc 0 return 0 } # Enable proc do_enable { enauser enapasswd } { global prompt in_proc global u_prompt e_prompt set in_proc 1 send "enable\r" expect { -re "$u_prompt" { send "$enauser\r"; exp_continue} -re "$e_prompt" { send "$enapasswd\r"; exp_continue} "#" { set prompt "#" } "(enable)" { set prompt "> (enable) " } denied { send_user "\nError: Check your Enable passwd\n"; return 1} "% Bad passwords" { send_user "\nError: Check your Enable passwd\n" return 1 } } # We set the prompt variable (above) so script files don't need # to know what it is. set in_proc 0 return 0 } # Run commands given on the command line. proc run_commands { prompt command } { global in_proc set in_proc 1 send "more off\r" expect $prompt {} regsub -all "\[)(]" $prompt {\\&} reprompt # Is this a multi-command? if [ string match "*\;*" "$command" ] { set commands [split $command \;] set num_commands [llength $commands] for {set i 0} {$i < $num_commands} { incr i} { #send_user "y0y0ma" send "[subst -nocommands [lindex $commands $i]]\r" expect { -re "^\[^\n\r *]*$reprompt" {} -re "bcc>" {} -re "^\[^\n\r]*$reprompt." { exp_continue } -re "\[\n\r]" { exp_continue } } } } else { send "[subst -nocommands $command]\r" expect { -re "^\[^\n\r *]*$reprompt" {} -re "bcc>" {} -re "^\[^\n\r]*$reprompt." { exp_continue } -re "\[\n\r]" { exp_continue } } } send "logout\r" expect { "\n" { exp_continue } timeout { return 0 } eof { return 0 } } set in_proc 0 } # # For each router... (this is main loop) # source_password_file $password_file set in_proc 0 foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # Figure out prompt. # Since autoenable is off by default, if we have it defined, it # was done on the command line. If it is not specifically set on the # command line, check the password file. if $autoenable { set prompt "#" } else { set ae [find autoenable $router] if { "$ae" == "1" } { set autoenable 1 set enable 0 set prompt {TN} } else { set autoenable 0 set prompt ">" } } # look for noenable option in .cloginrc if { [find noenable $router] != "" } { set enable 0 } # Figure out passwords if { $do_passwd || $do_enapasswd } { set pswd [find password $router] if { [llength $pswd] == 0 } { send_user "Error - no password for $router in $password_file.\n" continue } if { $do_enapasswd && $autoenable == 0 && [llength $pswd] < 2 } { send_user "Error - no enable password for $router in $password_file.\n" continue } set passwd [lindex $pswd 0] set enapasswd [lindex $pswd 1] } # Figure out username if {[info exists username]} { # command line username set ruser $username } else { set ruser [find user $router] if { "$ruser" == "" } { set ruser $default_user } } # Figure out username's password (if different from the vty password) if {[info exists userpasswd]} { # command line username set userpswd $userpasswd } else { set userpswd [find userpassword $router] if { "$userpswd" == "" } { set userpswd $passwd } } # Figure out enable username if {[info exists enausername]} { # command line enausername set enauser $enausername } else { set enauser [find enauser $router] if { "$enauser" == "" } { set enauser $ruser } } # Figure out prompts set u_prompt [find userprompt $router] if { "$u_prompt" == "" } { set u_prompt "(Username|login|user name):" } else { set u_prompt [lindex $u_prompt 0] } set p_prompt [find passprompt $router] if { "$p_prompt" == "" } { set p_prompt "(\[Pp]assword|passwd):" } else { set p_prompt [lindex $p_prompt 0] } set e_prompt [find enableprompt $router] if { "$e_prompt" == "" } { set e_prompt "\[Pp]assword:" } else { set e_prompt [lindex $e_prompt 0] } # Figure out cypher type if {[info exists cypher]} { # command line cypher type set cyphertype $cypher } else { set cyphertype [find cyphertype $router] if { "$cyphertype" == "" } { set cyphertype "3des" } } # Figure out connection method set cmethod [find method $router] if { "$cmethod" == "" } { set cmethod {{telnet}} } # Login to the router if {[login $router $ruser $userpswd $passwd $enapasswd $prompt $cmethod $cyphertype]} { continue } if { $enable } { if {[do_enable $enauser $enapasswd]} { if { $do_command || $do_script } { close; wait continue } } } if { $do_command } { if {[run_commands $prompt $command]} { continue } } elseif { $do_script } { send "more off\r" expect $prompt {} source $sfile close } else { label $router log_user 1 interact } # End of for each router wait sleep 0.3 } exit 0 --0-425264686-1064098497=:42662-- From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 23 00:20: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 h8N0KwS18732 for ; Tue, 23 Sep 2003 00:20:58 GMT Received: by guelah.shrubbery.net (Postfix) id 1C92A17D331; Tue, 23 Sep 2003 00:20:58 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id EA93817D333; Tue, 23 Sep 2003 00:20:57 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from torpedo.monterey.k12.ca.us (smtp.monterey.k12.ca.us [205.155.53.42]) by guelah.shrubbery.net (Postfix) with ESMTP id E8FF717D331 for ; Tue, 23 Sep 2003 00:20:56 +0000 (UTC) Received: from its-380za.monterey.k12.ca.us ([10.10.1.166]) by torpedo.monterey.k12.ca.us (Switch-3.0.4/Switch-3.0.0) with ESMTP id h8N0FYBY026134 for ; Mon, 22 Sep 2003 17:15:34 -0700 (PDT) Message-Id: <5.2.1.1.0.20030922171320.07f7bdf8@mail.monterey.k12.ca.us> X-Sender: azheng@mail.monterey.k12.ca.us X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Mon, 22 Sep 2003 17:21:10 -0700 To: rancid-discuss@shrubbery.net From: Alex Zheng Subject: manage auto-enabled/radius devices and not-auto-enabled devices at once Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hi, We have about 100+ routers which is authenticated via Radius, auto-enabled. in clogin, this is what modified: # The default is to automatically enable set enable 1 # The default is that you login non-enabled (tacacs can have you login already e nabled) # MCOE set auto-enable 1 for routers set autoenable 1 so in the .cloginrc: add user routerIP myuser add password routerIP myRadiusPasswd works great for router! However, we have a bunch of switches not going through radius at all for verification (passwd stored locally), in .cloginrc add user switchip myuser add passwd switchip vtypass enablepass This won't work with clogin I modified. Any suggestions? Thanks. Alex From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 23 07:17:36 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 h8N7HaS26515 for ; Tue, 23 Sep 2003 07:17:36 GMT Received: by guelah.shrubbery.net (Postfix) id B70C917D32E; Tue, 23 Sep 2003 07:17:35 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 962DC17D331; Tue, 23 Sep 2003 07:17:35 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from titan.nha.co.za (titan.nha.co.za [196.36.191.146]) by guelah.shrubbery.net (Postfix) with ESMTP id 0DE0C17D32E for ; Tue, 23 Sep 2003 07:17:33 +0000 (UTC) Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C381A2.BC9C4B91" Subject: Hang after login with HP ProCurve 4108gl X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Tue, 23 Sep 2003 09:17:24 +0200 Message-ID: <8F2D061DFD77E444B00D8FE9B8273DD06C6320@titan.nha.co.za> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Hang after login with HP ProCurve 4108gl thread-index: AcOBoryYzK6Z5MK7TGaTfOZHUuD5Xw== From: =?iso-8859-1?Q?Jens_von_B=FClow?= To: Cc: "Luqman Achmat" Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk This is a multi-part message in MIME format. ------_=_NextPart_001_01C381A2.BC9C4B91 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Greetings, =20 I am experiencing a login "hang" straight after a successful loin = (almost as if I am still stuck in an expect).... I can type, but I never = receive any response (I can type the command but can't appear press = enter)... =20 I am using =20 HP J4865A ProCurve Switch 4108GL Firmware revision G.07.26 =20 and wonder if other users as experiencing the same problem? =20 How do I debug this? =20 I look forward to your responses. =20 Thanks & Regards Jens =20 =20 ------_=_NextPart_001_01C381A2.BC9C4B91 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message
Greetings,
 
I am = experiencing a=20 login "hang" straight after a successful loin (almost as if I am still = stuck in=20 an expect).... I can type, but I never receive any response (I can type = the=20 command but can't appear press enter)...
 
I am=20 using
 
   =20 <snip>
   =20 HP J4865A ProCurve Switch 4108GL
    Firmware revision = G.07.26
    = </snip>
 
and = wonder if other=20 users as experiencing the same problem?
 
How do = I debug=20 this?
 
I look = forward to=20 your responses.
 
Thanks = &=20 Regards
Jens
 
 
=00 ------_=_NextPart_001_01C381A2.BC9C4B91-- From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 23 10:19:05 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 h8NAJ5S01011 for ; Tue, 23 Sep 2003 10:19:05 GMT Received: by guelah.shrubbery.net (Postfix) id 5F34917D32E; Tue, 23 Sep 2003 10:19:04 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 3BE9217D331; Tue, 23 Sep 2003 10:19:04 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from granite.smiller.org (12-252-174-33.client.attbi.com [12.252.174.33]) by guelah.shrubbery.net (Postfix) with ESMTP id 8A28017D32E for ; Tue, 23 Sep 2003 10:19:01 +0000 (UTC) Received: from granite.smiller.org (IDENT:1000@localhost [127.0.0.1]) by granite.smiller.org (8.12.4/8.12.4) with ESMTP id h8N87WoQ001938; Tue, 23 Sep 2003 02:07:32 -0600 From: "Stephen Miller" To: Jens von =?ISO-8859-1?Q?B=FClow?= , Cc: "Luqman Achmat" Subject: Re: Hang after login with HP ProCurve 4108gl Date: Tue, 23 Sep 2003 01:07:32 -0700 Message-Id: <20030923075834.M85254@smiller.org> In-Reply-To: <8F2D061DFD77E444B00D8FE9B8273DD06C6320@titan.nha.co.za> References: <8F2D061DFD77E444B00D8FE9B8273DD06C6320@titan.nha.co.za> X-Mailer: Open WebMail 2.10 20030720 X-OriginatingIP: 97.253.14.51 (steve) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk the hang may be caused by the login script (hlogin?) not recognizing the prompt once you get logged in. you can modify the prompt value within the login script. here's a piece of the hlogin regarding the prompt: if $autoenable { set prompt "#" } else { set ae [find autoenable $router] if { "$ae" == "1" } { set autoenable 1 set enable 0 set prompt "#" } else { set autoenable 0 set prompt ">" } } if your doesn't match the above values then the login script is waiting for the correct prompt to appear...it should disconnect after 45 seconds. steve ---------- Original Message ----------- From: Jens von Bülow To: Cc: "Luqman Achmat" Sent: Tue, 23 Sep 2003 09:17:24 +0200 Subject: Hang after login with HP ProCurve 4108gl > Greetings, > > I am experiencing a login "hang" straight after a successful loin > (almost as if I am still stuck in an expect).... I can type, but I > never receive any response (I can type the command but can't appear > press enter)... > > I am using > > > HP J4865A ProCurve Switch 4108GL > Firmware revision G.07.26 > > > and wonder if other users as experiencing the same problem? > > How do I debug this? > > I look forward to your responses. > > Thanks & Regards > Jens ------- End of Original Message ------- From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 23 17:56:01 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 h8NHu1S09834 for ; Tue, 23 Sep 2003 17:56:01 GMT Received: by guelah.shrubbery.net (Postfix) id 844B817D32E; Tue, 23 Sep 2003 17:56:00 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 6400617D331; Tue, 23 Sep 2003 17:56:00 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 550E017D330; Tue, 23 Sep 2003 17:55:59 +0000 (UTC) Date: Tue, 23 Sep 2003 10:55:59 -0700 From: john heasley To: Jens von B?low Cc: rancid-discuss@shrubbery.net, Luqman Achmat Subject: Re: Hang after login with HP ProCurve 4108gl Message-ID: <20030923175559.GU19466@shrubbery.net> References: <8F2D061DFD77E444B00D8FE9B8273DD06C6320@titan.nha.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8F2D061DFD77E444B00D8FE9B8273DD06C6320@titan.nha.co.za> User-Agent: Mutt/1.4i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Tue, Sep 23, 2003 at 09:17:24AM +0200, Jens von B?low: > Greetings, > > I am experiencing a login "hang" straight after a successful loin (almost as if I am still stuck in an expect).... I can type, but I never receive any response (I can type the command but can't appear press enter)... > > I am using > > > HP J4865A ProCurve Switch 4108GL > Firmware revision G.07.26 > > > and wonder if other users as experiencing the same problem? do you mean it logs into a box fine, but fails on box2? ie: hlogin box1 box2 or that it authenticates and then hangs? in the latter case, stephen miller's reply is probably correct. > How do I debug this? try switching the autoenable knob and/or see exp_internal in expect (1). From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 23 19:29:46 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 h8NJTkS12303 for ; Tue, 23 Sep 2003 19:29:46 GMT Received: by guelah.shrubbery.net (Postfix) id 3F9A917D32E; Tue, 23 Sep 2003 19:29:46 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 2350517D331; Tue, 23 Sep 2003 19:29:46 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id E70BF17D330; Tue, 23 Sep 2003 19:29:44 +0000 (UTC) Date: Tue, 23 Sep 2003 12:29:44 -0700 From: john heasley To: Alex Zheng Cc: rancid-discuss@shrubbery.net Subject: Re: manage auto-enabled/radius devices and not-auto-enabled devices at once Message-ID: <20030923192944.GF19466@shrubbery.net> References: <5.2.1.1.0.20030922171320.07f7bdf8@mail.monterey.k12.ca.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.2.1.1.0.20030922171320.07f7bdf8@mail.monterey.k12.ca.us> 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, Sep 22, 2003 at 05:21:10PM -0700, Alex Zheng: > > Hi, > > We have about 100+ routers which is authenticated via Radius, auto-enabled. > > in clogin, this is what modified: > > # The default is to automatically enable > set enable 1 > # The default is that you login non-enabled (tacacs can have you login > already e > nabled) > > # MCOE set auto-enable 1 for routers > set autoenable 1 > > > so in the .cloginrc: > > add user routerIP myuser > add password routerIP myRadiusPasswd > > works great for router! > > > > However, we have a bunch of switches not going through radius at all for > verification (passwd stored locally), in .cloginrc > > add user switchip myuser > add passwd switchip vtypass enablepass > > This won't work with clogin I modified. if you have hostnames that identify device types, eg all switch begin with "s", then you can wildcard them in .cloginrc. eg: set autoenable s* 0 .... set autoenable * 1 # %EOF From owner-rancid-discuss-outgoing@shrubbery.net Fri Sep 26 04:08:35 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 h8Q48ZS18716 for ; Fri, 26 Sep 2003 04:08:35 GMT Received: by guelah.shrubbery.net (Postfix) id 693A317D32E; Fri, 26 Sep 2003 04:08:34 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 4514B17D331; Fri, 26 Sep 2003 04:08:34 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from mta01-svc.ntlworld.com (mta01-svc.ntlworld.com [62.253.162.41]) by guelah.shrubbery.net (Postfix) with ESMTP id D26B717D32E for ; Fri, 26 Sep 2003 04:08:31 +0000 (UTC) Received: from blueyonder.co.uk ([80.6.200.56]) by mta01-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20030926040830.RHWP14572.mta01-svc.ntlworld.com@blueyonder.co.uk>; Fri, 26 Sep 2003 05:08:30 +0100 Message-ID: <3F73BBCF.9070201@blueyonder.co.uk> Date: Fri, 26 Sep 2003 05:08:47 +0100 From: Mark Cooper User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5b) Gecko/20030917 X-Accept-Language: en, en-us MIME-Version: 1.0 To: rancid-discuss@shrubbery.net Cc: James Kilton Subject: Re: Prompt issues on Bay routers. References: <20030920225457.42814.qmail@web11701.mail.yahoo.com> In-Reply-To: <20030920225457.42814.qmail@web11701.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk James Kilton wrote: > Sorry for the delay on this, I was out of town. My versions of brancid and blogin are attached. > You should be able to run 'diff' to see what I changed. OK, as I see it ( and please dont take this the wrong way, I'm jut trying to work out what the differences are ) .... [root@dire new]# diff -b blogin blogin.james 441a443 > -re "bcc>" {} 449a452 > -re "bcc>" {} 483c486 < set prompt "#" --- > set prompt {TN} 486c489 < set prompt "$" --- > set prompt ">" You've added a prompt condition check for "bcc>" in the run_commands function. I'm sure blogin should handle the reprompt normally, but thats probably if it already has the prompt using a ">". You've changed the prompt in the enabled ( # to {TN} ) and non-enabled ( $ to > ) states. This seems strange as the Bay's don't have an 'enabled' state? If you could post the session details of a full login to bcc and back out I would appreciate it :) [root@dire new]# diff -b brancid brancid.james 147c147 < next if (/^\# *uptime +\d+\s*$/); --- > next if (/^\# *uptime +-?\d+\s*$/); 188d187 < 'show config' => "ShowConfig", 196d194 < "show config", 235c233 < if ( (/\>\s?logout$/) || $found_end ) { --- > if ( (/>\s?exit$/) || $found_end ) { 245c243 < while (/>\s*($cmds_regexp)\s*$/) { --- > while (/>\s*($cmds_regexp)\s*$/ | /\$\s*($cmds_regexp)\s*$/) { 262a261,263 > if ( (/>\s?exit$/) || $found_end ) { > $clean_run=1; > } 287a289 > You've made a change to the parsing of the uptime section of the config, no problem. You've removed the first "show config" command to just leave the "show config -all", no problem. You've changed the check for the successful end of the session from looking for the "logout" command to looking for an "exit" command. I don't think this is right, as you will be catching the exit from bcc and not fully logging out. Carnt work out line 245 ( it's five am in the morning and I'm very tired ) but it looks like you've added a check for prompts containing "$"?? Could you tell me what piece of bay kit your trying to login to and what the OS version is? I think this all comes down to revision's of OS and the type of kit involved, for example ( taken from the mail archives ):- My original:- Kit: ASN/AN Router OS: ? Login prompt: login: Initial prompt: $ BCC prompt: bcc> Show config: show config pager: more off Fergus Roche:- Kit: Accelar OS: ? Login prompt: Login: Initial prompt: $ BCC prompt: N/A show config: show config verbose pager: config cli more false James Kilton:- Kit: ? OS: ? Login prompt: Login: Initial prompt: $ BCC prompt: bcc> show config: show config -all pager: more off stefmit:- Kit: ? OS: ? Login prompt: Login: Initial prompt: $ BCC prompt: bcc> show config: show config pager: more off If people could fill in the missing blanks for kit/os, that would be helpful :) At the minimum, the login prompt needs fixing! This can be fixed like this:- [root@dire new]# diff -b blogin.orig blogin.new 540c540 < set u_prompt "(Username|login|user name):" --- > set u_prompt "(Username|\[Ll]ogin|user name):" It seems that the initial prompt is always "$" which is what blogin originally expected so I'm not sure why this is giving a problem? Again, copies of a typical full login ( through to bcc ) would be be helpful, as well as the output from the following:- blogin -c 'bcc; show config' routername setenv NOPIPE=YES;brancid -d routername ( post the .raw file left behind ) Hope that all helps :) -- Mark Cooper http://netmangler.sourceforge.net - Network Management with Attitude http://pvrhw.goldfish.org - Open Source PVR Hardware Database From owner-rancid-discuss-outgoing@shrubbery.net Fri Sep 26 22:46:31 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 h8QMkUS10874 for ; Fri, 26 Sep 2003 22:46:30 GMT Received: by guelah.shrubbery.net (Postfix) id 6A11F17D32E; Fri, 26 Sep 2003 22:46:30 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 4BC9B17D331; Fri, 26 Sep 2003 22:46:30 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from torpedo.monterey.k12.ca.us (smtp.monterey.k12.ca.us [205.155.53.42]) by guelah.shrubbery.net (Postfix) with ESMTP id EB8C517D32E; Fri, 26 Sep 2003 22:46:28 +0000 (UTC) Received: from SQUIDWARD.monterey.k12.ca.us (ids-mgr.monterey.k12.ca.us [10.10.1.19]) by torpedo.monterey.k12.ca.us (Switch-3.0.4/Switch-3.0.0) with ESMTP id h8QMf3BY010905; Fri, 26 Sep 2003 15:41:03 -0700 (PDT) Message-Id: <5.2.1.1.0.20030926153626.00b21b18@mail.monterey.k12.ca.us> X-Sender: azheng@mail.monterey.k12.ca.us X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Fri, 26 Sep 2003 15:46:55 -0700 To: heas@shrubbery.net From: Alex Zheng Subject: can not retrieve config. of a cisco 2924XL switch - 'End of run not found' Cc: rancid-discuss@shrubbery.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk I was able to successfully retrieve config. for a bunch of Cisco routers and switches(5000 series), but not for a cisco 2924XL switch: This is the debug output: %cat5rancid -dl 192.168.1.96 executing clogin -t 90 -c"show version;show boot;show flash;dir bootflash:;dir slot0:;dir slot1:;dir sup-bootflash:;dir sup-microcode:;show module;show port ifindex;write term" 192.168.1.96 executing clogin -t 90 -c"show version;show boot;show flash;dir bootflash:;dir slot0:;dir slot1:;dir sup-bootflash:;dir sup-microcode:;show module;show port ifindex;write term" 192.168.1.96 Done : 192.168.1.96: missed cmd(s): dir sup-bootflash:,write term,dir sup-microcode:,dir slot0:,dir bootflash:,dir slot1:,show port ifindex,show boot,show module,show flash,show version 192.168.1.96: missed cmd(s): dir sup-bootflash:,write term,dir sup-microcode:,dir slot0:,dir bootflash:,dir slot1:,show port ifindex,show boot,show module,show flash,show version 192.168.1.96: End of run not found 192.168.1.96: End of run not found ! I was able to clogin: %clogin 192.168.1.96 192.168.1.96 spawn telnet 192.168.1.96 Trying 192.168.1.96... Connected to 192.168.1.96. Escape character is '^]'. User Access Verification Password: Kerberos: No default realm defined for Kerberos! BLDG(9)IDF(1)>enable Password: BLDG(9)IDF(1)# BLDG(9)IDF(1)# Below is the config file: ! version 12.0 no service pad service timestamps debug uptime service timestamps log uptime service password-encryption ! hostname BLDG(9)IDF(1) ! enable secret 5 ! ! ! ! ! ! ip subnet-zero ! cluster commander-address 0003.e38c.0780 member 2 name west-campus ! ! interface FastEthernet0/1 description MS09.01 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/2 description MS09.02 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/3 description MS09.03 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/4 description MS09.04 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/5 description MS09.05 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/6 description MS09.06 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/7 description MS09.07 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/8 description MS09.08 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/9 description MS09.09 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/10 description MS09.10 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/11 description MS09.11 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/12 description MS09.12 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/13 description MS09.13 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/14 description MS09.14 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/15 description MS09.15 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/16 description MS09.16 duplex half speed 10 switchport access vlan 8 spanning-tree portfast ! interface FastEthernet0/17 description blank ! interface FastEthernet0/18 description MS10.01 duplex half speed 10 switchport access vlan 18 ! interface FastEthernet0/19 description MS10.02 duplex half speed 10 switchport access vlan 18 ! interface FastEthernet0/20 description MS10.03 duplex half speed 10 switchport access vlan 18 ! interface FastEthernet0/21 description MS10.04 duplex half speed 10 switchport access vlan 18 ! interface FastEthernet0/22 description MS10.05 duplex half speed 10 switchport access vlan 18 ! interface FastEthernet0/23 description MS10.06 duplex half speed 10 switchport access vlan 18 ! interface FastEthernet0/24 description MS10.07 duplex half speed 10 switchport access vlan 18 ! interface FastEthernet1/1 switchport mode trunk ! interface FastEthernet1/2 switchport mode trunk ! interface FastEthernet1/3 ! interface FastEthernet1/4 ! interface VLAN1 ip address 192.168.1.96 255.255.255.0 no ip directed-broadcast no ip route-cache ! ip default-gateway 192.168.1.1 ! line con 0 password 7 transport input none stopbits 1 line vty 0 4 password 7 login line vty 5 14 password 7 login line vty 15 login ! end From owner-rancid-discuss-outgoing@shrubbery.net Fri Sep 26 22:53:02 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 h8QMr2S10973 for ; Fri, 26 Sep 2003 22:53:02 GMT Received: by guelah.shrubbery.net (Postfix) id E8E6317D331; Fri, 26 Sep 2003 22:53:01 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id C448717D333; Fri, 26 Sep 2003 22:53:01 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from nt_exchange.fusiontel.com (216-199-153-34.ftl.fdn.com [216.199.153.34]) by guelah.shrubbery.net (Postfix) with ESMTP id 35AC417D331 for ; Fri, 26 Sep 2003 22:53:00 +0000 (UTC) Received: by exchange.fusiontel.com with Internet Mail Service (5.5.2656.59) id ; Fri, 26 Sep 2003 18:52:41 -0400 Message-ID: From: Joshua Sahala To: "'Alex Zheng'" Cc: rancid-discuss@shrubbery.net Subject: RE: can not retrieve config. of a cisco 2924XL switch - 'End of r un not found' Date: Fri, 26 Sep 2003 18:52:40 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk a 2924 is a 'router' as far as rancid is concerned - put it in your router.db file /joshua > >-----Original Message----- > >From: Alex Zheng [mailto:azheng@monterey.k12.ca.us] > >Sent: Friday, September 26, 2003 18:47 > >To: heas@shrubbery.net > >Cc: rancid-discuss@shrubbery.net > >Subject: can not retrieve config. of a cisco 2924XL switch - > >'End of run > >not found' > > > > > > > >I was able to successfully retrieve config. for a bunch of > >Cisco routers > >and switches(5000 series), but not for a cisco 2924XL switch: > > > >This is the debug output: > > > >%cat5rancid -dl 192.168.1.96 > >executing clogin -t 90 -c"show version;show boot;show flash;dir > >bootflash:;dir slot0:;dir slot1:;dir sup-bootflash:;dir > >sup-microcode:;show > >module;show port ifindex;write term" 192.168.1.96 > >executing clogin -t 90 -c"show version;show boot;show flash;dir > >bootflash:;dir slot0:;dir slot1:;dir sup-bootflash:;dir > >sup-microcode:;show > >module;show port ifindex;write term" 192.168.1.96 > >Done : > >192.168.1.96: missed cmd(s): dir sup-bootflash:,write term,dir > >sup-microcode:,dir slot0:,dir bootflash:,dir slot1:,show > >port ifindex,show > >boot,show module,show flash,show version > >192.168.1.96: missed cmd(s): dir sup-bootflash:,write term,dir > >sup-microcode:,dir slot0:,dir bootflash:,dir slot1:,show > >port ifindex,show > >boot,show module,show flash,show version > >192.168.1.96: End of run not found > >192.168.1.96: End of run not found > >! > > > > > > > >I was able to clogin: > > > >%clogin 192.168.1.96 > >192.168.1.96 > >spawn telnet 192.168.1.96 > >Trying 192.168.1.96... > >Connected to 192.168.1.96. > >Escape character is '^]'. > > > > > >User Access Verification > > > >Password: Kerberos: No default realm defined for Kerberos! > > > >BLDG(9)IDF(1)>enable > >Password: > >BLDG(9)IDF(1)# > >BLDG(9)IDF(1)# > > > > > > > >Below is the config file: > > > > > > > >! > >version 12.0 > >no service pad > >service timestamps debug uptime > >service timestamps log uptime > >service password-encryption > >! > >hostname BLDG(9)IDF(1) > >! > >enable secret 5 > >! > >! > >! > >! > >! > >! > >ip subnet-zero > >! > >cluster commander-address 0003.e38c.0780 member 2 name west-campus > >! > >! > >interface FastEthernet0/1 > > description MS09.01 > > duplex half > > speed 10 > > switchport access vlan 8 > > spanning-tree portfast > >! > >interface FastEthernet0/2 > > description MS09.02 > > duplex half > > speed 10 > > switchport access vlan 8 > > spanning-tree portfast > >! > >interface FastEthernet0/3 > > description MS09.03 > > duplex half > > speed 10 > > switchport access vlan 8 > > spanning-tree portfast > >! > >interface FastEthernet0/4 > > description MS09.04 > > duplex half > > speed 10 > > switchport access vlan 8 > > spanning-tree portfast > >! > >interface FastEthernet0/5 > > description MS09.05 > > duplex half > > speed 10 > > switchport access vlan 8 > > spanning-tree portfast > >! > >interface FastEthernet0/6 > > description MS09.06 > > duplex half > > speed 10 > > switchport access vlan 8 > > spanning-tree portfast > >! > >interface FastEthernet0/7 > > description MS09.07 > > duplex half > > speed 10 > > switchport access vlan 8 > > spanning-tree portfast > >! > >interface FastEthernet0/8 > > description MS09.08 > > duplex half > > speed 10 > > switchport access vlan 8 > > spanning-tree portfast > >! > >interface FastEthernet0/9 > > description MS09.09 > > duplex half > > speed 10 > > switchport access vlan 8 > > spanning-tree portfast > >! > >interface FastEthernet0/10 > > description MS09.10 > > duplex half > > speed 10 > > switchport access vlan 8 > > spanning-tree portfast > >! > >interface FastEthernet0/11 > > description MS09.11 > > duplex half > > speed 10 > > switchport access vlan 8 > > spanning-tree portfast > >! > >interface FastEthernet0/12 > > description MS09.12 > > duplex half > > speed 10 > > switchport access vlan 8 > > spanning-tree portfast > >! > >interface FastEthernet0/13 > > description MS09.13 > > duplex half > > speed 10 > > switchport access vlan 8 > > spanning-tree portfast > >! > >interface FastEthernet0/14 > > description MS09.14 > > duplex half > > speed 10 > > switchport access vlan 8 > > spanning-tree portfast > >! > >interface FastEthernet0/15 > > description MS09.15 > > duplex half > > speed 10 > > switchport access vlan 8 > > spanning-tree portfast > >! > >interface FastEthernet0/16 > > description MS09.16 > > duplex half > > speed 10 > > switchport access vlan 8 > > spanning-tree portfast > >! > >interface FastEthernet0/17 > > description blank > >! > >interface FastEthernet0/18 > > description MS10.01 > > duplex half > > speed 10 > > switchport access vlan 18 > >! > >interface FastEthernet0/19 > > description MS10.02 > > duplex half > > speed 10 > > switchport access vlan 18 > >! > >interface FastEthernet0/20 > > description MS10.03 > > duplex half > > speed 10 > > switchport access vlan 18 > >! > >interface FastEthernet0/21 > > description MS10.04 > > duplex half > > speed 10 > > switchport access vlan 18 > >! > >interface FastEthernet0/22 > > description MS10.05 > > duplex half > > speed 10 > > switchport access vlan 18 > >! > >interface FastEthernet0/23 > > description MS10.06 > > duplex half > > speed 10 > > switchport access vlan 18 > >! > >interface FastEthernet0/24 > > description MS10.07 > > duplex half > > speed 10 > > switchport access vlan 18 > >! > >interface FastEthernet1/1 > > switchport mode trunk > >! > >interface FastEthernet1/2 > > switchport mode trunk > >! > >interface FastEthernet1/3 > >! > >interface FastEthernet1/4 > >! > >interface VLAN1 > > ip address 192.168.1.96 255.255.255.0 > > no ip directed-broadcast > > no ip route-cache > >! > >ip default-gateway 192.168.1.1 > >! > >line con 0 > > password 7 > > transport input none > > stopbits 1 > >line vty 0 4 > > password 7 > > login > >line vty 5 14 > > password 7 > > login > >line vty 15 > > login > >! > >end > > > > From owner-rancid-discuss-outgoing@shrubbery.net Fri Sep 26 22:59:22 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 h8QMxMS11079 for ; Fri, 26 Sep 2003 22:59:22 GMT Received: by guelah.shrubbery.net (Postfix) id 53D3417D331; Fri, 26 Sep 2003 22:59:22 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 3337217D333; Fri, 26 Sep 2003 22:59:22 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from torpedo.monterey.k12.ca.us (smtp.monterey.k12.ca.us [205.155.53.42]) by guelah.shrubbery.net (Postfix) with ESMTP id 3166717D331 for ; Fri, 26 Sep 2003 22:59:21 +0000 (UTC) Received: from SQUIDWARD.monterey.k12.ca.us (ids-mgr.monterey.k12.ca.us [10.10.1.19]) by torpedo.monterey.k12.ca.us (Switch-3.0.4/Switch-3.0.0) with ESMTP id h8QMrtBY012449 for ; Fri, 26 Sep 2003 15:53:55 -0700 (PDT) Message-Id: <5.2.1.1.0.20030926155948.026b8750@mail.monterey.k12.ca.us> X-Sender: azheng@mail.monterey.k12.ca.us X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Fri, 26 Sep 2003 16:00:00 -0700 To: rancid-discuss@shrubbery.net From: Alex Zheng Subject: Fwd: RE: can not retrieve config. of a cisco 2924XL switch - 'End of r un not found' Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk >Date: Fri, 26 Sep 2003 15:59:29 -0700 >To: Joshua Sahala >From: Alex Zheng >Subject: RE: can not retrieve config. of a cisco 2924XL switch - 'End of r >un not found' > >below is the output of 'rancid' ( I modified router.db as well: >192.168.1.96:cisco:up) > > >%rancid -dl 192.168.1.96 >executing clogin -t 90 -c"show version;show install active;show env >all;show gsr chassis;show boot;show bootvar;show variables boot;show >flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all >disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir >/all sup-bootflash:;dir /all sup-microcode:;show controllers;show >controllers cbus;show diagbus;show diag;show module;show c7200;show vtp >status;show vlan;write term" 192.168.1.96 >executing clogin -t 90 -c"show version;show install active;show env >all;show gsr chassis;show boot;show bootvar;show variables boot;show >flash;dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all >disk0:;dir /all slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir >/all sup-bootflash:;dir /all sup-microcode:;show controllers;show >controllers cbus;show diagbus;show diag;show module;show c7200;show vtp >status;show vlan;write term" 192.168.1.96 >HIT COMMAND:BLDG(9)IDF(1)#show version > In ShowVersion: BLDG(9)IDF(1)#show version >TYPE = 2900XL >Done : >192.168.1.96: missed cmd(s): show diagbus,write term,dir /all >bootflash:,show env all,show controllers cbus,dir /all nvram:,show >module,dir /all sup-bootflash:,show c7200,show variables boot,show >flash,show vlan,dir /all slot0:,show install active,dir /all slot1:,show >boot,dir /all slot2:,show diag,show controllers,show gsr chassis,dir /all >sup-microcode:,dir /all disk0:,dir /all disk1:,dir /all disk2:,show >bootvar,show vtp status >192.168.1.96: missed cmd(s): show diagbus,write term,dir /all >bootflash:,show env all,show controllers cbus,dir /all nvram:,show >module,dir /all sup-bootflash:,show c7200,show variables boot,show >flash,show vlan,dir /all slot0:,show install active,dir /all slot1:,show >boot,dir /all slot2:,show diag,show controllers,show gsr chassis,dir /all >sup-microcode:,dir /all disk0:,dir /all disk1:,dir /all disk2:,show >bootvar,show vtp status >192.168.1.96: End of run not found >192.168.1.96: End of run not found > > > >At 06:52 PM 9/26/2003 -0400, you wrote: >>a 2924 is a 'router' as far as rancid is concerned - put >>it in your router.db file >> >>/joshua >> >> > >-----Original Message----- >> > >From: Alex Zheng [mailto:azheng@monterey.k12.ca.us] >> > >Sent: Friday, September 26, 2003 18:47 >> > >To: heas@shrubbery.net >> > >Cc: rancid-discuss@shrubbery.net >> > >Subject: can not retrieve config. of a cisco 2924XL switch - >> > >'End of run >> > >not found' >> > > >> > > >> > > >> > >I was able to successfully retrieve config. for a bunch of >> > >Cisco routers >> > >and switches(5000 series), but not for a cisco 2924XL switch: >> > > >> > >This is the debug output: >> > > >> > >%cat5rancid -dl 192.168.1.96 >> > >executing clogin -t 90 -c"show version;show boot;show flash;dir >> > >bootflash:;dir slot0:;dir slot1:;dir sup-bootflash:;dir >> > >sup-microcode:;show >> > >module;show port ifindex;write term" 192.168.1.96 >> > >executing clogin -t 90 -c"show version;show boot;show flash;dir >> > >bootflash:;dir slot0:;dir slot1:;dir sup-bootflash:;dir >> > >sup-microcode:;show >> > >module;show port ifindex;write term" 192.168.1.96 >> > >Done : >> > >192.168.1.96: missed cmd(s): dir sup-bootflash:,write term,dir >> > >sup-microcode:,dir slot0:,dir bootflash:,dir slot1:,show >> > >port ifindex,show >> > >boot,show module,show flash,show version >> > >192.168.1.96: missed cmd(s): dir sup-bootflash:,write term,dir >> > >sup-microcode:,dir slot0:,dir bootflash:,dir slot1:,show >> > >port ifindex,show >> > >boot,show module,show flash,show version >> > >192.168.1.96: End of run not found >> > >192.168.1.96: End of run not found >> > >! >> > > >> > > >> > > >> > >I was able to clogin: >> > > >> > >%clogin 192.168.1.96 >> > >192.168.1.96 >> > >spawn telnet 192.168.1.96 >> > >Trying 192.168.1.96... >> > >Connected to 192.168.1.96. >> > >Escape character is '^]'. >> > > >> > > >> > >User Access Verification >> > > >> > >Password: Kerberos: No default realm defined for Kerberos! >> > > >> > >BLDG(9)IDF(1)>enable >> > >Password: >> > >BLDG(9)IDF(1)# >> > >BLDG(9)IDF(1)# >> > > >> > > >> > > >> > >Below is the config file: >> > > >> > > >> > > >> > >! >> > >version 12.0 >> > >no service pad >> > >service timestamps debug uptime >> > >service timestamps log uptime >> > >service password-encryption >> > >! >> > >hostname BLDG(9)IDF(1) >> > >! >> > >enable secret 5 >> > >! >> > >! >> > >! >> > >! >> > >! >> > >! >> > >ip subnet-zero >> > >! >> > >cluster commander-address 0003.e38c.0780 member 2 name west-campus >> > >! >> > >! >> > >interface FastEthernet0/1 >> > > description MS09.01 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 8 >> > > spanning-tree portfast >> > >! >> > >interface FastEthernet0/2 >> > > description MS09.02 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 8 >> > > spanning-tree portfast >> > >! >> > >interface FastEthernet0/3 >> > > description MS09.03 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 8 >> > > spanning-tree portfast >> > >! >> > >interface FastEthernet0/4 >> > > description MS09.04 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 8 >> > > spanning-tree portfast >> > >! >> > >interface FastEthernet0/5 >> > > description MS09.05 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 8 >> > > spanning-tree portfast >> > >! >> > >interface FastEthernet0/6 >> > > description MS09.06 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 8 >> > > spanning-tree portfast >> > >! >> > >interface FastEthernet0/7 >> > > description MS09.07 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 8 >> > > spanning-tree portfast >> > >! >> > >interface FastEthernet0/8 >> > > description MS09.08 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 8 >> > > spanning-tree portfast >> > >! >> > >interface FastEthernet0/9 >> > > description MS09.09 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 8 >> > > spanning-tree portfast >> > >! >> > >interface FastEthernet0/10 >> > > description MS09.10 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 8 >> > > spanning-tree portfast >> > >! >> > >interface FastEthernet0/11 >> > > description MS09.11 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 8 >> > > spanning-tree portfast >> > >! >> > >interface FastEthernet0/12 >> > > description MS09.12 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 8 >> > > spanning-tree portfast >> > >! >> > >interface FastEthernet0/13 >> > > description MS09.13 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 8 >> > > spanning-tree portfast >> > >! >> > >interface FastEthernet0/14 >> > > description MS09.14 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 8 >> > > spanning-tree portfast >> > >! >> > >interface FastEthernet0/15 >> > > description MS09.15 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 8 >> > > spanning-tree portfast >> > >! >> > >interface FastEthernet0/16 >> > > description MS09.16 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 8 >> > > spanning-tree portfast >> > >! >> > >interface FastEthernet0/17 >> > > description blank >> > >! >> > >interface FastEthernet0/18 >> > > description MS10.01 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 18 >> > >! >> > >interface FastEthernet0/19 >> > > description MS10.02 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 18 >> > >! >> > >interface FastEthernet0/20 >> > > description MS10.03 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 18 >> > >! >> > >interface FastEthernet0/21 >> > > description MS10.04 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 18 >> > >! >> > >interface FastEthernet0/22 >> > > description MS10.05 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 18 >> > >! >> > >interface FastEthernet0/23 >> > > description MS10.06 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 18 >> > >! >> > >interface FastEthernet0/24 >> > > description MS10.07 >> > > duplex half >> > > speed 10 >> > > switchport access vlan 18 >> > >! >> > >interface FastEthernet1/1 >> > > switchport mode trunk >> > >! >> > >interface FastEthernet1/2 >> > > switchport mode trunk >> > >! >> > >interface FastEthernet1/3 >> > >! >> > >interface FastEthernet1/4 >> > >! >> > >interface VLAN1 >> > > ip address 192.168.1.96 255.255.255.0 >> > > no ip directed-broadcast >> > > no ip route-cache >> > >! >> > >ip default-gateway 192.168.1.1 >> > >! >> > >line con 0 >> > > password 7 >> > > transport input none >> > > stopbits 1 >> > >line vty 0 4 >> > > password 7 >> > > login >> > >line vty 5 14 >> > > password 7 >> > > login >> > >line vty 15 >> > > login >> > >! >> > >end >> > > >> > > From owner-rancid-discuss-outgoing@shrubbery.net Sat Sep 27 16:51:28 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 h8RGpSS02520 for ; Sat, 27 Sep 2003 16:51:28 GMT Received: by guelah.shrubbery.net (Postfix) id D94F317D32E; Sat, 27 Sep 2003 16:51:27 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id C00BF17D335; Sat, 27 Sep 2003 16:51:27 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from smtp.top.net.ua (mail.top.net.ua [193.109.60.198]) by guelah.shrubbery.net (Postfix) with ESMTP id C004217D32E for ; Sat, 27 Sep 2003 16:51:20 +0000 (UTC) Received: from smtp.top.net.ua (localhost [127.0.0.1]) by smtp.top.net.ua (8.12.8p2/8.12.8) with ESMTP id h8RGpIcu019874 for ; Sat, 27 Sep 2003 19:51:18 +0300 (EEST) (envelope-from mt@smtp.top.net.ua) Received: (from mt@localhost) by smtp.top.net.ua (8.12.8p2/8.12.8/Submit) id h8RGpIoe019873 for rancid-discuss@shrubbery.net; Sat, 27 Sep 2003 19:51:18 +0300 (EEST) Date: Sat, 27 Sep 2003 19:51:18 +0300 From: Maxim Tuliuk To: rancid-discuss@shrubbery.net Subject: zyxel ies Message-ID: <20030927165118.GA89524@top.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hello I'd like to write a module for zyxel (http://www.zyxel.com/product/index.php) devices. Did anyone look a template for writing new modules, or internal documentation? -- Maxim Tuliuk WWW: http://www.primats.org.ua/~mt/ ICQ: 21134222 The bike is absolute freedom of moving From owner-rancid-discuss-outgoing@shrubbery.net Sun Sep 28 17:01:14 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 h8SH1ES00917 for ; Sun, 28 Sep 2003 17:01:14 GMT Received: by guelah.shrubbery.net (Postfix) id E778617D32E; Sun, 28 Sep 2003 17:01:13 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id C352917D331; Sun, 28 Sep 2003 17:01:13 +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 79B1917D32E for ; Sun, 28 Sep 2003 17:01:12 +0000 (UTC) Received: from tower.partan.com (localhost.partan.com [127.0.0.1]) by tower.partan.com (8.12.6p2/8.12.6) with ESMTP id h8SH11TV060635; Sun, 28 Sep 2003 13:01:01 -0400 (EDT) (envelope-from asp@tower.partan.com) Received: (from asp@localhost) by tower.partan.com (8.12.6p2/8.12.6/Submit) id h8SH0p8A060629; Sun, 28 Sep 2003 13:00:51 -0400 (EDT) (envelope-from asp) Date: Sun, 28 Sep 2003 13:00:51 -0400 From: Andrew Partan To: Maxim Tuliuk Cc: rancid-discuss@shrubbery.net Subject: Re: zyxel ies Message-ID: <20030928170051.GB60465@partan.com> References: <20030927165118.GA89524@top.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030927165118.GA89524@top.net.ua> User-Agent: Mutt/1.4.1i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On Sat, Sep 27, 2003 at 07:51:18PM +0300, Maxim Tuliuk wrote: > Did anyone look a template for writing new modules, or internal documentation? Mostly when looking to support a new device, I grab a copy of bin/rancid.in (the cisco bits) and hack away at it to support the new device. And if bin/clogin.in does not work or it not easily modifiable to add support for the new device, I take a copy of it & hack away to get it to log me in. --asp From owner-rancid-discuss-outgoing@shrubbery.net Mon Sep 29 13:26: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 h8TDQAS24562 for ; Mon, 29 Sep 2003 13:26:10 GMT Received: by guelah.shrubbery.net (Postfix) id 622ED17D32E; Mon, 29 Sep 2003 13:26:10 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 44EA417D331; Mon, 29 Sep 2003 13:26:10 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from web11701.mail.yahoo.com (web11701.mail.yahoo.com [216.136.172.67]) by guelah.shrubbery.net (Postfix) with SMTP id 84C2017D32E for ; Mon, 29 Sep 2003 13:26:08 +0000 (UTC) Message-ID: <20030929132607.79221.qmail@web11701.mail.yahoo.com> Received: from [68.166.42.162] by web11701.mail.yahoo.com via HTTP; Mon, 29 Sep 2003 06:26:07 PDT Date: Mon, 29 Sep 2003 06:26:07 -0700 (PDT) From: James Kilton Subject: Re: Prompt issues on Bay routers. To: rancid-discuss@shrubbery.net In-Reply-To: <200309180535.09464.stefmit@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Mark Cooper wrote: > OK, as I see it ( and please dont take this the wrong way, > I'm jut trying to work out what the differences are ) .... Heh, not to worry. I'm by no means a programmer and hacked around with the Rancid code until I finally stumbled upon something that worked. Nothing will hurt my feelings here. ;-) > [root@dire new]# diff -b blogin blogin.james > 441a443 > > -re "bcc>" {} > 449a452 > > -re "bcc>" {} > 483c486 > < set prompt "#" > --- > > set prompt {TN} > 486c489 > < set prompt "$" > --- > > set prompt ">" > > You've added a prompt condition check for "bcc>" in the > run_commands function. I'm sure blogin should handle the > reprompt normally, but thats probably if it already has > the prompt using a ">". The primary issue to my untrained eye seemed to be the change of prompt when going from the TI interface to BCC. So most of the time I spent on this was spent trying to figure out how to get the scripts to first recognize the TI prompt, then change to the BCC prompt after running the 'bcc' command. > You've changed the prompt in the enabled ( # to {TN} ) > and non-enabled ( $ to > ) states. This seems strange as > the Bay's don't have an 'enabled' state? Some of my changes likely aren't necessary - I kept trying things until I had success and didn't go back afterwards to determine for sure what changes were and weren't necessary. The change to '{TN}' above is necessary in my versions though - if I replace it with something else, blogin never executes the initial 'bcc' command. But the change from '$' to '>' may not be - I changed it back and was still able to login and run commands. > If you could post the session details of a full login to bcc > and back out I would appreciate it :) Sure thing: ------------------------------------------------------ [rancid@syslog bin]$ ./blogin -c "bcc;show system memory;exit" 10.0.0.1 10.0.0.1 spawn telnet 10.0.0.1 Trying 10.0.0.1... Connected to 10.0.0.1. Escape character is '^]'. Nortel Networks, Inc. and its Licensors. Copyright 1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002. All rights reserved. Login: Password: Welcome to the Backbone Technician Interface Mounting new volume... Device label: Directory: 1: New Present Working Directory: 1: [1:TN]$ more off More Mode: OFF Lines per screen: 44 [1:TN]$ bcc Welcome to the Bay Command Console! * To enter configuration mode, type config * To list all system commands, type ? * To exit the BCC, type exit bcc> show system memory show system memory Sep 29, 2003 12:29:41 [GMT] Memory Usage Statistics (Megabytes): ------------------------------------ Slot Total Used Free %Free ---- -------- -------- -------- ------- 1 21.09 M 6.63 M 14.46 M 68% bcc> exit [1:TN]$ logout TI session logged out. ** Goodbye. ** Connection closed by foreign host. ------------------------------------------------------ > [root@dire new]# diff -b brancid brancid.james > 147c147 > < next if (/^\# *uptime +\d+\s*$/); > --- > > next if (/^\# *uptime +-?\d+\s*$/); > 188d187 > < 'show config' => "ShowConfig", > 196d194 > < "show config", > 235c233 > < if ( (/\>\s?logout$/) || $found_end ) { > --- > > if ( (/>\s?exit$/) || $found_end ) { > 245c243 > < while (/>\s*($cmds_regexp)\s*$/) { > --- > > while (/>\s*($cmds_regexp)\s*$/ | /\$\s*($cmds_regexp)\s*$/) { > 262a261,263 > > if ( (/>\s?exit$/) || $found_end ) { > > $clean_run=1; > > } > 287a289 > > You've made a change to the parsing of the uptime section of > the config, no problem. Yes, this was to combat a BCC bug where the uptime value is sometimes a negative number. > You've removed the first "show config" command to just leave > the "show config -all", no problem. 'show config' shows the first few lines or so of 'show config -all' (the software build date, SNMP contact info, and uptime), so the latter command is the only one I was interested in. > You've changed the check for the successful end of the session from > looking for the "logout" command to looking for an "exit" command. > I don't think this is right, as you will be catching the exit from > bcc and not fully logging out. This was another thing that I had trouble with and had to work around in an ugly fashion. Once the prompt issues were resolved I was successfully logging in, running commands, and logging out, but the script still wasn't detecting the end of session properly and was hence giving an error. It turns out that a simple 'logout' from BCC will log you out of the router (i.e., no need to do 'exit' first), so it might be the case that the 'end of session' code would work as is when 'logout' is run in of itself. I haven't tried it, though. > Carnt work out line 245 ( it's five am in the morning and I'm very > tired ) but it looks like you've added a check for prompts containing > "$"?? Yep and this was a required change. Otherwise I get "missed cmd(s): bcc". My guess was/is that the original code never enters the 'while' loop when 'bcc' is run because it is run from the TI prompt which ends in '$'. > Could you tell me what piece of bay kit your trying to login to and > what the OS version is? I'm primarily using ARN routers running code version 14.0 and 15.2. > At the minimum, the login prompt needs fixing! This can be fixed > like this:- My versions actually work without this change. Don't know how though. ;-) > It seems that the initial prompt is always "$" which is what blogin > originally expected so I'm not sure why this is giving a problem? The problem for me was the prompt change upon execution of the 'bcc' command. I was originally going to try to have the code treat the 'bcc' command like the 'enable' command and work from there (because the code as is expects a prompt change there), but I ended up going the ugly route instead. > Again, copies of a typical full login ( through to bcc ) would be be > helpful, as well as the output from the following:- > > blogin -c 'bcc; show config' routername Posted above, though I ran "show system memory" instead to avoid having to post a long config. > setenv NOPIPE=YES;brancid -d routername ( post the .raw file left behind ) Here's the .raw file, but again with a shorter command: -------------------------------------------------------- [rancid@syslog ~/bin]$ cat 10.0.0.1.raw 10.0.0.1 spawn telnet 10.0.0.1 Trying 10.0.0.1... Connected to 10.0.0.1. Escape character is '^]'. Nortel Networks, Inc. and its Licensors. Copyright 1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002. All rights reserved. Login: Password: Welcome to the Backbone Technician Interface Mounting new volume... Device label: Directory: 1: New Present Working Directory: 1: [1:TN]$ more off More Mode: OFF Lines per screen: 44 [1:TN]$ bcc Welcome to the Bay Command Console! * To enter configuration mode, type config * To list all system commands, type ? * To exit the BCC, type exit bcc> show system memory show system memory Sep 29, 2003 13:03:04 [GMT] Memory Usage Statistics (Megabytes): ------------------------------------ Slot Total Used Free %Free ---- -------- -------- -------- ------- 1 21.09 M 6.64 M 14.44 M 68% bcc> exit [1:TN]$ logout TI session logged out. ** Goodbye. ** Connection closed by foreign host. -------------------------------------------------------- > Hope that all helps :) By all means, let me know if you need anything else. I'm happy to help. __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From owner-rancid-discuss-outgoing@shrubbery.net Mon Sep 29 14:00: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 h8TE09S25149 for ; Mon, 29 Sep 2003 14:00:09 GMT Received: by guelah.shrubbery.net (Postfix) id ED0AA17D331; Mon, 29 Sep 2003 14:00:09 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id CAE8517D333; Mon, 29 Sep 2003 14:00:08 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from web11701.mail.yahoo.com (web11701.mail.yahoo.com [216.136.172.67]) by guelah.shrubbery.net (Postfix) with SMTP id D438217D331 for ; Mon, 29 Sep 2003 14:00:07 +0000 (UTC) Message-ID: <20030929140006.84374.qmail@web11701.mail.yahoo.com> Received: from [68.166.42.162] by web11701.mail.yahoo.com via HTTP; Mon, 29 Sep 2003 07:00:06 PDT Date: Mon, 29 Sep 2003 07:00:06 -0700 (PDT) From: James Kilton Subject: Re: Prompt issues on Bay routers. To: rancid-discuss@shrubbery.net In-Reply-To: <20030929132607.79221.qmail@web11701.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk --- James Kilton wrote: > > At the minimum, the login prompt needs fixing! This can be fixed > > like this:- > > My versions actually work without this change. Don't know how though. > ;-) I now see that I made changes in .cloginrc which I think are responsible for this: add userprompt * {Login:} __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From owner-rancid-discuss-outgoing@shrubbery.net Mon Sep 29 19:59:38 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 h8TJxcS02637 for ; Mon, 29 Sep 2003 19:59:38 GMT Received: by guelah.shrubbery.net (Postfix) id C58AC17D32E; Mon, 29 Sep 2003 19:59:37 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 94B7917D331; Mon, 29 Sep 2003 19:59:37 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 907A617D330; Mon, 29 Sep 2003 19:59:36 +0000 (UTC) Date: Mon, 29 Sep 2003 12:59:36 -0700 From: john heasley To: Alex Zheng Cc: rancid-discuss@shrubbery.net Subject: Re: Fwd: RE: can not retrieve config. of a cisco 2924XL switch - 'End of r un not found' Message-ID: <20030929195936.GM16568@shrubbery.net> References: <5.2.1.1.0.20030926155948.026b8750@mail.monterey.k12.ca.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.2.1.1.0.20030926155948.026b8750@mail.monterey.k12.ca.us> 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, Sep 26, 2003 at 04:00:00PM -0700, Alex Zheng: > > >Date: Fri, 26 Sep 2003 15:59:29 -0700 > >To: Joshua Sahala > >From: Alex Zheng > >Subject: RE: can not retrieve config. of a cisco 2924XL switch - 'End of r > >un not found' > > > >below is the output of 'rancid' ( I modified router.db as well: > >192.168.1.96:cisco:up) > >HIT COMMAND:BLDG(9)IDF(1)#show version > > In ShowVersion: BLDG(9)IDF(1)#show version > >TYPE = 2900XL please send the file 192.168.1.96.raw from NOPIPE=YES;export NOPIPE rancid -d 192.168.1.96 and include what versions of rancid, expect and o/s are being used. From owner-rancid-discuss-outgoing@shrubbery.net Mon Sep 29 20:21:23 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 h8TKLNS03111 for ; Mon, 29 Sep 2003 20:21:23 GMT Received: by guelah.shrubbery.net (Postfix) id B847F17D332; Mon, 29 Sep 2003 20:21:22 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 9631C17D333; Mon, 29 Sep 2003 20:21:22 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: from torpedo.monterey.k12.ca.us (torpedo.monterey.k12.ca.us [205.155.53.42]) by guelah.shrubbery.net (Postfix) with ESMTP id 3E92217D330; Mon, 29 Sep 2003 20:21:21 +0000 (UTC) Received: from SQUIDWARD.monterey.k12.ca.us (ids-mgr.monterey.k12.ca.us [10.10.1.19]) by torpedo.monterey.k12.ca.us (Switch-3.0.4/Switch-3.0.0) with ESMTP id h8TKFbBY014647; Mon, 29 Sep 2003 13:15:37 -0700 (PDT) Message-Id: <5.2.1.1.0.20030929132107.02747bb8@mail.monterey.k12.ca.us> X-Sender: azheng@mail.monterey.k12.ca.us X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Mon, 29 Sep 2003 13:21:40 -0700 To: john heasley From: Alex Zheng Subject: Re: Fwd: RE: can not retrieve config. of a cisco 2924XL switch - 'End of r un not found' Cc: rancid-discuss@shrubbery.net In-Reply-To: <20030929195936.GM16568@shrubbery.net> References: <5.2.1.1.0.20030926155948.026b8750@mail.monterey.k12.ca.us> <5.2.1.1.0.20030926155948.026b8750@mail.monterey.k12.ca.us> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Figured out why. The script will break if the host name contain '(' or ')'. At 12:59 PM 9/29/2003 -0700, john heasley wrote: >Fri, Sep 26, 2003 at 04:00:00PM -0700, Alex Zheng: > > > > >Date: Fri, 26 Sep 2003 15:59:29 -0700 > > >To: Joshua Sahala > > >From: Alex Zheng > > >Subject: RE: can not retrieve config. of a cisco 2924XL switch - 'End > of r > > >un not found' > > > > > >below is the output of 'rancid' ( I modified router.db as well: > > >192.168.1.96:cisco:up) > > > >HIT COMMAND:BLDG(9)IDF(1)#show version > > > In ShowVersion: BLDG(9)IDF(1)#show version > > >TYPE = 2900XL > >please send the file 192.168.1.96.raw from > NOPIPE=YES;export NOPIPE > rancid -d 192.168.1.96 > >and include what versions of rancid, expect and o/s are being used. From owner-rancid-discuss-outgoing@shrubbery.net Mon Sep 29 20:23:57 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 h8TKNvS03120 for ; Mon, 29 Sep 2003 20:23:57 GMT Received: by guelah.shrubbery.net (Postfix) id 16A4617D333; Mon, 29 Sep 2003 20:23:57 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id EA7B217D335; Mon, 29 Sep 2003 20:23:56 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 036F717D334; Mon, 29 Sep 2003 20:23:55 +0000 (UTC) Date: Mon, 29 Sep 2003 13:23:55 -0700 From: john heasley To: Alex Zheng Cc: rancid-discuss@shrubbery.net Subject: Re: Fwd: RE: can not retrieve config. of a cisco 2924XL switch - 'End of r un not found' Message-ID: <20030929202355.GP16568@shrubbery.net> References: <5.2.1.1.0.20030926155948.026b8750@mail.monterey.k12.ca.us> <5.2.1.1.0.20030926155948.026b8750@mail.monterey.k12.ca.us> <5.2.1.1.0.20030929132107.02747bb8@mail.monterey.k12.ca.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.2.1.1.0.20030929132107.02747bb8@mail.monterey.k12.ca.us> 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 ok. What version of rancid? Mon, Sep 29, 2003 at 01:21:40PM -0700, Alex Zheng: > Figured out why. The script will break if the host name contain '(' or ')'. > > > > > At 12:59 PM 9/29/2003 -0700, john heasley wrote: > >Fri, Sep 26, 2003 at 04:00:00PM -0700, Alex Zheng: > >> > >> >Date: Fri, 26 Sep 2003 15:59:29 -0700 > >> >To: Joshua Sahala > >> >From: Alex Zheng > >> >Subject: RE: can not retrieve config. of a cisco 2924XL switch - 'End > >of r > >> >un not found' > >> > > >> >below is the output of 'rancid' ( I modified router.db as well: > >> >192.168.1.96:cisco:up) > > > >> >HIT COMMAND:BLDG(9)IDF(1)#show version > >> > In ShowVersion: BLDG(9)IDF(1)#show version > >> >TYPE = 2900XL > > > >please send the file 192.168.1.96.raw from > > NOPIPE=YES;export NOPIPE > > rancid -d 192.168.1.96 > > > >and include what versions of rancid, expect and o/s are being used.