From owner-rancid-discuss-outgoing@shrubbery.net Fri Sep 3 19:04:54 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 147AB11CE30 for ; Fri, 3 Sep 2004 19:04:54 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 5ECBD1113C; Fri, 3 Sep 2004 19:04:53 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 509BA11149; Fri, 3 Sep 2004 19:04:53 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from panorama.Covad.COM (panorama.covad.com [66.134.72.15]) by guelah.shrubbery.net (Postfix) with ESMTP id 87E5B1113C for ; Fri, 3 Sep 2004 19:04:52 +0000 (UTC) Received: from zanxmb00.cc-ntd1.covad.com (zanxmb00.corp.covad.com [172.16.2.119]) by panorama.Covad.COM (8.9.3/8.8.7) with ESMTP id MAA04105 for ; Fri, 3 Sep 2004 12:04:51 -0700 (PDT) Received: from ZANEVS01.cc-ntd1.covad.com ([172.16.2.112]) by zanxmb00.cc-ntd1.covad.com with Microsoft SMTPSVC(5.0.2195.5329); Fri, 3 Sep 2004 12:04:51 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6446.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: jerancid for ERX's with "service manual-commit"? Date: Fri, 3 Sep 2004 12:04:50 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: jerancid for ERX's with "service manual-commit"? Thread-Index: AcSR6OM14BKfIy2SRluH3yYsmtFeNQ== From: "Williamson, Todd" To: X-OriginalArrivalTime: 03 Sep 2004 19:04:51.0898 (UTC) FILETIME=[E42051A0:01C491E8] Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hi there, Does anyone have experience with using jerancid (under rancid v2.3.1) on Juniper ERX devices with the "service manual-commit" feature? Use of this feature on JunOSe 5-1-1 effectively makes the command "show configuration" non-functional, instead replacing it with "show running-configuration". I altered bin/jerancid to issue "show running-configuration exclude interface atm" instead of "show configuration". I also tried it without the "exclude interface atm" piece and with a 1200 second timeout (there are *a lot* of pre-provisioned atm sub-interfaces in our configs). clogin to the devices works just fine, even with the command set that jerancid is attempting to run, a la: ***************** clogin -t 90 -c "show version;show redundancy;show boot;show environment all;dir;show hardware;show run e i a" somesite-erx1=20 somesite-erx1 spawn telnet somesite-erx1 [blah blah output blah] somesite-erx1>exit Logging out. Connection closed by foreign host. ***************** but jerancid's debug output always indicates the following: ***************** jerancid -d somesite-erx1 executing clogin -t 90 -c"show version;show redundancy;show boot;show environment all;dir;show hardware;show run e i a" somesite-erx1 PROMPT MATCH: somesite-erx1# HIT COMMAND:somesite-erx1#show version In ShowVersion: somesite-erx1#show version HIT COMMAND:somesite-erx1#show redundancy In ShowRedundancy: somesite-erx1#show redundancy HIT COMMAND:somesite-erx1#show boot In ShowBoot: somesite-erx1#show boot HIT COMMAND:somesite-erx1#show environment all In ShowEnv: somesite-erx1#show environment all HIT COMMAND:somesite-erx1#dir In DirSlotN: somesite-erx1#dir somesite-erx1: missed cmd(s): show run e i a,show hardware somesite-erx1: missed cmd(s): show run e i a,show hardware somesite-erx1: End of run not found somesite-erx1: End of run not found ! ***************** I've googled and searched the mailing list archives, but haven't found a whole lot related to the ERX support in rancid. I'm a fair newbie to both Tcl/Tk (brand new) and Perl (not quite so new), so I'm hoping that someone might be able to point me in the right direction. Thanks in Advance, Todd Williamson From owner-rancid-discuss-outgoing@shrubbery.net Fri Sep 3 19:10:30 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 8957311CE30 for ; Fri, 3 Sep 2004 19:10:30 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id DF5991113C; Fri, 3 Sep 2004 19:10:29 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id D502311146; Fri, 3 Sep 2004 19:10:29 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-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 325481113C for ; Fri, 3 Sep 2004 19:10:28 +0000 (UTC) Received: from tower.partan.com (localhost.partan.com [127.0.0.1]) by tower.partan.com (8.12.9p2/8.12.9) with ESMTP id i83JAEwu078437; Fri, 3 Sep 2004 15:10:20 -0400 (EDT) (envelope-from asp@tower.partan.com) Received: (from asp@localhost) by tower.partan.com (8.12.9p2/8.12.9/Submit) id i83JAE6w078434; Fri, 3 Sep 2004 15:10:14 -0400 (EDT) (envelope-from asp) Date: Fri, 3 Sep 2004 15:10:14 -0400 From: Andrew Partan To: "Williamson, Todd" Cc: rancid-discuss@shrubbery.net Subject: Re: jerancid for ERX's with "service manual-commit"? Message-ID: <20040903191014.GC78196@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.2.1i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On Fri, Sep 03, 2004 at 12:04:50PM -0700, Williamson, Todd wrote: > I altered bin/jerancid to issue "show running-configuration exclude > interface atm" instead of "show configuration". I also tried it without > the "exclude interface atm" piece and with a 1200 second timeout (there > are *a lot* of pre-provisioned atm sub-interfaces in our configs). > > but jerancid's debug output always indicates the following: > > ***************** > jerancid -d somesite-erx1 > executing clogin -t 90 -c"show version;show redundancy;show boot;show > environment all;dir;show hardware;show run e i a" somesite-erx1 > PROMPT MATCH: somesite-erx1# > HIT COMMAND:somesite-erx1#show version > In ShowVersion: somesite-erx1#show version > HIT COMMAND:somesite-erx1#show redundancy > In ShowRedundancy: somesite-erx1#show redundancy > HIT COMMAND:somesite-erx1#show boot > In ShowBoot: somesite-erx1#show boot > HIT COMMAND:somesite-erx1#show environment all > In ShowEnv: somesite-erx1#show environment all > HIT COMMAND:somesite-erx1#dir > In DirSlotN: somesite-erx1#dir > somesite-erx1: missed cmd(s): show run e i a,show hardware > somesite-erx1: missed cmd(s): show run e i a,show hardware Try replacing the 'show run e i a' with the full command - 'show running-configuration exclude interface atm' and see what happens. Also try running this NOPIPE=YES jerancid -d somesite-erx1 This will leave a somesite-erx1.raw file with the actual command output so you can see the exact stuff that the perl code in jerancid is trying to match against. --asp From owner-rancid-discuss-outgoing@shrubbery.net Fri Sep 3 20:07:07 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 98B5411CE30 for ; Fri, 3 Sep 2004 20:07:07 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id E90181113C; Fri, 3 Sep 2004 20:07:06 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id DC1FD11146; Fri, 3 Sep 2004 20:07:06 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from cgds1.osc.uscg.mil (cgds1.osc.uscg.mil [152.121.49.10]) by guelah.shrubbery.net (Postfix) with ESMTP id B0BC21113C; Fri, 3 Sep 2004 20:07:05 +0000 (UTC) Received: from SMTPout-gateway-1.uscg.mil by cgds1.osc.uscg.mil with ESMTP; Fri, 3 Sep 2004 16:07:01 -0400 Received: from tiscomex.tiscom.uscg.mil (SMTPout-gateway-1.uscg.mil-vscanner [127.0.0.1]) by SMTPout-gateway-1.uscg.mil (8.12.8/8.12.8) with ESMTP id i83K71aW016848; Fri, 3 Sep 2004 20:07:01 GMT Received: by tiscomex.tiscom.uscg.mil with Internet Mail Service (5.5.2653.19) id ; Fri, 3 Sep 2004 16:06:00 -0400 Message-Id: <86C30EAC16195C4EBDADE65B9B8518F820FAFB@tiscomex.tiscom.uscg.mil> From: "King, David" To: "'john heasley'" Cc: rancid-discuss@shrubbery.net Subject: nrancid issue Date: Fri, 3 Sep 2004 16:05:59 -0400 Importance: low X-Priority: 5 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk In trying to get nrancid in the 2.3.1 distribution up and running I had to make a couple of changes. The first was the previously mentioned s/enable/avenable/ in nlogin. The second was a missing '}' in nrancid. I think I put it in the right place, it all seems to be working properly now. --- rancid-2.3.1/bin/nrancid 2004-08-13 14:57:48.000000000 -0400 +++ bin/nrancid 2004-09-03 15:44:45.000000000 -0400 @@ -197,6 +197,7 @@ ProcessHistory("ADMIN","","", "!set admin user $1 password privilege $3\n"); next; + } ProcessHistory("","","","$_"); } $found_end=1; This was a 2.3.1 installation on Red Hat Enterprise Linux ES release 3 (Taroon Update 3). Not sure if anyone else has had this problem. Thanks, David King From owner-rancid-discuss-outgoing@shrubbery.net Wed Sep 8 07:56:27 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id B192B11CE2D for ; Wed, 8 Sep 2004 07:56:27 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 2985C11139; Wed, 8 Sep 2004 07:56:27 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 1F5CA11142; Wed, 8 Sep 2004 07:56:27 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id C40391113C; Wed, 8 Sep 2004 07:56:26 +0000 (UTC) Received: from holly.eng.uts.edu.au (holly.eng.uts.edu.au [138.25.40.38]) by guelah.shrubbery.net (Postfix) with ESMTP id A8D7211139 for ; Wed, 8 Sep 2004 06:34:38 +0000 (UTC) Received: from [138.25.40.154] (eng040154.eng.uts.edu.au [138.25.40.154]) by holly.eng.uts.edu.au (8.9.3/8.9.3) with ESMTP id QAA04596; Wed, 8 Sep 2004 16:34:37 +1000 (EST) Message-ID: <413EA7F6.1@eng.uts.edu.au> Date: Wed, 08 Sep 2004 16:34:30 +1000 From: Peter Yardley Organization: UTS / Faculty of Engineering User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a3) Gecko/20040817 X-Accept-Language: en-us, en MIME-Version: 1.0 To: rancid-discuss@shrubbery.net Subject: Problem with Cisco 4000 with CatOS 7.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hi, I have a Cisco 4000 which I recently upgraded to CatOS 7.6. after the upgrade rancid stopped working. The problem seems to be that it misses the "write term" command. bash-2.05a$ cat5rancid -d cisco-4003 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 all;write term" cisco-4003-1-1709-1 PROMPT MATCH: cisco-4003-1-1709-1> HIT COMMAND:cisco-4003-1-1709-1> (enable) show version In ShowVersion: cisco-4003-1-1709-1> (enable) show version ... HIT COMMAND:cisco-4003-1-1709-1> (enable) write term all In WriteTerm: cisco-4003-1-1709-1> (enable) write term all cisco-4003-1-1709-1: missed cmd(s): write term cisco-4003-1-1709-1: missed cmd(s): write term **** If I use clogin to issue the write term command it is often not echoed on the console. bash-2.05a$ clogin -c"write term" cisco-4003 cisco-4003 spawn telnet cisco-4003 Trying X.X.X.X... Connected to cisco-4003 Escape character is '^]'. Cisco Systems, Inc. Console Unauthorised access is prohibited and will be prosecuted User Access Verification Username: rancid Password: cisco-4003> (enable) cisco-4003> (enable) set length 0 Screen length for this session set to 0. cisco-4003> (enable) set logging session disable System logging messages will not be sent to the current login session. cisco-4003> (enable) cisco-4003> (enable).............. .......................... .......................... .. begin **** If I use clogin interactively .... bash-2.05a$ clogin cisco-4003 cisco-4003 spawn telnet cisco-4003 Trying X.X.X.X... Connected to cisco-4003. Escape character is '^]'. Cisco Systems, Inc. Console Unauthorised access is prohibited and will be prosecuted User Access Verification Username: rancid Password: cisco-4003> (enable) cisco-4003> (enable) write term This command shows non-default configurations only. Use 'write terminal all' to show both default and non-default configurations. ............... .......................... .......................... .. begin **** It looks clogin is not recognising the output from write term correctly, could this be so? Thanks, Peter. -- _--_|\ Peter Yardley | petery@eng.uts.edu.au / \ Network & UNIX Systems Manager | Peter.Yardley@uts.edu.au \_.--._* Faculty of Engineering, | Ph: +61 2 9514-2358 v University of Technology, Sydney.| Fax: +61 2 9514-2435 From owner-rancid-discuss-outgoing@shrubbery.net Wed Sep 8 15:19:56 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 0E88B11CE2D for ; Wed, 8 Sep 2004 15:19:55 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 9F33D1113C; Wed, 8 Sep 2004 15:19:55 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 9495F11146; Wed, 8 Sep 2004 15:19:55 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from saturn.mojosd.com (iits0186.inlink.com [209.135.140.86]) by guelah.shrubbery.net (Postfix) with ESMTP id ECC111113C for ; Wed, 8 Sep 2004 15:19:54 +0000 (UTC) Received: from [127.0.0.1] (saturn.mojosd.com [209.135.140.86]) by saturn.mojosd.com (8.11.6/8.11.6) with ESMTP id i88FJXh27546; Wed, 8 Sep 2004 08:19:41 -0700 Message-ID: <413F2301.5010101@lowside.org> Date: Wed, 08 Sep 2004 08:19:29 -0700 From: Len Reply-To: lists@lowside.org User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter Yardley Cc: rancid-discuss@shrubbery.net Subject: Re: Problem with Cisco 4000 with CatOS 7.6 References: <413EA7F6.1@eng.uts.edu.au> In-Reply-To: <413EA7F6.1@eng.uts.edu.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Cisco Cat OS 7.6 does not use write mem, all commands are written immediately, you can see write mem isn't in the command reference guide for that relase. http://www.cisco.com/en/US/products/hw/switches/ps4324/products_command_reference_chapter09186a00801fd92d.html#wp999860 _L Peter Yardley wrote: > Hi, > > I have a Cisco 4000 which I recently upgraded to CatOS 7.6. after the > upgrade rancid stopped > working. The problem seems to be that it misses the "write term" command. > > bash-2.05a$ cat5rancid -d cisco-4003 > 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 all;write term" > cisco-4003-1-1709-1 > PROMPT MATCH: cisco-4003-1-1709-1> > HIT COMMAND:cisco-4003-1-1709-1> (enable) show version > In ShowVersion: cisco-4003-1-1709-1> (enable) show version > ... > HIT COMMAND:cisco-4003-1-1709-1> (enable) write term all > In WriteTerm: cisco-4003-1-1709-1> (enable) write term all > cisco-4003-1-1709-1: missed cmd(s): write term > cisco-4003-1-1709-1: missed cmd(s): write term > > **** If I use clogin to issue the write term command it is often not > echoed on the console. > > bash-2.05a$ clogin -c"write term" cisco-4003 > cisco-4003 > spawn telnet cisco-4003 > Trying X.X.X.X... > Connected to cisco-4003 > Escape character is '^]'. > > Cisco Systems, Inc. Console > > Unauthorised access is prohibited and will be prosecuted > > User Access Verification > > Username: rancid > Password: > cisco-4003> (enable) > cisco-4003> (enable) set length 0 > Screen length for this session set to 0. > cisco-4003> (enable) set logging session disable > System logging messages will not be sent to the current login session. > cisco-4003> (enable) > cisco-4003> (enable).............. > > .......................... > .......................... > .. > > begin > > **** If I use clogin interactively .... > > bash-2.05a$ clogin cisco-4003 > cisco-4003 > spawn telnet cisco-4003 > Trying X.X.X.X... > Connected to cisco-4003. > Escape character is '^]'. > > Cisco Systems, Inc. Console > > Unauthorised access is prohibited and will be prosecuted > > User Access Verification > > Username: rancid > Password: > cisco-4003> (enable) > cisco-4003> (enable) write term > This command shows non-default configurations only. > Use 'write terminal all' to show both default and non-default > configurations. > ............... > > .......................... > .......................... > .. > > begin > > **** It looks clogin is not recognising the output from write term > correctly, could this be so? > > Thanks, > Peter. > From owner-rancid-discuss-outgoing@shrubbery.net Wed Sep 8 18:21:48 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 3B0CF11CE2D for ; Wed, 8 Sep 2004 18:21:48 +0000 (GMT) Received: by guelah.shrubbery.net (Postfix) id 807BC11142; Wed, 8 Sep 2004 18:21:47 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 7761D11149; Wed, 8 Sep 2004 18:21:47 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id E505911146; Wed, 8 Sep 2004 18:21:46 +0000 (UTC) Date: Wed, 8 Sep 2004 11:21:46 -0700 From: john heasley To: Len Cc: Peter Yardley , rancid-discuss@shrubbery.net Subject: Re: Problem with Cisco 4000 with CatOS 7.6 Message-ID: <20040908182146.GD8721@shrubbery.net> References: <413EA7F6.1@eng.uts.edu.au> <413F2301.5010101@lowside.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <413F2301.5010101@lowside.org> User-Agent: Mutt/1.4.2.1i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: i just want to have a beer while i am caring. Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Wed, Sep 08, 2004 at 08:19:29AM -0700, Len: > Cisco Cat OS 7.6 does not use write mem, all commands are written > immediately, you can see write mem isn't in the command reference guide > for that relase. > > > http://www.cisco.com/en/US/products/hw/switches/ps4324/products_command_reference_chapter09186a00801fd92d.html#wp999860 Cisco has chosen to deprecate the 'write terminal' command in IOS, which has been around since...oh 8.0. This is why rancid collects 'show running-config' and write terminal (until we're sure everything has show running). But, I wasn't aware it would also be deprecated in CatOS and the page above does not indicate it has been (at least not for this release). Anyway, note that cat5rancid runs both write terminal and write terminal all. The problem Peter is having is that 'write terminal' is not echo'd, it just starts writing the configuration. Also note that write terminal all _is_ echo'd. that is a cisco bug. Peter, try a different TERM setting in rancid.conf, such as "dumb" (if your termap/termios has that one). > _L > > Peter Yardley wrote: > >Hi, > > > >I have a Cisco 4000 which I recently upgraded to CatOS 7.6. after the > >upgrade rancid stopped > >working. The problem seems to be that it misses the "write term" command. > > > >bash-2.05a$ cat5rancid -d cisco-4003 > >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 all;write term" > >cisco-4003-1-1709-1 > >PROMPT MATCH: cisco-4003-1-1709-1> > >HIT COMMAND:cisco-4003-1-1709-1> (enable) show version > > In ShowVersion: cisco-4003-1-1709-1> (enable) show version > >... > >HIT COMMAND:cisco-4003-1-1709-1> (enable) write term all > > In WriteTerm: cisco-4003-1-1709-1> (enable) write term all > >cisco-4003-1-1709-1: missed cmd(s): write term > >cisco-4003-1-1709-1: missed cmd(s): write term > > > >**** If I use clogin to issue the write term command it is often not > >echoed on the console. > > > >bash-2.05a$ clogin -c"write term" cisco-4003 > >cisco-4003 > >spawn telnet cisco-4003 > >Trying X.X.X.X... > >Connected to cisco-4003 > >Escape character is '^]'. > > > >Cisco Systems, Inc. Console > > > >Unauthorised access is prohibited and will be prosecuted > > > >User Access Verification > > > >Username: rancid > >Password: > >cisco-4003> (enable) > >cisco-4003> (enable) set length 0 > >Screen length for this session set to 0. > >cisco-4003> (enable) set logging session disable > >System logging messages will not be sent to the current login session. > >cisco-4003> (enable) > >cisco-4003> (enable).............. > > > >.......................... > >.......................... > >.. > > > >begin > > > >**** If I use clogin interactively .... > > > >bash-2.05a$ clogin cisco-4003 > >cisco-4003 > >spawn telnet cisco-4003 > >Trying X.X.X.X... > >Connected to cisco-4003. > >Escape character is '^]'. > > > >Cisco Systems, Inc. Console > > > >Unauthorised access is prohibited and will be prosecuted > > > >User Access Verification > > > >Username: rancid > >Password: > >cisco-4003> (enable) > >cisco-4003> (enable) write term > >This command shows non-default configurations only. > >Use 'write terminal all' to show both default and non-default > >configurations. > >............... > > > >.......................... > >.......................... > >.. > > > >begin > > > >**** It looks clogin is not recognising the output from write term > >correctly, could this be so? > > > >Thanks, > >Peter. > > > From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 14 16:40:16 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id E4FA711CE2D for ; Tue, 14 Sep 2004 16:40:15 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 392BF11139; Tue, 14 Sep 2004 16:40:15 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 2F5A111142; Tue, 14 Sep 2004 16:40:15 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from mx01.perpetual.com (web01.perpetual.com [64.127.117.136]) by guelah.shrubbery.net (Postfix) with ESMTP id A33FB11139 for ; Tue, 14 Sep 2004 16:40:14 +0000 (UTC) Received: from mail.perpetualent.com (unknown [209.213.199.133]) by mx01.perpetual.com (Postfix) with ESMTP id 245E0D7957 for ; Tue, 14 Sep 2004 09:41:16 -0700 (PDT) Received: from mail.perpetualent.com (mail [127.0.0.1]) by localhost.perpetualent.com (Postfix) with ESMTP id CFF8A33801C for ; Tue, 14 Sep 2004 09:40:15 -0700 (PDT) Received: from jrizzopc (jrizzo-pc.perpetualent.com [10.5.0.131]) by mail.perpetualent.com (Postfix) with ESMTP id C3801338014 for ; Tue, 14 Sep 2004 09:40:15 -0700 (PDT) From: "Joe Rizzo" To: Subject: Dell Powerconnect switches Date: Tue, 14 Sep 2004 09:40:13 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcSaeYIMCgTw6qV5T5WU4VWQ3bdbTw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-Id: <20040914164015.C3801338014@mail.perpetualent.com> Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk I have some Dell Powerconnect Switches I would like to be able to poll with rancid. The models are 3348s and 6024s. The 6024 also provide L3 functionality. The CLI is IOSish. I can successfully login to them using clogin. Is anyone using rancid to track changes on Powerconnect switches? I searched the Mailing list, but did not see them mentioned. 2 problems I see off the bat are: 1) The pager can not be disabled (that I can tell) 2) There is not an "end" and the end of the output from "show run" What is the best way to proceed in adding support for these switches? I am not a programmer, but believe I could muck my way through coping rancid to drancid and modifying it to work with the Powerconnects. Rancid already can deal with the pager in PIXes. I am not sure how to handle not having "end" at the end of "show run". If anyone is interested, I could make one of the switches available on the Internet.:) http://support.dell.com/support/edocs/network/pc33xx/ http://support.dell.com/support/edocs/network/pc6024/ Thanks, Joe From owner-rancid-discuss-outgoing@shrubbery.net Thu Sep 16 10:53:23 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id DED9D11CE39 for ; Thu, 16 Sep 2004 10:53:23 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 44ECE11139; Thu, 16 Sep 2004 10:53:23 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 37F8C11142; Thu, 16 Sep 2004 10:53:23 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from makalu.mos.com.np (makalu.mos.com.np [202.52.255.1]) by guelah.shrubbery.net (Postfix) with ESMTP id 434B511139 for ; Thu, 16 Sep 2004 10:53:18 +0000 (UTC) Received: from nuptse. (nuptse.mos.com.np [202.52.255.8]) by makalu.mos.com.np (8.12.8/8.12.8) with SMTP id i8GAvAuJ029379 for ; Thu, 16 Sep 2004 16:42:10 +0545 Received: from langtang.mos.com.np ([202.52.255.9]) by nuptse. (NAVGW 2.5.1.12) with SMTP id M2004091616351618009 for ; Thu, 16 Sep 2004 16:35:16 +0545 Received: from [192.168.10.146] (mc-gw.mos.com.np [202.52.255.100]) by langtang.mos.com.np (8.12.10/8.12.10) with ESMTP id i8GAr5e7016937 for ; Thu, 16 Sep 2004 16:38:05 +0545 Subject: problem while installing rancid 2.2.2 From: Shekhar Basnet To: rancid-discuss@shrubbery.net Content-Type: text/plain Organization: Mercantile Communications Message-Id: <1095331978.18053.4.camel@chulu.mos.com.np> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Thu, 16 Sep 2004 16:37:59 +0545 Content-Transfer-Encoding: 7bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk While installing rancid-2.2.2 I am getting the following error. What is this error I am not understanding?? Can somebody make it out? I am using Fedora 1. TIA shekhar. [root@chulu rancid-2.2.2]# make install Making install in . gmake[1]: Entering directory `/home/shekhar/rancid-2.2.2' gmake[2]: Entering directory `/home/shekhar/rancid-2.2.2' /bin/sh ./mkinstalldirs /usr/local/rancid/util /usr/local/rancid/util/lg gmake[2]: Nothing to be done for `install-data-am'. gmake[2]: Leaving directory `/home/shekhar/rancid-2.2.2' gmake[1]: Leaving directory `/home/shekhar/rancid-2.2.2' Making install in include gmake[1]: Entering directory `/home/shekhar/rancid-2.2.2/include' gmake[2]: Entering directory `/home/shekhar/rancid-2.2.2/include' gmake[2]: Nothing to be done for `install-exec-am'. gmake[2]: Nothing to be done for `install-data-am'. gmake[2]: Leaving directory `/home/shekhar/rancid-2.2.2/include' gmake[1]: Leaving directory `/home/shekhar/rancid-2.2.2/include' Making install in bin gmake[1]: Entering directory `/home/shekhar/rancid-2.2.2/bin' gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O0 -c hpfilter.c hpfilter.c:385:1: missing terminating " character hpfilter.c:386:1: missing terminating " character hpfilter.c: In function `usage': hpfilter.c:387: error: syntax error before "return" hpfilter.c:394:1: missing terminating " character hpfilter.c:395:1: missing terminating " character hpfilter.c: In function `vers': hpfilter.c:396: error: syntax error before "return" gmake[1]: *** [hpfilter.o] Error 1 gmake[1]: Leaving directory `/home/shekhar/rancid-2.2.2/bin' make: *** [install-recursive] Error 1 From owner-rancid-discuss-outgoing@shrubbery.net Thu Sep 16 17:48:55 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 651F511CE39 for ; Thu, 16 Sep 2004 17:48:55 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id BE6491113C; Thu, 16 Sep 2004 17:48:54 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id B8B0D11146; Thu, 16 Sep 2004 17:48:54 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 385F411142; Thu, 16 Sep 2004 17:48:54 +0000 (UTC) Date: Thu, 16 Sep 2004 10:48:54 -0700 From: john heasley To: Shekhar Basnet Cc: rancid-discuss@shrubbery.net Subject: Re: problem while installing rancid 2.2.2 Message-ID: <20040916174854.GB19701@shrubbery.net> References: <1095331978.18053.4.camel@chulu.mos.com.np> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1095331978.18053.4.camel@chulu.mos.com.np> User-Agent: Mutt/1.4.2.1i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: i just want to have a beer while i am caring. Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Thu, Sep 16, 2004 at 04:37:59PM +0545, Shekhar Basnet: > While installing rancid-2.2.2 I am getting the following error. What is > this error I am not understanding?? Can somebody make it out? > I am using Fedora 1. > > TIA > shekhar. > > [root@chulu rancid-2.2.2]# make install > Making install in . > gmake[1]: Entering directory `/home/shekhar/rancid-2.2.2' > gmake[2]: Entering directory `/home/shekhar/rancid-2.2.2' > /bin/sh ./mkinstalldirs /usr/local/rancid/util /usr/local/rancid/util/lg > gmake[2]: Nothing to be done for `install-data-am'. > gmake[2]: Leaving directory `/home/shekhar/rancid-2.2.2' > gmake[1]: Leaving directory `/home/shekhar/rancid-2.2.2' > Making install in include > gmake[1]: Entering directory `/home/shekhar/rancid-2.2.2/include' > gmake[2]: Entering directory `/home/shekhar/rancid-2.2.2/include' > gmake[2]: Nothing to be done for `install-exec-am'. > gmake[2]: Nothing to be done for `install-data-am'. > gmake[2]: Leaving directory `/home/shekhar/rancid-2.2.2/include' > gmake[1]: Leaving directory `/home/shekhar/rancid-2.2.2/include' > Making install in bin > gmake[1]: Entering directory `/home/shekhar/rancid-2.2.2/bin' > gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O0 -c hpfilter.c > hpfilter.c:385:1: missing terminating " character > hpfilter.c:386:1: missing terminating " character > hpfilter.c: In function `usage': > hpfilter.c:387: error: syntax error before "return" > hpfilter.c:394:1: missing terminating " character > hpfilter.c:395:1: missing terminating " character > hpfilter.c: In function `vers': > hpfilter.c:396: error: syntax error before "return" > gmake[1]: *** [hpfilter.o] Error 1 > gmake[1]: Leaving directory `/home/shekhar/rancid-2.2.2/bin' > make: *** [install-recursive] Error 1 this is gcc bitching that a string constant spans multiple lines. apply rancid-2.2.2.p2 or better yet use rancid-2.3.1. From owner-rancid-discuss-outgoing@shrubbery.net Fri Sep 17 05:54:13 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id B658311CE39 for ; Fri, 17 Sep 2004 05:54:13 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 1542111139; Fri, 17 Sep 2004 05:54:13 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 0D13F11142; Fri, 17 Sep 2004 05:54:13 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from manaslu.mos.com.np (manaslu.mos.com.np [202.52.255.3]) by guelah.shrubbery.net (Postfix) with ESMTP id CD28711139; Fri, 17 Sep 2004 05:54:10 +0000 (UTC) Received: from karnali. (karnali.mos.com.np [202.52.255.13]) by manaslu.mos.com.np (8.12.8/8.12.8) with SMTP id i8H5rtPX025748; Fri, 17 Sep 2004 11:39:07 +0545 Received: from nilgiri.mos.com.np ([202.52.255.7]) by karnali. (NAVGW 2.5.1.12) with SMTP id M2004091711404425354 ; Fri, 17 Sep 2004 11:40:44 +0545 Received: from [192.168.10.146] (mc-gw.mos.com.np [202.52.255.100]) by nilgiri.mos.com.np (8.12.10/8.12.10) with ESMTP id i8H5s7Md009698; Fri, 17 Sep 2004 11:39:07 +0545 Subject: Re: problem while installing rancid 2.2.2 From: Shekhar Basnet To: john heasley Cc: rancid-discuss@shrubbery.net In-Reply-To: <20040916174854.GB19701@shrubbery.net> References: <1095331978.18053.4.camel@chulu.mos.com.np> <20040916174854.GB19701@shrubbery.net> Content-Type: text/plain Organization: Mercantile Communications Message-Id: <1095400440.18053.6.camel@chulu.mos.com.np> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Fri, 17 Sep 2004 11:39:01 +0545 Content-Transfer-Encoding: 7bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk RANCID-2.3.1 solved my problem. Thanks a lot shekhar On Thu, 2004-09-16 at 23:33, john heasley wrote: > Thu, Sep 16, 2004 at 04:37:59PM +0545, Shekhar Basnet: > > While installing rancid-2.2.2 I am getting the following error. What is > > this error I am not understanding?? Can somebody make it out? > > I am using Fedora 1. > > > > TIA > > shekhar. > > > > [root@chulu rancid-2.2.2]# make install > > Making install in . > > gmake[1]: Entering directory `/home/shekhar/rancid-2.2.2' > > gmake[2]: Entering directory `/home/shekhar/rancid-2.2.2' > > /bin/sh ./mkinstalldirs /usr/local/rancid/util /usr/local/rancid/util/lg > > gmake[2]: Nothing to be done for `install-data-am'. > > gmake[2]: Leaving directory `/home/shekhar/rancid-2.2.2' > > gmake[1]: Leaving directory `/home/shekhar/rancid-2.2.2' > > Making install in include > > gmake[1]: Entering directory `/home/shekhar/rancid-2.2.2/include' > > gmake[2]: Entering directory `/home/shekhar/rancid-2.2.2/include' > > gmake[2]: Nothing to be done for `install-exec-am'. > > gmake[2]: Nothing to be done for `install-data-am'. > > gmake[2]: Leaving directory `/home/shekhar/rancid-2.2.2/include' > > gmake[1]: Leaving directory `/home/shekhar/rancid-2.2.2/include' > > Making install in bin > > gmake[1]: Entering directory `/home/shekhar/rancid-2.2.2/bin' > > gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O0 -c hpfilter.c > > hpfilter.c:385:1: missing terminating " character > > hpfilter.c:386:1: missing terminating " character > > hpfilter.c: In function `usage': > > hpfilter.c:387: error: syntax error before "return" > > hpfilter.c:394:1: missing terminating " character > > hpfilter.c:395:1: missing terminating " character > > hpfilter.c: In function `vers': > > hpfilter.c:396: error: syntax error before "return" > > gmake[1]: *** [hpfilter.o] Error 1 > > gmake[1]: Leaving directory `/home/shekhar/rancid-2.2.2/bin' > > make: *** [install-recursive] Error 1 > > this is gcc bitching that a string constant spans multiple lines. apply > rancid-2.2.2.p2 or better yet use rancid-2.3.1. > From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 21 00:07:07 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 39FDC11CE2D for ; Tue, 21 Sep 2004 00:07:07 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 899081113C; Tue, 21 Sep 2004 00:07:06 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 78EB511149; Tue, 21 Sep 2004 00:07:06 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from postit.mail.adnap.net.au (postit.mail.adnap.net.au [203.6.132.68]) by guelah.shrubbery.net (Postfix) with ESMTP id EF39C1113C for ; Tue, 21 Sep 2004 00:07:04 +0000 (UTC) Received: from [203.2.124.72] (darren.adam.com.au [203.2.124.72]) by postit.mail.adnap.net.au (Postfix) with ESMTP id 65D761C0AA for ; Tue, 21 Sep 2004 09:36:56 +0930 (CST) Message-ID: <414F709F.9000707@adam.com.au> Date: Tue, 21 Sep 2004 09:36:55 +0930 From: darren kruse Reply-To: darren@adam.com.au User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: rancid-discuss@shrubbery.net Subject: rancid issue with 2/3 cat5's after upgrade Content-Type: multipart/alternative; boundary="------------000703050309000604020302" Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk This is a multi-part message in MIME format. --------------000703050309000604020302 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I have three cat 5000's - before I upgraded to the current version of rancid - 3/3 worked fine.... now only 1/3 works. I upgraded using FreeBSD ports, I'm now running rancid ver 2.3.1 all 3 are configured the same ... ferret# pwd /usr/local/rancid/var/coreswitches ferret# less router.db #cat5k_sw.domain.com:cat5:up c55k-1:cat5:up c55k-2:cat5:up c55k-3:cat5:up that all have the same password in ferret# cat /home/rancid/.cloginrc add password c55k-1 access-pwd enable-pwd add password c55k-2 access-pwd enable-pwd add password c55k-3 access-pwd enable-pwd clogin works , as long as I have set the prompt to be c55k-2> , if I omit the > , then clogin stalls. (as documented :-) these all work fine .. %/usr/local/libexec/rancid/clogin -c"write term" c55k-1 %/usr/local/libexec/rancid/clogin -c"write term" c55k-2 %/usr/local/libexec/rancid/clogin -c"write term" c55k-3 Here's the log dump .. %cat coreswitches.20040920.140100 starting: Mon Sep 20 14:01:00 CST 2004 Trying to get all of the configs. c55k-2: missed cmd(s): write term c55k-3: missed cmd(s): write term ===================================== Getting missed routers: round 1. c55k-2: missed cmd(s): write term c55k-3: missed cmd(s): write term ===================================== Getting missed routers: round 2. write(spawn_id=3): I/O error while executing "send "exit\r"" invoked from within "expect -nobrace -re {^[^ *]*c55k-2> \(enable\)} { # the Cisco CE and Jnx ERX # return to non-enabled mode # on exit in enabl..." invoked from within "expect { -re "^\[^\n\r *]*$reprompt" { # the Cisco CE and Jnx ERX # return to non-enabled mode # on exit in enabled mode. ..." (procedure "run_commands" line 104) invoked from within "run_commands $prompt $command" ("foreach" body line 144) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # Figure out prompt. # Since autoena..." (file "/usr/local/libexec/rancid/clogin" line 616) c55k-2: missed cmd(s): write term c55k-3: missed cmd(s): write term ===================================== Getting missed routers: round 3. write(spawn_id=3): I/O error while executing "send "exit\r"" invoked from within "expect -nobrace -re {^[^ *]*c55k-2> \(enable\)} { # the Cisco CE and Jnx ERX # return to non-enabled mode # on exit in enabl..." invoked from within "expect { -re "^\[^\n\r *]*$reprompt" { # the Cisco CE and Jnx ERX # return to non-enabled mode # on exit in enabled mode. ..." (procedure "run_commands" line 104) invoked from within "run_commands $prompt $command" ("foreach" body line 144) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # Figure out prompt. # Since autoena..." (file "/usr/local/libexec/rancid/clogin" line 616) c55k-2: missed cmd(s): write term c55k-3: missed cmd(s): write term ===================================== Getting missed routers: round 4. c55k-2: missed cmd(s): write term c55k-3: missed cmd(s): write term cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs *Checking in configs/c55k-1; <<- only one works ... */usr/local/rancid/var/CVS/coreswitches/configs/c55k-1,v <-- c55k-1 new revision: 1.16; previous revision: 1.15 done ending: Mon Sep 20 14:04:49 CST 2004 % -- Darren Kruse Network Operations Centre Adam Internet mob 0404 034 773 ph (08) 8423 4000 fax(08) 8231 0223 Office Address: 117 King William St, Adelaide 5000 Postal Address: G.P.O. Box 121, Adelaide 5001 --------------000703050309000604020302 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I have three cat 5000's  - before I upgraded to the current version of rancid - 3/3 worked fine....  now only 1/3 works.
I upgraded using FreeBSD ports, I'm now running rancid ver 2.3.1

all 3 are configured the same ...
ferret# pwd
/usr/local/rancid/var/coreswitches
ferret# less router.db
#cat5k_sw.domain.com:cat5:up
c55k-1:cat5:up
c55k-2:cat5:up
c55k-3:cat5:up

that all have the same password in
ferret# cat /home/rancid/.cloginrc  
add password c55k-1  access-pwd  enable-pwd
add password c55k-2  access-pwd  enable-pwd
add password c55k-3  access-pwd  enable-pwd


clogin works , as long as I have set the prompt to be c55k-2>  , if I omit the > , then clogin stalls. (as documented :-)

these all work fine ..
%/usr/local/libexec/rancid/clogin -c"write term" c55k-1
%/usr/local/libexec/rancid/clogin -c"write term" c55k-2
%/usr/local/libexec/rancid/clogin -c"write term" c55k-3

Here's the log dump ..
%cat coreswitches.20040920.140100
starting: Mon Sep 20 14:01:00 CST 2004



Trying to get all of the configs.
c55k-2: missed cmd(s): write term
c55k-3: missed cmd(s): write term
=====================================
Getting missed routers: round 1.
c55k-2: missed cmd(s): write term
c55k-3: missed cmd(s): write term
=====================================
Getting missed routers: round 2.
write(spawn_id=3): I/O error
    while executing
"send "exit\r""
    invoked from within
"expect -nobrace -re {^[^
 *]*c55k-2> \(enable\)} {
                                                  # the Cisco CE and Jnx ERX
                                                  # return to non-enabled mode
                                                  # on exit in enabl..."
    invoked from within
"expect {
        -re "^\[^\n\r *]*$reprompt"             {
                                                  # the Cisco CE and Jnx ERX
                                                  # return to non-enabled mode
                                                  # on exit in enabled mode.
                ..."
    (procedure "run_commands" line 104)
    invoked from within
"run_commands $prompt $command"
    ("foreach" body line 144)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    send_user "$router\n"

    # Figure out prompt.
    # Since autoena..."
    (file "/usr/local/libexec/rancid/clogin" line 616)
c55k-2: missed cmd(s): write term
c55k-3: missed cmd(s): write term
=====================================
Getting missed routers: round 3.
write(spawn_id=3): I/O error
    while executing
"send "exit\r""
    invoked from within
"expect -nobrace -re {^[^
 *]*c55k-2> \(enable\)} {
                                                  # the Cisco CE and Jnx ERX
                                                  # return to non-enabled mode
                                                  # on exit in enabl..."
    invoked from within
"expect {
        -re "^\[^\n\r *]*$reprompt"             {
                                                  # the Cisco CE and Jnx ERX
                                                  # return to non-enabled mode
                                                  # on exit in enabled mode.
                ..."
    (procedure "run_commands" line 104)
    invoked from within
"run_commands $prompt $command"
    ("foreach" body line 144)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    send_user "$router\n"

    # Figure out prompt.
    # Since autoena..."
    (file "/usr/local/libexec/rancid/clogin" line 616)
c55k-2: missed cmd(s): write term
c55k-3: missed cmd(s): write term
=====================================
Getting missed routers: round 4.
c55k-2: missed cmd(s): write term
c55k-3: missed cmd(s): write term

cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs
Checking in configs/c55k-1;    <<- only one works ...
/usr/local/rancid/var/CVS/coreswitches/configs/c55k-1,v  <--  c55k-1
new revision: 1.16; previous revision: 1.15
done

ending: Mon Sep 20 14:04:49 CST 2004
%      
                                                                                                      



-- 
Darren Kruse
Network Operations Centre
Adam Internet
mob 0404 034 773
ph (08) 8423 4000
fax(08) 8231 0223
Office Address: 117 King William St, Adelaide 5000 Postal Address:
G.P.O. Box 121, Adelaide 5001


--------------000703050309000604020302-- From owner-rancid-discuss-outgoing@shrubbery.net Wed Sep 22 13:26:00 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 16EE311CE33 for ; Wed, 22 Sep 2004 13:26:00 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 754741113C; Wed, 22 Sep 2004 13:25:59 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 6CC7611146; Wed, 22 Sep 2004 13:25:59 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from ptb-relay01.plus.net (ptb-relay01.plus.net [212.159.14.212]) by guelah.shrubbery.net (Postfix) with ESMTP id C9FF01113C for ; Wed, 22 Sep 2004 13:25:58 +0000 (UTC) Received: from [195.166.137.25] (helo=mail.plus.net.uk) by ptb-relay01.plus.net with smtp (Exim) id 1CA789-0005bG-V4 for rancid-discuss@shrubbery.net; Wed, 22 Sep 2004 13:25:57 +0000 Received: (qmail 14944 invoked from network); 22 Sep 2004 13:23:47 -0000 Received: from unknown (HELO 31.30.workstation.plus.net) (172.29.31.30) by gatekeeper2.force9.net with SMTP; 22 Sep 2004 13:23:47 -0000 Subject: Problems with the rancid ERX module jerancid From: Mark Loveley To: rancid-discuss@shrubbery.net Content-Type: text/plain Message-Id: <1095859557.4290.43.camel@markloveley> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-1) Date: Wed, 22 Sep 2004 14:25:57 +0100 Content-Transfer-Encoding: 7bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hi I've just started using rancid and have found an issue with the ERX module. I'm running version 2.3.1 of rancid and talking to ERX's of different software releases 5.0 and 5.2. Rancid fails when collecting from both of our ERX's. It seems all commands are actually executed but the script doesn't recognise they have executed. it seems to fail on the dir command as the logic appears to be wrong... on line 266 of jerancid the code says:- return(-1) if (/active\/standby/ && !/not sync/); I think it should be:- return(-1) if (/active\/standby/ && /not sync/); as in continue if the unit is in sync (double negative being used in the original). Once edited I get a clean run. HTH -- | Mark Loveley Broadband Solutions for | Network Engineer Home & Business @ | PlusNet plc www.plus.net +------ PlusNet - The smarter way to Internet! ----- From owner-rancid-discuss-outgoing@shrubbery.net Mon Sep 27 02:01:44 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 7706511CE2D for ; Mon, 27 Sep 2004 02:01:44 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id D622B1113C; Mon, 27 Sep 2004 02:01:43 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id C92671114D; Mon, 27 Sep 2004 02:01:43 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from postit.mail.adnap.net.au (postit.mail.adnap.net.au [203.6.132.68]) by guelah.shrubbery.net (Postfix) with ESMTP id 7B0EC1113C for ; Mon, 27 Sep 2004 02:01:42 +0000 (UTC) Received: from [203.2.124.72] (darren.adam.com.au [203.2.124.72]) by postit.mail.adnap.net.au (Postfix) with ESMTP id C889420299 for ; Mon, 27 Sep 2004 11:31:31 +0930 (CST) Message-ID: <4157747B.6010702@adam.com.au> Date: Mon, 27 Sep 2004 11:31:31 +0930 From: darren kruse Reply-To: darren@adam.com.au User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: rancid-discuss@shrubbery.net Subject: Re: rancid issue with 2/3 cat5's after upgrade References: <414F709F.9000707@adam.com.au> In-Reply-To: <414F709F.9000707@adam.com.au> Content-Type: multipart/alternative; boundary="------------000502050704070706060501" Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk This is a multi-part message in MIME format. --------------000502050704070706060501 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit anyone ?? darren kruse wrote on 21/9/04 : > I have three cat 5000's - before I upgraded to the current version of > rancid - 3/3 worked fine.... now only 1/3 works. > I upgraded using FreeBSD ports, I'm now running rancid ver 2.3.1 > > all 3 are configured the same ... > ferret# pwd > /usr/local/rancid/var/coreswitches > ferret# less router.db > #cat5k_sw.domain.com:cat5:up > c55k-1:cat5:up > c55k-2:cat5:up > c55k-3:cat5:up > > that all have the same password in > ferret# cat /home/rancid/.cloginrc > add password c55k-1 access-pwd enable-pwd > add password c55k-2 access-pwd enable-pwd > add password c55k-3 access-pwd enable-pwd > > clogin works , as long as I have set the prompt to be c55k-2> , if I > omit the > , then clogin stalls. (as documented :-) > > these all work fine .. > %/usr/local/libexec/rancid/clogin -c"write term" c55k-1 > %/usr/local/libexec/rancid/clogin -c"write term" c55k-2 > %/usr/local/libexec/rancid/clogin -c"write term" c55k-3 > > Here's the log dump .. > %cat coreswitches.20040920.140100 > starting: Mon Sep 20 14:01:00 CST 2004 > > > > Trying to get all of the configs. > c55k-2: missed cmd(s): write term > c55k-3: missed cmd(s): write term > ===================================== > Getting missed routers: round 1. > c55k-2: missed cmd(s): write term > c55k-3: missed cmd(s): write term > ===================================== > Getting missed routers: round 2. > write(spawn_id=3): I/O error > while executing > "send "exit\r"" > invoked from within > "expect -nobrace -re {^[^ > *]*c55k-2> \(enable\)} { > # the Cisco CE and > Jnx ERX > # return to > non-enabled mode > # on exit in enabl..." > invoked from within > "expect { > -re "^\[^\n\r *]*$reprompt" { > # the Cisco CE and > Jnx ERX > # return to > non-enabled mode > # on exit in enabled > mode. > ..." > (procedure "run_commands" line 104) > invoked from within > "run_commands $prompt $command" > ("foreach" body line 144) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > send_user "$router\n" > > # Figure out prompt. > # Since autoena..." > (file "/usr/local/libexec/rancid/clogin" line 616) > c55k-2: missed cmd(s): write term > c55k-3: missed cmd(s): write term > ===================================== > Getting missed routers: round 3. > write(spawn_id=3): I/O error > while executing > "send "exit\r"" > invoked from within > "expect -nobrace -re {^[^ > *]*c55k-2> \(enable\)} { > # the Cisco CE and > Jnx ERX > # return to > non-enabled mode > # on exit in enabl..." > invoked from within > "expect { > -re "^\[^\n\r *]*$reprompt" { > # the Cisco CE and > Jnx ERX > # return to > non-enabled mode > # on exit in enabled > mode. > ..." > (procedure "run_commands" line 104) > invoked from within > "run_commands $prompt $command" > ("foreach" body line 144) > invoked from within > "foreach router [lrange $argv $i end] { > set router [string tolower $router] > send_user "$router\n" > > # Figure out prompt. > # Since autoena..." > (file "/usr/local/libexec/rancid/clogin" line 616) > c55k-2: missed cmd(s): write term > c55k-3: missed cmd(s): write term > ===================================== > Getting missed routers: round 4. > c55k-2: missed cmd(s): write term > c55k-3: missed cmd(s): write term > > cvs diff: Diffing . > cvs diff: Diffing configs > cvs commit: Examining . > cvs commit: Examining configs > *Checking in configs/c55k-1; <<- only one works ... > */usr/local/rancid/var/CVS/coreswitches/configs/c55k-1,v <-- c55k-1 > new revision: 1.16; previous revision: 1.15 > done > > ending: Mon Sep 20 14:04:49 CST 2004 > % > > > > >-- >Darren Kruse >Network Operations Centre >Adam Internet >mob 0404 034 773 >ph (08) 8423 4000 >fax(08) 8231 0223 >Office Address: 117 King William St, Adelaide 5000 Postal Address: >G.P.O. Box 121, Adelaide 5001 > > > > -- Darren Kruse Network Operations Centre Adam Internet mob 0404 034 773 ph (08) 8423 4000 fax(08) 8231 0223 Office Address: 117 King William St, Adelaide 5000 Postal Address: G.P.O. Box 121, Adelaide 5001 --------------000502050704070706060501 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit anyone ??

darren kruse wrote on 21/9/04 :
I have three cat 5000's  - before I upgraded to the current version of rancid - 3/3 worked fine....  now only 1/3 works.
I upgraded using FreeBSD ports, I'm now running rancid ver 2.3.1

all 3 are configured the same ...
ferret# pwd
/usr/local/rancid/var/coreswitches
ferret# less router.db
#cat5k_sw.domain.com:cat5:up
c55k-1:cat5:up
c55k-2:cat5:up
c55k-3:cat5:up

that all have the same password in
ferret# cat /home/rancid/.cloginrc  
add password c55k-1  access-pwd  enable-pwd
add password c55k-2  access-pwd  enable-pwd
add password c55k-3  access-pwd  enable-pwd


clogin works , as long as I have set the prompt to be c55k-2>  , if I omit the > , then clogin stalls. (as documented :-)

these all work fine ..
%/usr/local/libexec/rancid/clogin -c"write term" c55k-1
%/usr/local/libexec/rancid/clogin -c"write term" c55k-2
%/usr/local/libexec/rancid/clogin -c"write term" c55k-3

Here's the log dump ..
%cat coreswitches.20040920.140100
starting: Mon Sep 20 14:01:00 CST 2004



Trying to get all of the configs.
c55k-2: missed cmd(s): write term
c55k-3: missed cmd(s): write term
=====================================
Getting missed routers: round 1.
c55k-2: missed cmd(s): write term
c55k-3: missed cmd(s): write term
=====================================
Getting missed routers: round 2.
write(spawn_id=3): I/O error
    while executing
"send "exit\r""
    invoked from within
"expect -nobrace -re {^[^
 *]*c55k-2> \(enable\)} {
                                                  # the Cisco CE and Jnx ERX
                                                  # return to non-enabled mode
                                                  # on exit in enabl..."
    invoked from within
"expect {
        -re "^\[^\n\r *]*$reprompt"             {
                                                  # the Cisco CE and Jnx ERX
                                                  # return to non-enabled mode
                                                  # on exit in enabled mode.
                ..."
    (procedure "run_commands" line 104)
    invoked from within
"run_commands $prompt $command"
    ("foreach" body line 144)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    send_user "$router\n"

    # Figure out prompt.
    # Since autoena..."
    (file "/usr/local/libexec/rancid/clogin" line 616)
c55k-2: missed cmd(s): write term
c55k-3: missed cmd(s): write term
=====================================
Getting missed routers: round 3.
write(spawn_id=3): I/O error
    while executing
"send "exit\r""
    invoked from within
"expect -nobrace -re {^[^
 *]*c55k-2> \(enable\)} {
                                                  # the Cisco CE and Jnx ERX
                                                  # return to non-enabled mode
                                                  # on exit in enabl..."
    invoked from within
"expect {
        -re "^\[^\n\r *]*$reprompt"             {
                                                  # the Cisco CE and Jnx ERX
                                                  # return to non-enabled mode
                                                  # on exit in enabled mode.
                ..."
    (procedure "run_commands" line 104)
    invoked from within
"run_commands $prompt $command"
    ("foreach" body line 144)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    send_user "$router\n"

    # Figure out prompt.
    # Since autoena..."
    (file "/usr/local/libexec/rancid/clogin" line 616)
c55k-2: missed cmd(s): write term
c55k-3: missed cmd(s): write term
=====================================
Getting missed routers: round 4.
c55k-2: missed cmd(s): write term
c55k-3: missed cmd(s): write term

cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs
Checking in configs/c55k-1;    <<- only one works ...
/usr/local/rancid/var/CVS/coreswitches/configs/c55k-1,v  <--  c55k-1
new revision: 1.16; previous revision: 1.15
done

ending: Mon Sep 20 14:04:49 CST 2004
%      
                                                                                                      



-- 
Darren Kruse
Network Operations Centre
Adam Internet
mob 0404 034 773
ph (08) 8423 4000
fax(08) 8231 0223
Office Address: 117 King William St, Adelaide 5000 Postal Address:
G.P.O. Box 121, Adelaide 5001


  


-- 
Darren Kruse
Network Operations Centre
Adam Internet
mob 0404 034 773
ph (08) 8423 4000
fax(08) 8231 0223
Office Address: 117 King William St, Adelaide 5000 Postal Address:
G.P.O. Box 121, Adelaide 5001


--------------000502050704070706060501-- From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 28 00:27:30 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 7FA1511CE2D for ; Tue, 28 Sep 2004 00:27:30 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id D3A691113C; Tue, 28 Sep 2004 00:27:29 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id C8D5B1114D; Tue, 28 Sep 2004 00:27:29 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from malik.acsalaska.net (malik.acsalaska.net [209.112.155.41]) by guelah.shrubbery.net (Postfix) with ESMTP id E69211113C for ; Tue, 28 Sep 2004 00:27:28 +0000 (UTC) Received: from [10.0.102.15] (209-112-156-47-adslb0fh.acsalaska.net [209.112.156.47]) by malik.acsalaska.net (8.13.1/8.13.1) with ESMTP id i8S0RPsx028489 for ; Mon, 27 Sep 2004 16:27:25 -0800 (AKDT) (envelope-from chris.brown@acsalaska.net) Message-ID: <4158AFDF.4030808@acsalaska.net> Date: Mon, 27 Sep 2004 16:27:11 -0800 From: "Christopher E. Brown" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040803 Thunderbird/0.7.3 Mnenhy/0.6.0.104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: rancid-discuss@shrubbery.net Subject: rancid 2.3.1 failure with all "cat5" devices (was working before 2.3rc1 -> 2.3.1 upgrade) X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ACS-Spam-Status: no X-ACS-Scanned-By: MD 2.44; SA 2.64; spamdefang 1.109 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk bash-2.05b$ /usr/local/libexec/rancid/cat5rancid -d cs02-nwc executing clogin -t 300 -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 all;write term" cs02-nwc PROMPT MATCH: cs02-nwc> HIT COMMAND:cs02-nwc> (enable) show version In ShowVersion: cs02-nwc> (enable) show version HIT COMMAND:cs02-nwc> (enable) show boot In ShowBoot: cs02-nwc> (enable) show boot HIT COMMAND:cs02-nwc> (enable) show flash In ShowFlash: cs02-nwc> (enable) show flash HIT COMMAND:cs02-nwc> (enable) dir bootflash: In DirSlotN: cs02-nwc> (enable) dir bootflash: HIT COMMAND:cs02-nwc> (enable) dir slot0: In DirSlotN: cs02-nwc> (enable) dir slot0: HIT COMMAND:cs02-nwc> (enable) dir slot1: In DirSlotN: cs02-nwc> (enable) dir slot1: HIT COMMAND:cs02-nwc> (enable) dir sup-bootflash: In DirSlotN: cs02-nwc> (enable) dir sup-bootflash: HIT COMMAND:cs02-nwc> (enable) dir sup-microcode: In DirSlotN: cs02-nwc> (enable) dir sup-microcode: HIT COMMAND:cs02-nwc> (enable) show module In ShowModule: cs02-nwc> (enable) show module HIT COMMAND:cs02-nwc> (enable) show port ifindex In ShowPortIfindex: cs02-nwc> (enable) show port ifindex HIT COMMAND:cs02-nwc> (enable) write term all In WriteTerm: cs02-nwc> (enable) write term all write(spawn_id=4): I/O error while executing "send "exit\r"" invoked from within "expect -nobrace -re {^[^ *]*cs02-nwc> \(enable\)} { # the Cisco CE and Jnx ERX # return to non-enabled mode # on exit in ena..." invoked from within "expect { -re "^\[^\n\r *]*$reprompt" { # the Cisco CE and Jnx ERX # return to non-enabled mode # on exit in enabled mode. ..." (procedure "run_commands" line 104) invoked from within "run_commands $prompt $command" ("foreach" body line 144) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" # Figure out prompt. # Since autoena..." (file "/usr/local/libexec/rancid/clogin" line 616) cs02-nwc: missed cmd(s): write term cs02-nwc: missed cmd(s): write term -- ------------------------------------------------------------------------ Christopher E. Brown desk (907) 273-6893 cell (907) 632-8492 IP Engineer III - ACS ------------------------------------------------------------------------ From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 28 12:13:36 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 2509011CE2D for ; Tue, 28 Sep 2004 12:13:36 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 66DAE1113C; Tue, 28 Sep 2004 12:13:35 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 591111114D; Tue, 28 Sep 2004 12:13:35 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from pfepb.post.tele.dk (pfepb.post.tele.dk [195.41.46.236]) by guelah.shrubbery.net (Postfix) with ESMTP id A8AC71113C for ; Tue, 28 Sep 2004 12:13:34 +0000 (UTC) Received: from snehvide.intra.kalesh.dk (0x503e293b.virnxx8.adsl-dhcp.tele.dk [80.62.41.59]) by pfepb.post.tele.dk (Postfix) with ESMTP id B198E5EE05D for ; Tue, 28 Sep 2004 14:13:31 +0200 (CEST) Received: from snehvide.intra.kalesh.dk (localhost [127.0.0.1]) by snehvide.intra.kalesh.dk (8.12.10/8.12.10) with ESMTP id i8SCDVWS041010 for ; Tue, 28 Sep 2004 14:13:31 +0200 (CEST) (envelope-from admin@snehvide.intra.kalesh.dk) Received: (from admin@localhost) by snehvide.intra.kalesh.dk (8.12.10/8.12.10/Submit) id i8SCDVBa041009 for rancid-discuss@shrubbery.net; Tue, 28 Sep 2004 14:13:31 +0200 (CEST) (envelope-from admin) Date: Tue, 28 Sep 2004 14:13:31 +0200 From: Soren Hansen To: rancid-discuss@shrubbery.net Subject: CatOS problem Message-ID: <20040928121331.GA40967@snehvide.intra.kalesh.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Seems like other than me have problems with CatOS devices. >From my sniffer traces it looks like all the dots after issuing the "write term" command confuses the script. The final "exit" command is issued after a number of dots. On an IOS device where everything works, the "exit" command is only issued after the output of the command is finished. I have 47 CatOS devicesi (cat5500, Cat400?, and Cat650?), none of which works. All 66 IOS devices, including PIX'es work. I also have an altheon device working nicely. Best regards, Soren Hansen From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 28 12:29:27 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 5206411CE2D for ; Tue, 28 Sep 2004 12:29:27 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 933C31113C; Tue, 28 Sep 2004 12:29:26 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 855F11114D; Tue, 28 Sep 2004 12:29:26 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from server.nipper.de (relay.nipper.de [212.86.201.222]) by guelah.shrubbery.net (Postfix) with ESMTP id D91221113C for ; Tue, 28 Sep 2004 12:29:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by server.nipper.de (Postfix on SuSE Linux 7.3 (i386)) with ESMTP id 8E80E1F93F; Tue, 28 Sep 2004 14:29:18 +0200 (CEST) Received: from server.nipper.de ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32047-01; Tue, 28 Sep 2004 14:28:53 +0200 (CEST) Received: from [127.0.0.1] (pc102.nipper.de [192.168.144.102]) by server.nipper.de (Postfix on SuSE Linux 7.3 (i386)) with ESMTP id C8E8119880; Tue, 28 Sep 2004 14:28:51 +0200 (CEST) Message-ID: <415958F4.2040600@nipper.de> Date: Tue, 28 Sep 2004 14:28:36 +0200 From: Arnold Nipper Organization: nIPper consulting User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910 Mnenhy/0.6.0.104 X-Accept-Language: de, en-us, en MIME-Version: 1.0 To: Soren Hansen Cc: rancid-discuss@shrubbery.net Subject: Re: CatOS problem References: <20040928121331.GA40967@snehvide.intra.kalesh.dk> In-Reply-To: <20040928121331.GA40967@snehvide.intra.kalesh.dk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at nipper.de Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On 28.09.2004 14:13 Soren Hansen wrote: > Seems like other than me have problems with CatOS devices. >>From my sniffer traces it looks like all the dots after issuing the "write term" command confuses the script. > The final "exit" command is issued after a number of dots. > On an IOS device where everything works, the "exit" command is only issued after the output of the command is finished. > > I have 47 CatOS devicesi (cat5500, Cat400?, and Cat650?), none of which works. > > All 66 IOS devices, including PIX'es work. > > I also have an altheon device working nicely. > I have 3 CatOS devices (cat6509): all work I have 7 IOS devices (cat2900, 2691, ...): all work Arnold From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 28 12:40:27 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 76F3911CE2D for ; Tue, 28 Sep 2004 12:40:27 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id C8AC811142; Tue, 28 Sep 2004 12:40:26 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id BB20F11154; Tue, 28 Sep 2004 12:40:26 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from pfepc.post.tele.dk (pfepc.post.tele.dk [195.41.46.237]) by guelah.shrubbery.net (Postfix) with ESMTP id 1347C11142 for ; Tue, 28 Sep 2004 12:40:26 +0000 (UTC) Received: from snehvide.intra.kalesh.dk (0x503e293b.virnxx8.adsl-dhcp.tele.dk [80.62.41.59]) by pfepc.post.tele.dk (Postfix) with ESMTP id A97FE262868; Tue, 28 Sep 2004 14:40:22 +0200 (CEST) Received: from snehvide.intra.kalesh.dk (localhost [127.0.0.1]) by snehvide.intra.kalesh.dk (8.12.10/8.12.10) with ESMTP id i8SCeMWS041195; Tue, 28 Sep 2004 14:40:22 +0200 (CEST) (envelope-from admin@snehvide.intra.kalesh.dk) Received: (from admin@localhost) by snehvide.intra.kalesh.dk (8.12.10/8.12.10/Submit) id i8SCeMeb041194; Tue, 28 Sep 2004 14:40:22 +0200 (CEST) (envelope-from admin) Date: Tue, 28 Sep 2004 14:40:22 +0200 From: Soren Hansen To: Arnold Nipper Cc: rancid-discuss@shrubbery.net Subject: Re: CatOS problem Message-ID: <20040928124022.GC40967@snehvide.intra.kalesh.dk> References: <20040928121331.GA40967@snehvide.intra.kalesh.dk> <415958F4.2040600@nipper.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <415958F4.2040600@nipper.de> User-Agent: Mutt/1.4.2.1i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On Tue, Sep 28, 2004 at 02:28:36PM +0200, Arnold Nipper wrote: > On 28.09.2004 14:13 Soren Hansen wrote: > > > Seems like other than me have problems with CatOS devices. > >>From my sniffer traces it looks like all the dots after issuing the "write term" command confuses the script. > > The final "exit" command is issued after a number of dots. > > On an IOS device where everything works, the "exit" command is only issued after the output of the command is finished. > > > > I have 47 CatOS devicesi (cat5500, Cat400?, and Cat650?), none of which works. > > > > All 66 IOS devices, including PIX'es work. > > > > I also have an altheon device working nicely. > > > > I have 3 CatOS devices (cat6509): all work > I have 7 IOS devices (cat2900, 2691, ...): all work > > > > > Arnold > I use FreeBSD 4.9 and rancid-2.3_1 from ports. I believe I "lost" the switches in an unintended upgrade of rancid from 2.2.something. /Soren From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 28 17:12:04 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id B2ECC11CE2D for ; Tue, 28 Sep 2004 17:12:03 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 04F1F1113C; Tue, 28 Sep 2004 17:12:03 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id F327D1114D; Tue, 28 Sep 2004 17:12:02 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 6E0D311142; Tue, 28 Sep 2004 17:12:02 +0000 (UTC) Date: Tue, 28 Sep 2004 10:12:02 -0700 From: john heasley To: Soren Hansen Cc: Arnold Nipper , rancid-discuss@shrubbery.net Subject: Re: CatOS problem Message-ID: <20040928171202.GC20268@shrubbery.net> References: <20040928121331.GA40967@snehvide.intra.kalesh.dk> <415958F4.2040600@nipper.de> <20040928124022.GC40967@snehvide.intra.kalesh.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040928124022.GC40967@snehvide.intra.kalesh.dk> User-Agent: Mutt/1.4.2.1i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: i just want to have a beer while i am caring. Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Tue, Sep 28, 2004 at 02:40:22PM +0200, Soren Hansen: > On Tue, Sep 28, 2004 at 02:28:36PM +0200, Arnold Nipper wrote: > > On 28.09.2004 14:13 Soren Hansen wrote: > > > > > Seems like other than me have problems with CatOS devices. > > >>From my sniffer traces it looks like all the dots after issuing the "write term" command confuses the script. > > > The final "exit" command is issued after a number of dots. > > > On an IOS device where everything works, the "exit" command is only issued after the output of the command is finished. > > > > > > I have 47 CatOS devicesi (cat5500, Cat400?, and Cat650?), none of which works. > > > > > > All 66 IOS devices, including PIX'es work. > > > > > > I also have an altheon device working nicely. > > > > > > > I have 3 CatOS devices (cat6509): all work > > I have 7 IOS devices (cat2900, 2691, ...): all work > > > > > > > > > > Arnold > > > > I use FreeBSD 4.9 and rancid-2.3_1 from ports. I believe I "lost" the switches in an unintended upgrade of rancid from 2.2.something. Could you run % setenv NOPIPE YES % cat5rancid -d hostname and send the hostname.raw file to me? [please do not use a MUA that auto-wraps lines] From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 28 17:19:43 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 06C6E11CE2D for ; Tue, 28 Sep 2004 17:19:42 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 59BB411142; Tue, 28 Sep 2004 17:19:42 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 5290311154; Tue, 28 Sep 2004 17:19:42 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id BA1D41114D; Tue, 28 Sep 2004 17:19:41 +0000 (UTC) Date: Tue, 28 Sep 2004 10:19:41 -0700 From: john heasley To: "Christopher E. Brown" Cc: rancid-discuss@shrubbery.net Subject: Re: rancid 2.3.1 failure with all "cat5" devices (was working before 2.3rc1 -> 2.3.1 upgrade) Message-ID: <20040928171941.GD20268@shrubbery.net> References: <4158AFDF.4030808@acsalaska.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4158AFDF.4030808@acsalaska.net> User-Agent: Mutt/1.4.2.1i X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: i just want to have a beer while i am caring. Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Mon, Sep 27, 2004 at 04:27:11PM -0800, Christopher E. Brown: > bash-2.05b$ /usr/local/libexec/rancid/cat5rancid -d cs02-nwc > executing clogin -t 300 -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 all;write term" > cs02-nwc > PROMPT MATCH: cs02-nwc> > HIT COMMAND:cs02-nwc> (enable) write term all > In WriteTerm: cs02-nwc> (enable) write term all > write(spawn_id=4): I/O error > while executing > "send "exit\r"" > invoked from within > "expect -nobrace -re {^[^ > *]*cs02-nwc> \(enable\)} { Does this occur all the time or transient? does write term all complete with disconnect of the terminal session? From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 28 17:21:27 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 9CA5311CE2D for ; Tue, 28 Sep 2004 17:21:27 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id D84DA1114D; Tue, 28 Sep 2004 17:21:26 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id CEF2511155; Tue, 28 Sep 2004 17:21:26 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from hermes.acsalaska.net (hermes.acsalaska.net [209.112.155.38]) by guelah.shrubbery.net (Postfix) with ESMTP id D4D1E1114D for ; Tue, 28 Sep 2004 17:21:25 +0000 (UTC) Received: from [10.0.102.15] (209-112-156-47-adslb0fh.acsalaska.net [209.112.156.47]) by hermes.acsalaska.net (8.13.1/8.13.1) with ESMTP id i8SHL97b034625; Tue, 28 Sep 2004 09:21:09 -0800 (AKDT) (envelope-from chris.brown@acsalaska.net) Message-ID: <41599D73.1020206@acsalaska.net> Date: Tue, 28 Sep 2004 09:20:51 -0800 From: "Christopher E. Brown" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040803 Thunderbird/0.7.3 Mnenhy/0.6.0.104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Soren Hansen Cc: Arnold Nipper , rancid-discuss@shrubbery.net Subject: Re: CatOS problem References: <20040928121331.GA40967@snehvide.intra.kalesh.dk> <415958F4.2040600@nipper.de> <20040928124022.GC40967@snehvide.intra.kalesh.dk> In-Reply-To: <20040928124022.GC40967@snehvide.intra.kalesh.dk> X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ACS-Spam-Status: no X-ACS-Scanned-By: MD 2.44; SA 2.64; spamdefang 1.109 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk > > I use FreeBSD 4.9 and rancid-2.3_1 from ports. I believe I "lost" the switches in an unintended upgrade of rancid from 2.2.something. > > /Soren I have several hundred IOS devices, some redbacks,and a few dozen PiXen, all of those are fine. My 40 or so CatOS devices (mainly 6509s, and a mix of SUP2 Cat4k and Cat5k) are the ones with issues. 2.x to 2.3rc1 broke 1760s. 2.3rc1 -> 2.3.1 fixed the 1760s, but broke all CatOS devices. This is a FreeBSD system, and 2.3.1 is from the ports tree. The IO error happens on the final command, I can reverse the run order of write term all and write term and it still happens the same. It *looks* like rancid errors when things exit early (by rancids idea) Seems to do a double logout (?exit then quit?), and error out when the switch logs it out on the first command. All commands run find on the switch (it is *after* write term all runs, when it issues an "exit\r" that things die. -- ------------------------------------------------------------------------ Christopher E. Brown desk (907) 273-6893 cell (907) 632-8492 IP Engineer III - ACS ------------------------------------------------------------------------ From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 28 17:32:11 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 91F9E11CE2D for ; Tue, 28 Sep 2004 17:32:11 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id D0E8811142; Tue, 28 Sep 2004 17:32:10 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id C228B11154; Tue, 28 Sep 2004 17:32:10 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from malik.acsalaska.net (malik.acsalaska.net [209.112.155.41]) by guelah.shrubbery.net (Postfix) with ESMTP id 4353211142; Tue, 28 Sep 2004 17:32:08 +0000 (UTC) Received: from [10.0.102.15] (209-112-156-47-adslb0fh.acsalaska.net [209.112.156.47]) by malik.acsalaska.net (8.13.1/8.13.1) with ESMTP id i8SHW5ax008230; Tue, 28 Sep 2004 09:32:06 -0800 (AKDT) (envelope-from chris.brown@acsalaska.net) Message-ID: <4159A003.3040605@acsalaska.net> Date: Tue, 28 Sep 2004 09:31:47 -0800 From: "Christopher E. Brown" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040803 Thunderbird/0.7.3 Mnenhy/0.6.0.104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: john heasley Cc: rancid-discuss@shrubbery.net Subject: Re: rancid 2.3.1 failure with all "cat5" devices (was working before 2.3rc1 -> 2.3.1 upgrade) References: <4158AFDF.4030808@acsalaska.net> <20040928171941.GD20268@shrubbery.net> In-Reply-To: <20040928171941.GD20268@shrubbery.net> X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ACS-Spam-Status: no X-ACS-Scanned-By: MD 2.44; SA 2.64; spamdefang 1.109 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk john heasley wrote: > Mon, Sep 27, 2004 at 04:27:11PM -0800, Christopher E. Brown: > >>bash-2.05b$ /usr/local/libexec/rancid/cat5rancid -d cs02-nwc >>executing clogin -t 300 -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 all;write term" >>cs02-nwc >>PROMPT MATCH: cs02-nwc> > > >>HIT COMMAND:cs02-nwc> (enable) write term all >> In WriteTerm: cs02-nwc> (enable) write term all >>write(spawn_id=4): I/O error >> while executing >>"send "exit\r"" >> invoked from within >>"expect -nobrace -re {^[^ >> *]*cs02-nwc> \(enable\)} { > > > Does this occur all the time or transient? does write term all complete > with disconnect of the terminal session? The device poll fails *every time*, and every time I have run things manualls I got the same error as above. It looks like the error happens when the switch is sent "exit\r" and drops the session. All the commands complete. -- ------------------------------------------------------------------------ Christopher E. Brown desk (907) 273-6893 cell (907) 632-8492 IP Engineer III - ACS ------------------------------------------------------------------------ From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 28 19:46:09 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 6B87A11CE2D for ; Tue, 28 Sep 2004 19:46:09 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id B9C391113C; Tue, 28 Sep 2004 19:46:08 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id AD24B11154; Tue, 28 Sep 2004 19:46:08 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from malik.acsalaska.net (malik.acsalaska.net [209.112.155.41]) by guelah.shrubbery.net (Postfix) with ESMTP id 1CFCC1113C; Tue, 28 Sep 2004 19:46:06 +0000 (UTC) Received: from [10.0.102.15] (209-112-156-47-adslb0fh.acsalaska.net [209.112.156.47]) by malik.acsalaska.net (8.13.1/8.13.1) with ESMTP id i8SJk58f082670; Tue, 28 Sep 2004 11:46:05 -0800 (AKDT) (envelope-from chris.brown@acsalaska.net) Message-ID: <4159BF6B.8060608@acsalaska.net> Date: Tue, 28 Sep 2004 11:45:47 -0800 From: "Christopher E. Brown" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040803 Thunderbird/0.7.3 Mnenhy/0.6.0.104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: john heasley Cc: rancid-discuss@shrubbery.net Subject: Re: rancid 2.3.1 failure with all "cat5" devices (was working before 2.3rc1 -> 2.3.1 upgrade) References: <4158AFDF.4030808@acsalaska.net> <20040928171941.GD20268@shrubbery.net> In-Reply-To: <20040928171941.GD20268@shrubbery.net> X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ACS-Spam-Status: no X-ACS-Scanned-By: MD 2.44; SA 2.64; spamdefang 1.109 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk john heasley wrote: > Mon, Sep 27, 2004 at 04:27:11PM -0800, Christopher E. Brown: > >>bash-2.05b$ /usr/local/libexec/rancid/cat5rancid -d cs02-nwc >>executing clogin -t 300 -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 all;write term" >>cs02-nwc >>PROMPT MATCH: cs02-nwc> > > >>HIT COMMAND:cs02-nwc> (enable) write term all >> In WriteTerm: cs02-nwc> (enable) write term all >>write(spawn_id=4): I/O error >> while executing >>"send "exit\r"" >> invoked from within >>"expect -nobrace -re {^[^ >> *]*cs02-nwc> \(enable\)} { > > > Does this occur all the time or transient? does write term all complete > with disconnect of the terminal session? #authorization set authorization exec enable tacacs+ none console set authorization exec enable tacacs+ none telnet set authorization enable enable tacacs+ none console set authorization enable enable tacacs+ none telnet set authorization commands enable all tacacs+ none console set authorization commands enable all tacacs+ none telnet end cs01_nwc> (enable)This command shows non-default configurations only. Use 'write terminal all' to show both default and non-default configurations. ......... .................. .................. ............... .................... .................... Interesting, this is the end of write term all, and the start of write term from the .raw file Notice the lost echoback, we see the prompt, but not where "write term" is entered. -- ------------------------------------------------------------------------ Christopher E. Brown desk (907) 273-6893 cell (907) 632-8492 IP Engineer III - ACS ------------------------------------------------------------------------ From owner-rancid-discuss-outgoing@shrubbery.net Tue Sep 28 20:20:17 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 5557111CE2D for ; Tue, 28 Sep 2004 20:20:17 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id E3B5011154; Tue, 28 Sep 2004 20:20:16 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id D82F311158; Tue, 28 Sep 2004 20:20:16 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from hermes.acsalaska.net (hermes.acsalaska.net [209.112.155.38]) by guelah.shrubbery.net (Postfix) with ESMTP id EDD6E11154; Tue, 28 Sep 2004 20:20:15 +0000 (UTC) Received: from [10.0.102.15] (209-112-156-47-adslb0fh.acsalaska.net [209.112.156.47]) by hermes.acsalaska.net (8.13.1/8.13.1) with ESMTP id i8SKK9hc034191; Tue, 28 Sep 2004 12:20:09 -0800 (AKDT) (envelope-from chris.brown@acsalaska.net) Message-ID: <4159C766.2000203@acsalaska.net> Date: Tue, 28 Sep 2004 12:19:50 -0800 From: "Christopher E. Brown" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040803 Thunderbird/0.7.3 Mnenhy/0.6.0.104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Christopher E. Brown" Cc: john heasley , rancid-discuss@shrubbery.net Subject: Re: rancid 2.3.1 failure with all "cat5" devices (was working before 2.3rc1 -> 2.3.1 upgrade) References: <4158AFDF.4030808@acsalaska.net> <20040928171941.GD20268@shrubbery.net> <4159BF6B.8060608@acsalaska.net> In-Reply-To: <4159BF6B.8060608@acsalaska.net> X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ACS-Spam-Status: no X-ACS-Scanned-By: MD 2.44; SA 2.64; spamdefang 1.109 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk I have no idea why, but --- clogin.sav Tue Sep 28 11:28:44 2004 +++ clogin Tue Sep 28 12:15:39 2004 @@ -499,7 +499,7 @@ send "set length 0\r" # This is ugly, but reduces code duplication, allowing the # subsequent expects to handle everything as normal. - set command "set logging session disable\r;$command" + #set command "set logging session disable\r;$command" } else { send "term length 0\r" } seems to fix things. At least, the cs01_nwc> (enable)This command shows non-default configurations only. Use 'write terminal all' to show both default and non-default configurations. in the .raw file becomes cs01_nwc> (enable)write term This command shows non-default configurations only. Use 'write terminal all' to show both default and non-default configurations. Christopher E. Brown wrote: > john heasley wrote: > >> Mon, Sep 27, 2004 at 04:27:11PM -0800, Christopher E. Brown: >> >>> bash-2.05b$ /usr/local/libexec/rancid/cat5rancid -d cs02-nwc >>> executing clogin -t 300 -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 all;write >>> term" cs02-nwc >>> PROMPT MATCH: cs02-nwc> >> >> >> >>> HIT COMMAND:cs02-nwc> (enable) write term all >>> In WriteTerm: cs02-nwc> (enable) write term all >>> write(spawn_id=4): I/O error >>> while executing >>> "send "exit\r"" >>> invoked from within >>> "expect -nobrace -re {^[^ >>> *]*cs02-nwc> \(enable\)} { >> >> >> >> Does this occur all the time or transient? does write term all complete >> with disconnect of the terminal session? > > > > > #authorization > set authorization exec enable tacacs+ none console > set authorization exec enable tacacs+ none telnet > set authorization enable enable tacacs+ none console > set authorization enable enable tacacs+ none telnet > set authorization commands enable all tacacs+ none console > set authorization commands enable all tacacs+ none telnet > end > cs01_nwc> (enable)This command shows non-default configurations only. > Use 'write terminal all' to show both default and non-default > configurations. > ......... > .................. > > > .................. > > ............... > > .................... > .................... > > > Interesting, this is the end of write term all, and the start of write > term from the .raw file > > Notice the lost echoback, we see the prompt, but not where "write term" > is entered. > > > -- ------------------------------------------------------------------------ Christopher E. Brown desk (907) 273-6893 cell (907) 632-8492 IP Engineer III - ACS ------------------------------------------------------------------------ From owner-rancid-discuss-outgoing@shrubbery.net Thu Sep 30 03:15:03 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id B6ED511CE3B for ; Thu, 30 Sep 2004 03:15:03 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 0C2D51113C; Thu, 30 Sep 2004 03:15:03 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 02B6A11146; Thu, 30 Sep 2004 03:15:03 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id A2ED111142; Thu, 30 Sep 2004 03:15:02 +0000 (UTC) Received: from mailhub3.state.ma.us (mailhub3.state.ma.us [146.243.12.157]) by guelah.shrubbery.net (Postfix) with ESMTP id CEF2B1113C for ; Mon, 27 Sep 2004 15:26:55 +0000 (UTC) Received: from itd-wnts-f6.state.ma.us by mailhub3.state.ma.us with ESMTP for rancid-discuss@shrubbery.net; Mon, 27 Sep 2004 11:26:52 -0400 Received: from itd-smtp-gw3.state.ma.us (unverified) by itd-wnts-f6.state.ma.us (Content Technologies SMTPRS 4.3.14) with SMTP id for ; Mon, 27 Sep 2004 11:26:47 -0400 Received: from wansys-nt2.mail.state.ma.us ([146.243.12.75]) by itd-smtp-gw3.state.ma.us (SAVSMTP 3.1.1.32) with SMTP id M2004092711264711149 for ; Mon, 27 Sep 2004 11:26:47 -0400 Received: by wansys-nt2.state.ma.us with Internet Mail Service (5.5.2656.59) id ; Mon, 27 Sep 2004 11:26:46 -0400 Message-Id: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> From: "Coupe, Mark (ITD)" To: rancid-discuss@shrubbery.net Subject: CatOS Problem Date: Mon, 27 Sep 2004 11:26:32 -0400 MIME-Version: 1.0 content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4A4A6.5E7D1A80" Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C4A4A6.5E7D1A80 Content-Type: text/plain; charset="iso-8859-1" Hi, I've got a Cisco network of 1900s (haven't dealt with yet), IOS and CatOS. I've got all the IOS and CatOS devices in a single router.db file. The manufacturer entry is set for each to either 'cisco' or 'cat5' as appropriate. The problem that I'm having is that while all of the IOS devices have their config pulled without issue, none of the CatOS devices do. I have successfully logged into and run commands on the CatOS devices by using 'clogin' and specifying the hostname and commands. When I use 'rancid-run' I get the following error message (or similar) in the logs for each of the devices: " clogin error: Error: TIMEOUT reached : missed cmd(s): write term all,show port ifindex,show module,dir sup-microcode:,dir sup-bootflash:,dir bootflash:,dir slot0:,showversion,show flash,write term,show boot,dir slot1: : End of run not found" Can anyone point me in the right direction at least because while I realize that the "End of run not found" is the bigger issue than the "missed cmd(s)" (according to stuff I've read in the archives) I'm not really sure where I should be looking. Thanks, Mark ------_=_NextPart_001_01C4A4A6.5E7D1A80 Content-Type: text/html; charset="iso-8859-1"
Hi,
 
I've got a Cisco network of 1900s (haven't dealt with yet), IOS and CatOS.  I've got all the IOS and CatOS devices in a single router.db file.  The manufacturer entry is set for each to either 'cisco' or 'cat5' as appropriate.  The problem that I'm having is that while all of the IOS devices have their config pulled without issue, none of the CatOS devices do.
 
I have successfully logged into and run commands on the CatOS devices by using 'clogin' and specifying the hostname and commands.  When I use 'rancid-run' I get the following error message (or similar) in the logs for each of the devices:
 
 
"<hostname> clogin error: Error: TIMEOUT reached
<hostname>: missed cmd(s): write term all,show port ifindex,show module,dir sup-microcode:,dir sup-bootflash:,dir bootflash:,dir slot0:,showversion,show flash,write term,show boot,dir slot1:
<hostname>: End of run not found"
 
Can anyone point me in the right direction at least because while I realize that the "End of run not found" is the bigger issue than the "missed cmd(s)" (according to stuff I've read in the archives) I'm not really sure where I should be looking.
 
 
Thanks,
 
Mark
------_=_NextPart_001_01C4A4A6.5E7D1A80-- From owner-rancid-discuss-outgoing@shrubbery.net Thu Sep 30 18:21:00 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id AA91011CE3B for ; Thu, 30 Sep 2004 18:21:00 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 0EAA51113C; Thu, 30 Sep 2004 18:21:00 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 046A711146; Thu, 30 Sep 2004 18:21:00 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from hermes.acsalaska.net (hermes.acsalaska.net [209.112.155.38]) by guelah.shrubbery.net (Postfix) with ESMTP id 6337D1113C for ; Thu, 30 Sep 2004 18:20:57 +0000 (UTC) Received: from [10.0.102.15] (209-112-156-47-adslb0fh.acsalaska.net [209.112.156.47]) by hermes.acsalaska.net (8.13.1/8.13.1) with ESMTP id i8UIKoqE057449; Thu, 30 Sep 2004 10:20:51 -0800 (AKDT) (envelope-from chris.brown@acsalaska.net) Message-ID: <415C4E6D.1050901@acsalaska.net> Date: Thu, 30 Sep 2004 10:20:29 -0800 From: "Christopher E. Brown" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040803 Thunderbird/0.7.3 Mnenhy/0.6.0.104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Coupe, Mark (ITD)" Cc: rancid-discuss@shrubbery.net Subject: Re: CatOS Problem References: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> In-Reply-To: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ACS-Spam-Status: no X-ACS-Scanned-By: MD 2.44; SA 2.64; spamdefang 1.109 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk I noticed that for whatever reason there is an issue with prompt parsing on CatOS devices. I had to set login/enable passwords and autoenable = 0 in cloginrc for my Cat)S devices. Coupe, Mark (ITD) wrote: > Hi, > > I've got a Cisco network of 1900s (haven't dealt with yet), IOS and > CatOS. I've got all the IOS and CatOS devices in a single router.db > file. The manufacturer entry is set for each to either 'cisco' or > 'cat5' as appropriate. The problem that I'm having is that while all of > the IOS devices have their config pulled without issue, none of the > CatOS devices do. > > I have successfully logged into and run commands on the CatOS devices by > using 'clogin' and specifying the hostname and commands. When I use > 'rancid-run' I get the following error message (or similar) in the logs > for each of the devices: > > > " clogin error: Error: TIMEOUT reached > : missed cmd(s): write term all,show port ifindex,show > module,dir sup-microcode:,dir sup-bootflash:,dir bootflash:,dir > slot0:,showversion,show flash,write term,show boot,dir slot1: > : End of run not found" > > Can anyone point me in the right direction at least because while I > realize that the "End of run not found" is the bigger issue than the > "missed cmd(s)" (according to stuff I've read in the archives) I'm not > really sure where I should be looking. > > > Thanks, > > Mark -- ------------------------------------------------------------------------ Christopher E. Brown desk (907) 273-6893 cell (907) 632-8492 IP Engineer III - ACS ------------------------------------------------------------------------