From TWilliam at Covad.COM Fri Sep 3 19:04:50 2004 From: TWilliam at Covad.COM (Williamson, Todd) Date: Fri, 3 Sep 2004 12:04:50 -0700 Subject: jerancid for ERX's with "service manual-commit"? Message-ID: 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 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 asp at partan.com Fri Sep 3 19:10:14 2004 From: asp at partan.com (Andrew Partan) Date: Fri, 3 Sep 2004 15:10:14 -0400 Subject: jerancid for ERX's with "service manual-commit"? In-Reply-To: References: Message-ID: <20040903191014.GC78196@partan.com> 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 DKing at tiscom.uscg.mil Fri Sep 3 20:05:59 2004 From: DKing at tiscom.uscg.mil (King, David) Date: Fri, 3 Sep 2004 16:05:59 -0400 Subject: nrancid issue Message-ID: <86C30EAC16195C4EBDADE65B9B8518F820FAFB@tiscomex.tiscom.uscg.mil> 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 petery at eng.uts.edu.au Wed Sep 8 06:34:30 2004 From: petery at eng.uts.edu.au (Peter Yardley) Date: Wed, 08 Sep 2004 16:34:30 +1000 Subject: Problem with Cisco 4000 with CatOS 7.6 Message-ID: <413EA7F6.1@eng.uts.edu.au> 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 at eng.uts.edu.au / \ Network & UNIX Systems Manager | Peter.Yardley at uts.edu.au \_.--._* Faculty of Engineering, | Ph: +61 2 9514-2358 v University of Technology, Sydney.| Fax: +61 2 9514-2435 From lists at lowside.org Wed Sep 8 15:19:29 2004 From: lists at lowside.org (Len) Date: Wed, 08 Sep 2004 08:19:29 -0700 Subject: Problem with Cisco 4000 with CatOS 7.6 In-Reply-To: <413EA7F6.1@eng.uts.edu.au> References: <413EA7F6.1@eng.uts.edu.au> Message-ID: <413F2301.5010101@lowside.org> 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 heas at shrubbery.net Wed Sep 8 18:21:46 2004 From: heas at shrubbery.net (john heasley) Date: Wed, 8 Sep 2004 11:21:46 -0700 Subject: Problem with Cisco 4000 with CatOS 7.6 In-Reply-To: <413F2301.5010101@lowside.org> References: <413EA7F6.1@eng.uts.edu.au> <413F2301.5010101@lowside.org> Message-ID: <20040908182146.GD8721@shrubbery.net> 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 jrizzo at perpetual.com Tue Sep 14 16:40:13 2004 From: jrizzo at perpetual.com (Joe Rizzo) Date: Tue, 14 Sep 2004 09:40:13 -0700 Subject: Dell Powerconnect switches Message-ID: <20040914164015.C3801338014@mail.perpetualent.com> 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 shekhar at mos.com.np Thu Sep 16 10:52:59 2004 From: shekhar at mos.com.np (Shekhar Basnet) Date: Thu, 16 Sep 2004 16:37:59 +0545 Subject: problem while installing rancid 2.2.2 Message-ID: <1095331978.18053.4.camel@chulu.mos.com.np> 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 at 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 heas at shrubbery.net Thu Sep 16 17:48:54 2004 From: heas at shrubbery.net (john heasley) Date: Thu, 16 Sep 2004 10:48:54 -0700 Subject: problem while installing rancid 2.2.2 In-Reply-To: <1095331978.18053.4.camel@chulu.mos.com.np> References: <1095331978.18053.4.camel@chulu.mos.com.np> Message-ID: <20040916174854.GB19701@shrubbery.net> 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 at 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 shekhar at mos.com.np Fri Sep 17 05:54:01 2004 From: shekhar at mos.com.np (Shekhar Basnet) Date: Fri, 17 Sep 2004 11:39:01 +0545 Subject: problem while installing rancid 2.2.2 In-Reply-To: <20040916174854.GB19701@shrubbery.net> References: <1095331978.18053.4.camel@chulu.mos.com.np> <20040916174854.GB19701@shrubbery.net> Message-ID: <1095400440.18053.6.camel@chulu.mos.com.np> 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 at 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 darren at adam.com.au Tue Sep 21 00:06:55 2004 From: darren at adam.com.au (darren kruse) Date: Tue, 21 Sep 2004 09:36:55 +0930 Subject: rancid issue with 2/3 cat5's after upgrade Message-ID: <414F709F.9000707@adam.com.au> 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 From mloveley at plus.net Wed Sep 22 13:25:57 2004 From: mloveley at plus.net (Mark Loveley) Date: Wed, 22 Sep 2004 14:25:57 +0100 Subject: Problems with the rancid ERX module jerancid Message-ID: <1095859557.4290.43.camel@markloveley> 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 darren at adam.com.au Mon Sep 27 02:01:31 2004 From: darren at adam.com.au (darren kruse) Date: Mon, 27 Sep 2004 11:31:31 +0930 Subject: rancid issue with 2/3 cat5's after upgrade In-Reply-To: <414F709F.9000707@adam.com.au> References: <414F709F.9000707@adam.com.au> Message-ID: <4157747B.6010702@adam.com.au> 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 From chris.brown at acsalaska.net Tue Sep 28 00:27:11 2004 From: chris.brown at acsalaska.net (Christopher E. Brown) Date: Mon, 27 Sep 2004 16:27:11 -0800 Subject: rancid 2.3.1 failure with all "cat5" devices (was working before 2.3rc1 -> 2.3.1 upgrade) Message-ID: <4158AFDF.4030808@acsalaska.net> 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 admin at onland.dk Tue Sep 28 12:13:31 2004 From: admin at onland.dk (Soren Hansen) Date: Tue, 28 Sep 2004 14:13:31 +0200 Subject: CatOS problem Message-ID: <20040928121331.GA40967@snehvide.intra.kalesh.dk> 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 arnold at nipper.de Tue Sep 28 12:28:36 2004 From: arnold at nipper.de (Arnold Nipper) Date: Tue, 28 Sep 2004 14:28:36 +0200 Subject: CatOS problem In-Reply-To: <20040928121331.GA40967@snehvide.intra.kalesh.dk> References: <20040928121331.GA40967@snehvide.intra.kalesh.dk> Message-ID: <415958F4.2040600@nipper.de> 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 admin at onland.dk Tue Sep 28 12:40:22 2004 From: admin at onland.dk (Soren Hansen) Date: Tue, 28 Sep 2004 14:40:22 +0200 Subject: CatOS problem In-Reply-To: <415958F4.2040600@nipper.de> References: <20040928121331.GA40967@snehvide.intra.kalesh.dk> <415958F4.2040600@nipper.de> Message-ID: <20040928124022.GC40967@snehvide.intra.kalesh.dk> 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 heas at shrubbery.net Tue Sep 28 17:12:02 2004 From: heas at shrubbery.net (john heasley) Date: Tue, 28 Sep 2004 10:12:02 -0700 Subject: CatOS problem In-Reply-To: <20040928124022.GC40967@snehvide.intra.kalesh.dk> References: <20040928121331.GA40967@snehvide.intra.kalesh.dk> <415958F4.2040600@nipper.de> <20040928124022.GC40967@snehvide.intra.kalesh.dk> Message-ID: <20040928171202.GC20268@shrubbery.net> 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 heas at shrubbery.net Tue Sep 28 17:19:41 2004 From: heas at shrubbery.net (john heasley) Date: Tue, 28 Sep 2004 10:19:41 -0700 Subject: rancid 2.3.1 failure with all "cat5" devices (was working before 2.3rc1 -> 2.3.1 upgrade) In-Reply-To: <4158AFDF.4030808@acsalaska.net> References: <4158AFDF.4030808@acsalaska.net> Message-ID: <20040928171941.GD20268@shrubbery.net> 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 chris.brown at acsalaska.net Tue Sep 28 17:20:51 2004 From: chris.brown at acsalaska.net (Christopher E. Brown) Date: Tue, 28 Sep 2004 09:20:51 -0800 Subject: CatOS problem In-Reply-To: <20040928124022.GC40967@snehvide.intra.kalesh.dk> References: <20040928121331.GA40967@snehvide.intra.kalesh.dk> <415958F4.2040600@nipper.de> <20040928124022.GC40967@snehvide.intra.kalesh.dk> Message-ID: <41599D73.1020206@acsalaska.net> > > 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 chris.brown at acsalaska.net Tue Sep 28 17:31:47 2004 From: chris.brown at acsalaska.net (Christopher E. Brown) Date: Tue, 28 Sep 2004 09:31:47 -0800 Subject: rancid 2.3.1 failure with all "cat5" devices (was working before 2.3rc1 -> 2.3.1 upgrade) In-Reply-To: <20040928171941.GD20268@shrubbery.net> References: <4158AFDF.4030808@acsalaska.net> <20040928171941.GD20268@shrubbery.net> Message-ID: <4159A003.3040605@acsalaska.net> 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 chris.brown at acsalaska.net Tue Sep 28 19:45:47 2004 From: chris.brown at acsalaska.net (Christopher E. Brown) Date: Tue, 28 Sep 2004 11:45:47 -0800 Subject: rancid 2.3.1 failure with all "cat5" devices (was working before 2.3rc1 -> 2.3.1 upgrade) In-Reply-To: <20040928171941.GD20268@shrubbery.net> References: <4158AFDF.4030808@acsalaska.net> <20040928171941.GD20268@shrubbery.net> Message-ID: <4159BF6B.8060608@acsalaska.net> 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 chris.brown at acsalaska.net Tue Sep 28 20:19:50 2004 From: chris.brown at acsalaska.net (Christopher E. Brown) Date: Tue, 28 Sep 2004 12:19:50 -0800 Subject: rancid 2.3.1 failure with all "cat5" devices (was working before 2.3rc1 -> 2.3.1 upgrade) In-Reply-To: <4159BF6B.8060608@acsalaska.net> References: <4158AFDF.4030808@acsalaska.net> <20040928171941.GD20268@shrubbery.net> <4159BF6B.8060608@acsalaska.net> Message-ID: <4159C766.2000203@acsalaska.net> 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 Mark.Coupe at state.ma.us Mon Sep 27 15:26:32 2004 From: Mark.Coupe at state.ma.us (Coupe, Mark (ITD)) Date: Mon, 27 Sep 2004 11:26:32 -0400 Subject: CatOS Problem Message-ID: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> 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 From chris.brown at acsalaska.net Thu Sep 30 18:20:29 2004 From: chris.brown at acsalaska.net (Christopher E. Brown) Date: Thu, 30 Sep 2004 10:20:29 -0800 Subject: CatOS Problem In-Reply-To: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> References: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> Message-ID: <415C4E6D.1050901@acsalaska.net> 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 ------------------------------------------------------------------------