From owner-rancid-discuss-outgoing@shrubbery.net Fri Oct 1 02:17:29 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 75C4311CE3B for ; Fri, 1 Oct 2004 02:17:29 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id CEC2C1113C; Fri, 1 Oct 2004 02:17:28 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id C1A4311146; Fri, 1 Oct 2004 02:17:28 +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 A5D701113C for ; Fri, 1 Oct 2004 02:17:27 +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 4A79220E18; Fri, 1 Oct 2004 11:47:19 +0930 (CST) Message-ID: <415CBE2E.80508@adam.com.au> Date: Fri, 01 Oct 2004 11:47:18 +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: "Christopher E. Brown" Cc: "Coupe, Mark (ITD)" , rancid-discuss@shrubbery.net Subject: Re: CatOS Problem References: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> <415C4E6D.1050901@acsalaska.net> In-Reply-To: <415C4E6D.1050901@acsalaska.net> Content-Type: multipart/alternative; boundary="------------000903000809070208010901" Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk This is a multi-part message in MIME format. --------------000903000809070208010901 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I tried your suggestion re autoenable ... ferret# less .cloginrc add autoenable c55k-2 0 add password c55k-1 userpass enablepass add password c55k-2 userpass enablepass add password c55k-3 userpass enablepass But, it's still doing the same thing , since the upgrade to 2.3.1 it works for the first cat (c55k-1) , then chokes on the second and third. Trying to get all of the configs. write(spawn_id=3): I/O error while executing "send "exit\r"" invoked from within "expect -nobrace -re {^[^ ^M *]*c55k2> \(enable\)} { etc.. as previously advised.. darren Christopher E. Brown wrote: > > 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 > > > -- 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 owner-rancid-discuss-outgoing@shrubbery.net Mon Oct 4 05:45: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 D03F311CE30 for ; Mon, 4 Oct 2004 05:45:27 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 25F431113C; Mon, 4 Oct 2004 05:45:27 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 1CE6711146; Mon, 4 Oct 2004 05:45:27 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from ran.psg.com (ip192.186.dsl-acs2.seawa0.iinet.com [209.20.186.192]) by guelah.shrubbery.net (Postfix) with ESMTP id 8CF3C1113C for ; Mon, 4 Oct 2004 05:45:26 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=ran.psg.com.psg.com) by ran.psg.com with esmtp (Exim 4.34 (FreeBSD)) id 1CELf0-000GZq-Uf for rancid-discuss@shrubbery.net; Sun, 03 Oct 2004 22:45:23 -0700 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16736.58226.550063.613649@ran.psg.com> Date: Sun, 3 Oct 2004 22:45:22 -0700 To: rancid users Subject: freebsd port install location Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk i want the puppy all installed under /usr/home/rancid. i can't get the port makefile to do this without hacking it to remove all the /${PORTNAME}s and then hacking /usr/local/etc/pkgtools.conf to make PREFIX=/usr/home/rancid. but, even if i do that, bin/rancid-run somehowdissapears the etc/router.db file. clues? randy From owner-rancid-discuss-outgoing@shrubbery.net Mon Oct 4 22:09:57 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 C1BAB11CE2D for ; Mon, 4 Oct 2004 22:09:57 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 1A3621113C; Mon, 4 Oct 2004 22:09:57 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 112FA11146; Mon, 4 Oct 2004 22:09:57 +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 68FCA11142; Mon, 4 Oct 2004 22:09:56 +0000 (UTC) Date: Mon, 4 Oct 2004 15:09:56 -0700 From: john heasley To: Randy Bush Cc: rancid users Subject: Re: freebsd port install location Message-ID: <20041004220956.GM25472@shrubbery.net> References: <16736.58226.550063.613649@ran.psg.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16736.58226.550063.613649@ran.psg.com> 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 Sun, Oct 03, 2004 at 10:45:22PM -0700, Randy Bush: > i want the puppy all installed under /usr/home/rancid. > i can't get the port makefile to do this without hacking > it to remove all the /${PORTNAME}s and then hacking > /usr/local/etc/pkgtools.conf to make PREFIX=/usr/home/rancid. > > but, even if i do that, bin/rancid-run somehowdissapears the > etc/router.db file. > > clues? only that router.db does not belong in etc. router.db's should be in each of the "group"'s sub-dirs. eg: /usr/local/rancid/shrubbery/router.db From owner-rancid-discuss-outgoing@shrubbery.net Mon Oct 4 22:37: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 AC95211CE2D for ; Mon, 4 Oct 2004 22:37:13 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id EF9F211142; Mon, 4 Oct 2004 22:37:12 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id DF4DC11149; Mon, 4 Oct 2004 22:37:12 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from ran.psg.com (ip192.186.dsl-acs2.seawa0.iinet.com [209.20.186.192]) by guelah.shrubbery.net (Postfix) with ESMTP id 0BC9711142; Mon, 4 Oct 2004 22:37:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=ran.psg.com.psg.com) by ran.psg.com with esmtp (Exim 4.34 (FreeBSD)) id 1CEbSB-000IrC-7p; Mon, 04 Oct 2004 15:37:11 -0700 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16737.53398.736716.936949@ran.psg.com> Date: Mon, 4 Oct 2004 15:37:10 -0700 To: john heasley Cc: rancid users Subject: Re: freebsd port install location References: <16736.58226.550063.613649@ran.psg.com> <20041004220956.GM25472@shrubbery.net> Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk >> i want the puppy all installed under /usr/home/rancid. >> i can't get the port makefile to do this without hacking >> it to remove all the /${PORTNAME}s and then hacking >> /usr/local/etc/pkgtools.conf to make PREFIX=/usr/home/rancid. >> >> but, even if i do that, bin/rancid-run somehowdissapears the >> etc/router.db file. > only that router.db does not belong in etc. router.db's should be in > each of the "group"'s sub-dirs. eg: /usr/local/rancid/shrubbery/router.db i gave up and let the port install where it wanted to install. i then put var in /usr/home/rancid and everything works fine. randy From owner-rancid-discuss-outgoing@shrubbery.net Tue Oct 5 00:20:14 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id E041811CE2D for ; Tue, 5 Oct 2004 00:20:13 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 4C69D11146; Tue, 5 Oct 2004 00:20:13 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 43DC31114D; Tue, 5 Oct 2004 00:20:13 +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 AC1CB11149; Tue, 5 Oct 2004 00:20:12 +0000 (UTC) Date: Mon, 4 Oct 2004 17:20:12 -0700 From: john heasley To: darren kruse Cc: "Christopher E. Brown" , "Coupe, Mark (ITD)" , rancid-discuss@shrubbery.net Subject: Re: CatOS Problem Message-ID: <20041005002012.GS25472@shrubbery.net> References: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> <415C4E6D.1050901@acsalaska.net> <415CBE2E.80508@adam.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <415CBE2E.80508@adam.com.au> 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 Could you all please try this version of clogin.in? ftp://ftp.shrubbery.net/pub/rancid/clogin.in I believe Christopher (in a private email) hit on the bug that is triggering at least some of these issues. It was fixed, but we've have not been able release a 2.3.2. Fri, Oct 01, 2004 at 11:47:18AM +0930, darren kruse: > I tried your suggestion re autoenable ... > > ferret# less .cloginrc > add autoenable c55k-2 0 > add password c55k-1 userpass enablepass > add password c55k-2 userpass enablepass > add password c55k-3 userpass enablepass > > But, it's still doing the same thing , since the upgrade to 2.3.1 > it works for the first cat (c55k-1) , then chokes on the second and third. > > Trying to get all of the configs. > write(spawn_id=3): I/O error > while executing > "send "exit\r"" > invoked from within > "expect -nobrace -re {^[^ > ^M *]*c55k2> \(enable\)} { > etc.. as previously advised.. > > darren > > > Christopher E. Brown wrote: > > > > >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 > > > > > > > > > -- > 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 owner-rancid-discuss-outgoing@shrubbery.net Tue Oct 5 00:52:28 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 0CC8611CE2D for ; Tue, 5 Oct 2004 00:52:27 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 4E13C11149; Tue, 5 Oct 2004 00:52:27 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 4343211154; Tue, 5 Oct 2004 00:52:27 +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 17E3A11149; Tue, 5 Oct 2004 00:52:26 +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 44CAC1DEEE; Tue, 5 Oct 2004 10:22:25 +0930 (CST) Message-ID: <4161F048.8050302@adam.com.au> Date: Tue, 05 Oct 2004 10:22:24 +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: john heasley Cc: "Christopher E. Brown" , "Coupe, Mark (ITD)" , rancid-discuss@shrubbery.net Subject: Re: CatOS Problem References: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> <415C4E6D.1050901@acsalaska.net> <415CBE2E.80508@adam.com.au> <20041005002012.GS25472@shrubbery.net> In-Reply-To: <20041005002012.GS25472@shrubbery.net> Content-Type: multipart/alternative; boundary="------------050209000304040308060009" Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk This is a multi-part message in MIME format. --------------050209000304040308060009 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit John thanks !! - works for me ... %less coreswitches.20041005.101429 starting: Tue Oct 5 10:14:29 CST 2004 Trying to get all of the configs. All routers sucessfully completed. cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs Checking in configs/c55k-2; /usr/local/rancid/var/CVS/coreswitches/configs/c55k-2,v <-- c55k-2 new revision: 1.13; previous revision: 1.12 done Checking in configs/c55k-3; /usr/local/rancid/var/CVS/coreswitches/configs/c55k-3,v <-- c55k-3 new revision: 1.27; previous revision: 1.26 done ending: Tue Oct 5 10:15:17 CST 2004 I had been running clogin v.177, I'm now running.. %less /usr/local/libexec/rancid/clogin ## $Id: clogin.in,v 1.79 2004/05/27 21:57:52 heas cheers, darren. john heasley wrote: >Could you all please try this version of clogin.in? > ftp://ftp.shrubbery.net/pub/rancid/clogin.in > >I believe Christopher (in a private email) hit on the bug that is triggering >at least some of these issues. It was fixed, but we've have not been able >release a 2.3.2. > >Fri, Oct 01, 2004 at 11:47:18AM +0930, darren kruse: > > >>I tried your suggestion re autoenable ... >> >>ferret# less .cloginrc >>add autoenable c55k-2 0 >>add password c55k-1 userpass enablepass >>add password c55k-2 userpass enablepass >>add password c55k-3 userpass enablepass >> >>But, it's still doing the same thing , since the upgrade to 2.3.1 >>it works for the first cat (c55k-1) , then chokes on the second and third. >> >>Trying to get all of the configs. >>write(spawn_id=3): I/O error >> while executing >>"send "exit\r"" >> invoked from within >>"expect -nobrace -re {^[^ >>^M *]*c55k2> \(enable\)} { >>etc.. as previously advised.. >> >>darren >> >> >>Christopher E. Brown wrote: >> >> >> >>>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 >>>> >>>> >>> >>> >>> >>-- >>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 --------------050209000304040308060009 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit John
thanks !! - works for me ...

%less coreswitches.20041005.101429
starting: Tue Oct 5 10:14:29 CST 2004
Trying to get all of the configs.
All routers sucessfully completed.
cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs
Checking in configs/c55k-2;
/usr/local/rancid/var/CVS/coreswitches/configs/c55k-2,v  <--  c55k-2
new revision: 1.13; previous revision: 1.12
done
Checking in configs/c55k-3;
/usr/local/rancid/var/CVS/coreswitches/configs/c55k-3,v  <--  c55k-3
new revision: 1.27; previous revision: 1.26
done
ending: Tue Oct 5 10:15:17 CST 2004

I had been running clogin v.177, I'm now running..

%less /usr/local/libexec/rancid/clogin
## $Id: clogin.in,v 1.79 2004/05/27 21:57:52 heas


cheers,
darren.


john heasley wrote:
Could you all please try this version of clogin.in?
	ftp://ftp.shrubbery.net/pub/rancid/clogin.in

I believe Christopher (in a private email) hit on the bug that is triggering
at least some of these issues.  It was fixed, but we've have not been able
release a 2.3.2.

Fri, Oct 01, 2004 at 11:47:18AM +0930, darren kruse:
  
I tried your suggestion re autoenable ...

ferret# less .cloginrc
add autoenable c55k-2 0
add password c55k-1  userpass enablepass
add password c55k-2  userpass enablepass
add password c55k-3 userpass enablepass

But, it's still doing the same thing , since the upgrade to 2.3.1
it works for the first cat (c55k-1) , then chokes on the second and third.

Trying to get all of the configs.
write(spawn_id=3): I/O error
   while executing
"send "exit\r""
   invoked from within
"expect -nobrace -re {^[^
^M *]*c55k2> \(enable\)} {
etc.. as previously advised..
                              
darren


Christopher E. Brown wrote:

    
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:


"<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
        

      
-- 
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


--------------050209000304040308060009-- From owner-rancid-discuss-outgoing@shrubbery.net Tue Oct 5 15:16: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 2A95F11CE2D for ; Tue, 5 Oct 2004 15:16:48 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 914831113C; Tue, 5 Oct 2004 15:16:47 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 8807911146; Tue, 5 Oct 2004 15:16: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 1618D11142; Tue, 5 Oct 2004 15:16:47 +0000 (UTC) Received: from mailhub3.state.ma.us (mailhub3.state.ma.us [146.243.12.157]) by guelah.shrubbery.net (Postfix) with ESMTP id 5AD1D1113C; Tue, 5 Oct 2004 15:15:05 +0000 (UTC) Received: from itd-wnts-f7.state.ma.us by mailhub3.state.ma.us with ESMTP; Tue, 5 Oct 2004 11:15:01 -0400 Received: from itd-smtp-gw7.state.ma.us (unverified) by itd-wnts-f7.state.ma.us (Content Technologies SMTPRS 4.3.14) with SMTP id ; Tue, 5 Oct 2004 11:14:57 -0400 Received: from es-ebh-002.es.govt.state.ma.us ([146.243.3.200]) by itd-smtp-gw7.state.ma.us (SAVSMTP 3.1.1.32) with SMTP id M2004100511145830565 ; Tue, 05 Oct 2004 11:14:58 -0400 Received: from es-msg-008.es.govt.state.ma.us ([146.243.20.152]) by es-ebh-002.es.govt.state.ma.us with Microsoft SMTPSVC(5.0.2195.6713); Tue, 5 Oct 2004 11:15:00 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4AAEE.14EA2BA5" Subject: RE: CatOS Problem Date: Tue, 5 Oct 2004 11:15:00 -0400 Message-Id: <4B8467A7C450874DBC71719AD1013D5902291B22@ES-MSG-008.es.govt.state.ma.us> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: CatOS Problem Thread-Index: AcSqdbYQp0ZdPZNpQ/+oyZmUqgFxigAeFbDA From: "Coupe, Mark (ITD)" To: , "john heasley" Cc: "Christopher E. Brown" , "Coupe, Mark (ITD)" , X-OriginalArrivalTime: 05 Oct 2004 15:15:00.0669 (UTC) FILETIME=[1521C6D0:01C4AAEE] Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk This is a multi-part message in MIME format. ------_=_NextPart_001_01C4AAEE.14EA2BA5 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Worked like a charm for me too. Thanks. _____ =20 From: darren kruse [mailto:darren@adam.com.au]=20 Sent: Monday, October 04, 2004 8:52 PM To: john heasley Cc: Christopher E. Brown; Coupe, Mark (ITD); rancid-discuss@shrubbery.net Subject: Re: CatOS Problem John thanks !! - works for me ...=20 %less coreswitches.20041005.101429 starting: Tue Oct 5 10:14:29 CST 2004 Trying to get all of the configs. All routers sucessfully completed. cvs diff: Diffing . cvs diff: Diffing configs cvs commit: Examining . cvs commit: Examining configs Checking in configs/c55k-2; /usr/local/rancid/var/CVS/coreswitches/configs/c55k-2,v <-- c55k-2 new revision: 1.13; previous revision: 1.12 done Checking in configs/c55k-3; /usr/local/rancid/var/CVS/coreswitches/configs/c55k-3,v <-- c55k-3 new revision: 1.27; previous revision: 1.26 done ending: Tue Oct 5 10:15:17 CST 2004 I had been running clogin v.177, I'm now running.. %less /usr/local/libexec/rancid/clogin ## $Id: clogin.in,v 1.79 2004/05/27 21:57:52 heas=20 cheers, darren. john heasley wrote:=20 Could you all please try this version of clogin.in? ftp://ftp.shrubbery.net/pub/rancid/clogin.in =09 I believe Christopher (in a private email) hit on the bug that is triggering at least some of these issues. It was fixed, but we've have not been able release a 2.3.2. =09 Fri, Oct 01, 2004 at 11:47:18AM +0930, darren kruse: =20 I tried your suggestion re autoenable ... =09 ferret# less .cloginrc add autoenable c55k-2 0 add password c55k-1 userpass enablepass add password c55k-2 userpass enablepass add password c55k-3 userpass enablepass =09 But, it's still doing the same thing , since the upgrade to 2.3.1 it works for the first cat (c55k-1) , then chokes on the second and third. =09 Trying to get all of the configs. write(spawn_id=3D3): I/O error while executing "send "exit\r"" invoked from within "expect -nobrace -re {^[^ ^M *]*c55k2> \(enable\)} { etc.. as previously advised.. =20 darren =09 =09 Christopher E. Brown wrote: =09 =20 I noticed that for whatever reason there is an issue with prompt=20 parsing on CatOS devices. =09 I had to set login/enable passwords and autoenable =3D 0 in cloginrc for=20 my Cat)S devices. =09 Coupe, Mark (ITD) wrote: =09 =20 Hi, =09 I've got a Cisco network of 1900s (haven't dealt with yet), IOS and=20 CatOS. I've got all the IOS and CatOS devices in a single router.db=20 file. The manufacturer entry is set for each to either 'cisco' or=20 'cat5' as appropriate. The problem that I'm having is that while all=20 of the IOS devices have their config pulled without issue, none of=20 the CatOS devices do. =09 I have successfully logged into and run commands on the CatOS devices=20 by using 'clogin' and specifying the hostname and commands. When I=20 use 'rancid-run' I get the following error message (or similar) in=20 the logs for each of the devices: =09 =09 " clogin error: Error: TIMEOUT reached : missed cmd(s): write term all,show port ifindex,show=20 module,dir sup-microcode:,dir sup-bootflash:,dir bootflash:,dir=20 slot0:,showversion,show flash,write term,show boot,dir slot1: : End of run not found" =09 Can anyone point me in the right direction at least because while I=20 realize that the "End of run not found" is the bigger issue than the=20 "missed cmd(s)" (according to stuff I've read in the archives) I'm=20 not really sure where I should be looking. =09 =09 Thanks, =09 Mark =20 =09 =20 --=20 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 =09 =09 =09 =20 --=20 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 ------_=_NextPart_001_01C4AAEE.14EA2BA5 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Worked like a charm for me too. =20 Thanks.


From: darren kruse = [mailto:darren@adam.com.au]=20
Sent: Monday, October 04, 2004 8:52 PM
To: john=20 heasley
Cc: Christopher E. Brown; Coupe, Mark (ITD);=20 rancid-discuss@shrubbery.net
Subject: Re: CatOS=20 Problem

John
thanks !! - works for me ...

%less=20 coreswitches.20041005.101429
starting: Tue Oct 5 10:14:29 CST = 2004
Trying=20 to get all of the configs.
All routers sucessfully completed.
cvs = diff:=20 Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs = commit:=20 Examining configs
Checking in=20 configs/c55k-2;
/usr/local/rancid/var/CVS/coreswitches/configs/c55k-2,= v =20 <--  c55k-2
new revision: 1.13; previous revision:=20 1.12
done
Checking in=20 configs/c55k-3;
/usr/local/rancid/var/CVS/coreswitches/configs/c55k-3,= v =20 <--  c55k-3
new revision: 1.27; previous revision:=20 1.26
done
ending: Tue Oct 5 10:15:17 CST 2004

I had = been=20 running clogin v.177, I'm now running..

%less=20 /usr/local/libexec/rancid/clogin
## $Id: clogin.in,v 1.79 2004/05/27 = 21:57:52=20 heas


cheers,
darren.


john heasley wrote:=20
Could you all please try this version of =
clogin.in?
	ftp://ftp.shrubbery.net/pub/rancid/clogin.in

I believe Christopher (in a private email) hit on the bug that is =
triggering
at least some of these issues.  It was fixed, but we've have not been =
able
release a 2.3.2.

Fri, Oct 01, 2004 at 11:47:18AM +0930, darren kruse:
  
I tried your suggestion re =
autoenable ...

ferret# less .cloginrc
add autoenable c55k-2 0
add password c55k-1  userpass enablepass
add password c55k-2  userpass enablepass
add password c55k-3 userpass enablepass

But, it's still doing the same thing , since the upgrade to 2.3.1
it works for the first cat (c55k-1) , then chokes on the second and =
third.

Trying to get all of the configs.
write(spawn_id=3D3): I/O error
   while executing
"send "exit\r""
   invoked from within
"expect -nobrace -re {^[^
^M *]*c55k2> \(enable\)} {
etc.. as previously advised..
                             =20
darren


Christopher E. Brown wrote:

    
I noticed that for whatever =
reason there is an issue with prompt=20
parsing on CatOS devices.

I had to set login/enable passwords and autoenable =3D 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=20
CatOS.  I've got all the IOS and CatOS devices in a single router.db=20
file.  The manufacturer entry is set for each to either 'cisco' or=20
'cat5' as appropriate.  The problem that I'm having is that while all=20
of the IOS devices have their config pulled without issue, none of=20
the CatOS devices do.

I have successfully logged into and run commands on the CatOS devices=20
by using 'clogin' and specifying the hostname and commands.  When I=20
use 'rancid-run' I get the following error message (or similar) in=20
the logs for each of the devices:


"<hostname> clogin error: Error: TIMEOUT reached
<hostname>: missed cmd(s): write term all,show port ifindex,show=20
module,dir sup-microcode:,dir sup-bootflash:,dir bootflash:,dir=20
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=20
realize that the "End of run not found" is the bigger issue than the=20
"missed cmd(s)" (according to stuff I've read in the archives) I'm=20
not really sure where I should be looking.


Thanks,

Mark
        
      
--=20
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



    


--=20
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


------_=_NextPart_001_01C4AAEE.14EA2BA5-- From owner-rancid-discuss-outgoing@shrubbery.net Tue Oct 5 21:38:41 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id EE7E411CE2D for ; Tue, 5 Oct 2004 21:38:40 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 4E1551113C; Tue, 5 Oct 2004 21:38:40 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 4578A11146; Tue, 5 Oct 2004 21:38:40 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from pfepa.post.tele.dk (pfepa.post.tele.dk [195.41.46.235]) by guelah.shrubbery.net (Postfix) with ESMTP id 370831113C; Tue, 5 Oct 2004 21:38:36 +0000 (UTC) Received: from snehvide.intra.kalesh.dk (0x503e293b.virnxx8.adsl-dhcp.tele.dk [80.62.41.59]) by pfepa.post.tele.dk (Postfix) with ESMTP id A86FF47FEB5; Tue, 5 Oct 2004 23:38:27 +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 i95LcRWS007795; Tue, 5 Oct 2004 23:38:27 +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 i95LcQvG007794; Tue, 5 Oct 2004 23:38:26 +0200 (CEST) (envelope-from admin) Date: Tue, 5 Oct 2004 23:38:26 +0200 From: Soren Hansen To: john heasley Cc: "Christopher E. Brown" , rancid-discuss@shrubbery.net Subject: Re: CatOS Problem Message-ID: <20041005213826.GA7617@snehvide.intra.kalesh.dk> References: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> <415C4E6D.1050901@acsalaska.net> <415CBE2E.80508@adam.com.au> <20041005002012.GS25472@shrubbery.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041005002012.GS25472@shrubbery.net> User-Agent: Mutt/1.4.2.1i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hi John, Works for me as well. As far as I can tell, all devices were updated as a consequence of basing the saved configuration on "write term all" instead of "write term". This is fine by me. Thank you both for your effort. /Soren On Mon, Oct 04, 2004 at 05:20:12PM -0700, john heasley wrote: > Could you all please try this version of clogin.in? > ftp://ftp.shrubbery.net/pub/rancid/clogin.in > > I believe Christopher (in a private email) hit on the bug that is triggering > at least some of these issues. It was fixed, but we've have not been able > release a 2.3.2. > From owner-rancid-discuss-outgoing@shrubbery.net Tue Oct 5 22:25:59 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 3E94411CE2D for ; Tue, 5 Oct 2004 22:25:59 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 2B94811142; Tue, 5 Oct 2004 22:25:58 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 2072411149; Tue, 5 Oct 2004 22:25:58 +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 8885D11146; Tue, 5 Oct 2004 22:25:57 +0000 (UTC) Date: Tue, 5 Oct 2004 15:25:57 -0700 From: john heasley To: Soren Hansen Cc: "Christopher E. Brown" , rancid-discuss@shrubbery.net Subject: Re: CatOS Problem Message-ID: <20041005222557.GK7143@shrubbery.net> References: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> <415C4E6D.1050901@acsalaska.net> <415CBE2E.80508@adam.com.au> <20041005002012.GS25472@shrubbery.net> <20041005213826.GA7617@snehvide.intra.kalesh.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041005213826.GA7617@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, Oct 05, 2004 at 11:38:26PM +0200, Soren Hansen: > Hi John, > Works for me as well. > As far as I can tell, all devices were updated as a consequence of basing the saved configuration on "write term all" instead of "write term". This is fine by me. rancid should only use the 'write term' output if 'write term all' fails. not all CatOS versions support 'all', esp. the older models. > Thank you both for your effort. > > /Soren > > On Mon, Oct 04, 2004 at 05:20:12PM -0700, john heasley wrote: > > Could you all please try this version of clogin.in? > > ftp://ftp.shrubbery.net/pub/rancid/clogin.in > > > > I believe Christopher (in a private email) hit on the bug that is triggering > > at least some of these issues. It was fixed, but we've have not been able > > release a 2.3.2. > > From owner-rancid-discuss-outgoing@shrubbery.net Tue Oct 5 22:32:22 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 A714B11CE2D for ; Tue, 5 Oct 2004 22:32:21 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id E3CDB11146; Tue, 5 Oct 2004 22:32:20 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id D923C1114D; Tue, 5 Oct 2004 22:32:20 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from iris.acsalaska.net (iris.acsalaska.net [209.112.155.43]) by guelah.shrubbery.net (Postfix) with ESMTP id CF47611146; Tue, 5 Oct 2004 22:32:19 +0000 (UTC) Received: from [10.0.102.15] (209-112-156-47-adslb0fh.acsalaska.net [209.112.156.47]) by iris.acsalaska.net (8.13.1/8.13.1) with ESMTP id i95MVwp5053134; Tue, 5 Oct 2004 14:31:59 -0800 (AKDT) (envelope-from chris.brown@acsalaska.net) Message-ID: <416320C3.4090107@acsalaska.net> Date: Tue, 05 Oct 2004 14:31:31 -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: darren kruse , "Coupe, Mark (ITD)" , rancid-discuss@shrubbery.net Subject: Re: CatOS Problem References: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> <415C4E6D.1050901@acsalaska.net> <415CBE2E.80508@adam.com.au> <20041005002012.GS25472@shrubbery.net> In-Reply-To: <20041005002012.GS25472@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: > Could you all please try this version of clogin.in? > ftp://ftp.shrubbery.net/pub/rancid/clogin.in > > I believe Christopher (in a private email) hit on the bug that is triggering > at least some of these issues. It was fixed, but we've have not been able > release a 2.3.2. Looks like it is working for me as well. (That is, testing seemed fine, I will *know* in about 30min when the next run tries to read 40something CatOS devices.) -- ------------------------------------------------------------------------ Christopher E. Brown desk (907) 273-6893 cell (907) 632-8492 IP Engineer III - ACS ------------------------------------------------------------------------ From owner-rancid-discuss-outgoing@shrubbery.net Wed Oct 6 15:12:42 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 1069011CE2D for ; Wed, 6 Oct 2004 15:12:41 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 7BC341113C; Wed, 6 Oct 2004 15:12:41 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 7124611146; Wed, 6 Oct 2004 15:12:41 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from pfepa.post.tele.dk (pfepa.post.tele.dk [195.41.46.235]) by guelah.shrubbery.net (Postfix) with ESMTP id 49BFA1113C; Wed, 6 Oct 2004 15:12:37 +0000 (UTC) Received: from snehvide.intra.kalesh.dk (0x503e293b.virnxx8.adsl-dhcp.tele.dk [80.62.41.59]) by pfepa.post.tele.dk (Postfix) with ESMTP id 383CD47FED4; Wed, 6 Oct 2004 17:12:26 +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 i96FCLUi000976; Wed, 6 Oct 2004 17:12:21 +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 i96FCKDT000975; Wed, 6 Oct 2004 17:12:20 +0200 (CEST) (envelope-from admin) Date: Wed, 6 Oct 2004 17:12:20 +0200 From: Soren Hansen To: john heasley Cc: rancid-discuss@shrubbery.net Subject: Re: CatOS Problem Message-ID: <20041006151220.GA912@snehvide.intra.kalesh.dk> References: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> <415C4E6D.1050901@acsalaska.net> <415CBE2E.80508@adam.com.au> <20041005002012.GS25472@shrubbery.net> <20041005213826.GA7617@snehvide.intra.kalesh.dk> <20041005222557.GK7143@shrubbery.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041005222557.GK7143@shrubbery.net> User-Agent: Mutt/1.4.2.1i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Well, on all my CatOS boxes I only had the output from "write term" in CVS. With the update, I now have the output from "write term all". No changes in CatOS recently. I'll probably change the intervals for retrieving end user access switch configurations now, as I keep getting mails when users come and go, because of the spanning tree port cost changes. /Soren On Tue, Oct 05, 2004 at 03:25:57PM -0700, john heasley wrote: > Tue, Oct 05, 2004 at 11:38:26PM +0200, Soren Hansen: > > Hi John, > > Works for me as well. > > As far as I can tell, all devices were updated as a consequence of basing the saved configuration on "write term all" instead of "write term". This is fine by me. > > rancid should only use the 'write term' output if 'write term all' fails. > not all CatOS versions support 'all', esp. the older models. > > > Thank you both for your effort. > > > > /Soren > > > > On Mon, Oct 04, 2004 at 05:20:12PM -0700, john heasley wrote: > > > Could you all please try this version of clogin.in? > > > ftp://ftp.shrubbery.net/pub/rancid/clogin.in > > > > > > I believe Christopher (in a private email) hit on the bug that is triggering > > > at least some of these issues. It was fixed, but we've have not been able > > > release a 2.3.2. > > > From owner-rancid-discuss-outgoing@shrubbery.net Thu Oct 7 19:30:12 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 5379911CE30 for ; Thu, 7 Oct 2004 19:30:12 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 7EB281113C; Thu, 7 Oct 2004 19:30:12 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 7567E11146; Thu, 7 Oct 2004 19:30:12 +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 D4C671113C for ; Thu, 7 Oct 2004 19:30:09 +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 i97JU6cF088801 for ; Thu, 7 Oct 2004 11:30:06 -0800 (AKDT) (envelope-from chris.brown@acsalaska.net) Message-ID: <4165991D.1000908@acsalaska.net> Date: Thu, 07 Oct 2004 11:29:33 -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: CatOS question 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 What is the reason for capturing the 'write term all' output instead of just write term? Is there some reason for wanting *ALL* settings instead of all non-default settings? -- ------------------------------------------------------------------------ Christopher E. Brown desk (907) 273-6893 cell (907) 632-8492 IP Engineer III - ACS ------------------------------------------------------------------------ From owner-rancid-discuss-outgoing@shrubbery.net Thu Oct 7 20:31: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 771BA11CE30 for ; Thu, 7 Oct 2004 20:31:43 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id C09BE1113C; Thu, 7 Oct 2004 20:31:42 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id A77D711146; Thu, 7 Oct 2004 20:31: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 1554811142; Thu, 7 Oct 2004 20:31:42 +0000 (UTC) Date: Thu, 7 Oct 2004 13:31:42 -0700 From: john heasley To: "Christopher E. Brown" Cc: rancid-discuss@shrubbery.net Subject: Re: CatOS question Message-ID: <20041007203141.GU25783@shrubbery.net> References: <4165991D.1000908@acsalaska.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4165991D.1000908@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 Thu, Oct 07, 2004 at 11:29:33AM -0800, Christopher E. Brown: > > What is the reason for capturing the > 'write term all' output instead of just write term? > > > Is there some reason for wanting *ALL* settings instead of all > non-default settings? defaults change and new things appear as defaults on occasion. in fact, two different IOS code trains might have different defaults. rule of least surprise. From owner-rancid-discuss-outgoing@shrubbery.net Thu Oct 7 21: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 48B4311CE30 for ; Thu, 7 Oct 2004 21:12:04 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id A38AB11142; Thu, 7 Oct 2004 21:12:03 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 97A3611149; Thu, 7 Oct 2004 21:12: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 6434011146; Thu, 7 Oct 2004 21:12:02 +0000 (UTC) Date: Thu, 7 Oct 2004 14:12:02 -0700 From: john heasley To: Soren Hansen Cc: john heasley , rancid-discuss@shrubbery.net Subject: Re: CatOS Problem Message-ID: <20041007211202.GB25783@shrubbery.net> References: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> <415C4E6D.1050901@acsalaska.net> <415CBE2E.80508@adam.com.au> <20041005002012.GS25472@shrubbery.net> <20041005213826.GA7617@snehvide.intra.kalesh.dk> <20041005222557.GK7143@shrubbery.net> <20041006151220.GA912@snehvide.intra.kalesh.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041006151220.GA912@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 Wed, Oct 06, 2004 at 05:12:20PM +0200, Soren Hansen: > Well, on all my CatOS boxes I only had the output from "write term" in CVS. With the update, I now have the output from "write term all". No changes in CatOS recently. > I'll probably change the intervals for retrieving end user access switch configurations now, as I keep getting mails when users come and go, because of the spanning tree port cost changes. In theory, you should not run spanning tree on access ports, only trunk ports; ie: should which connect to another switch. And, if there are no forwarding loops in your switch topology, dont run it at all. > /Soren > > On Tue, Oct 05, 2004 at 03:25:57PM -0700, john heasley wrote: > > Tue, Oct 05, 2004 at 11:38:26PM +0200, Soren Hansen: > > > Hi John, > > > Works for me as well. > > > As far as I can tell, all devices were updated as a consequence of basing the saved configuration on "write term all" instead of "write term". This is fine by me. > > > > rancid should only use the 'write term' output if 'write term all' fails. > > not all CatOS versions support 'all', esp. the older models. > > > > > Thank you both for your effort. > > > > > > /Soren > > > > > > On Mon, Oct 04, 2004 at 05:20:12PM -0700, john heasley wrote: > > > > Could you all please try this version of clogin.in? > > > > ftp://ftp.shrubbery.net/pub/rancid/clogin.in > > > > > > > > I believe Christopher (in a private email) hit on the bug that is triggering > > > > at least some of these issues. It was fixed, but we've have not been able > > > > release a 2.3.2. > > > > From owner-rancid-discuss-outgoing@shrubbery.net Thu Oct 7 21:29:59 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 8AC9C11CE30 for ; Thu, 7 Oct 2004 21:29:59 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id D5B5B11146; Thu, 7 Oct 2004 21:29:58 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id C49041114D; Thu, 7 Oct 2004 21:29:58 +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 B5DA211146; Thu, 7 Oct 2004 21:29:57 +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 i97LTjFW050158; Thu, 7 Oct 2004 13:29:46 -0800 (AKDT) (envelope-from chris.brown@acsalaska.net) Message-ID: <4165B529.9030100@acsalaska.net> Date: Thu, 07 Oct 2004 13:29:13 -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: Soren Hansen , rancid-discuss@shrubbery.net Subject: Re: CatOS Problem References: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> <415C4E6D.1050901@acsalaska.net> <415CBE2E.80508@adam.com.au> <20041005002012.GS25472@shrubbery.net> <20041005213826.GA7617@snehvide.intra.kalesh.dk> <20041005222557.GK7143@shrubbery.net> <20041006151220.GA912@snehvide.intra.kalesh.dk> <20041007211202.GB25783@shrubbery.net> In-Reply-To: <20041007211202.GB25783@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: > Wed, Oct 06, 2004 at 05:12:20PM +0200, Soren Hansen: > >> Well, on all my CatOS boxes I only had the output from "write term" >> in CVS. With the update, I now have the output from "write term >> all". No changes in CatOS recently. I'll probably change the >> intervals for retrieving end user access switch configurations now, >> as I keep getting mails when users come and go, because of the >> spanning tree port cost changes. > > > In theory, you should not run spanning tree on access ports, only > trunk ports; ie: should which connect to another switch. And, if > there are no forwarding loops in your switch topology, dont run it at > all. Even if spanning tree is shut down things like port costs are still tracked by CatOS. And they change on up/down or rate change. An example of something we see many times daily (and YES, spanning tree is shutdown on this switch. Index: configs/xxxxxx =================================================================== retrieving revision 1.842 diff -u -4 -r1.13 xxxxxxxx @@ -1419,10 +1419,10 @@ set spantree portinstancepri 8/45 0 mst set spantree portinstancepri 8/46 0 mst set spantree portinstancepri 8/47 0 mst set spantree portinstancepri 8/48 0 mst - set spantree portcost 8/1,8/3-4,8/10,8/31-48 200000 mst - set spantree portcost 8/2,8/5-9,8/11-30 2000000 mst + set spantree portcost 8/1,8/3-4,8/31-48 200000 mst + set spantree portcost 8/2,8/5-30 2000000 mst set spantree portinstancecost 8/1 cost 199999 mst set spantree portinstancecost 8/2 cost 1999999 mst set spantree portinstancecost 8/3 cost 199999 mst set spantree portinstancecost 8/4 cost 199999 mst @@ -1430,9 +1430,9 @@ set spantree portinstancecost 8/6 cost 1999999 mst set spantree portinstancecost 8/7 cost 1999999 mst set spantree portinstancecost 8/8 cost 1999999 mst set spantree portinstancecost 8/9 cost 1999999 mst - set spantree portinstancecost 8/10 cost 199999 mst + set spantree portinstancecost 8/10 cost 1999999 mst set spantree portinstancecost 8/11 cost 1999999 mst set spantree portinstancecost 8/12 cost 1999999 mst set spantree portinstancecost 8/13 cost 1999999 mst set spantree portinstancecost 8/14 cost 1999999 mst @@ -1469,10 +1469,10 @@ set spantree portinstancecost 8/45 cost 199999 mst set spantree portinstancecost 8/46 cost 199999 mst set spantree portinstancecost 8/47 cost 199999 mst set spantree portinstancecost 8/48 cost 199999 mst - set spantree portcost 8/1,8/3-4,8/10,8/31-48 19 - set spantree portcost 8/2,8/5-9,8/11-30 100 + set spantree portcost 8/1,8/3-4,8/31-48 19 + set spantree portcost 8/2,8/5-30 100 set spantree portpri 8/1-48 32 set spantree portvlanpri 8/1 0 set spantree portvlanpri 8/2 0 set spantree portvlanpri 8/3 0 @@ -1529,9 +1529,9 @@ set spantree portvlancost 8/6 cost 99 set spantree portvlancost 8/7 cost 99 set spantree portvlancost 8/8 cost 99 set spantree portvlancost 8/9 cost 99 - set spantree portvlancost 8/10 cost 18 + set spantree portvlancost 8/10 cost 99 set spantree portvlancost 8/11 cost 99 set spantree portvlancost 8/12 cost 99 set spantree portvlancost 8/13 cost 99 set spantree portvlancost 8/14 cost 99 -- ------------------------------------------------------------------------ Christopher E. Brown desk (907) 273-6893 cell (907) 632-8492 IP Engineer III - ACS ------------------------------------------------------------------------ From owner-rancid-discuss-outgoing@shrubbery.net Thu Oct 7 21:37:45 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 0E95211CE30 for ; Thu, 7 Oct 2004 21:37:44 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 4142E11149; Thu, 7 Oct 2004 21:37:44 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 39A0211158; Thu, 7 Oct 2004 21:37:44 +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 AFAF711155; Thu, 7 Oct 2004 21:37:43 +0000 (UTC) Date: Thu, 7 Oct 2004 14:37:43 -0700 From: john heasley To: Mark Loveley Cc: rancid-discuss@shrubbery.net Subject: Re: Problems with the rancid ERX module jerancid Message-ID: <20041007213743.GH25783@shrubbery.net> References: <1095859557.4290.43.camel@markloveley> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1095859557.4290.43.camel@markloveley> 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 Got it. Thanks. Wed, Sep 22, 2004 at 02:25:57PM +0100, Mark Loveley: > 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 Sat Oct 9 23:49:33 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 96C1F11CE3A for ; Sat, 9 Oct 2004 23:49:33 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id DB8F31113C; Sat, 9 Oct 2004 23:49:32 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id D52DD11146; Sat, 9 Oct 2004 23:49:32 +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 007B611142; Sat, 9 Oct 2004 23:49:31 +0000 (UTC) Date: Sat, 9 Oct 2004 16:49:31 -0700 From: john heasley To: "Christopher E. Brown" Cc: john heasley , Soren Hansen , rancid-discuss@shrubbery.net Subject: Re: CatOS Problem Message-ID: <20041009234931.GO26966@shrubbery.net> References: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> <415C4E6D.1050901@acsalaska.net> <415CBE2E.80508@adam.com.au> <20041005002012.GS25472@shrubbery.net> <20041005213826.GA7617@snehvide.intra.kalesh.dk> <20041005222557.GK7143@shrubbery.net> <20041006151220.GA912@snehvide.intra.kalesh.dk> <20041007211202.GB25783@shrubbery.net> <4165B529.9030100@acsalaska.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4165B529.9030100@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 Thu, Oct 07, 2004 at 01:29:13PM -0800, Christopher E. Brown: > john heasley wrote: > >Wed, Oct 06, 2004 at 05:12:20PM +0200, Soren Hansen: > > > >>Well, on all my CatOS boxes I only had the output from "write term" > >>in CVS. With the update, I now have the output from "write term > >>all". No changes in CatOS recently. I'll probably change the > >>intervals for retrieving end user access switch configurations now, > >>as I keep getting mails when users come and go, because of the > >>spanning tree port cost changes. > > > > > >In theory, you should not run spanning tree on access ports, only > >trunk ports; ie: should which connect to another switch. And, if > >there are no forwarding loops in your switch topology, dont run it at > >all. > > > Even if spanning tree is shut down things like port costs are still > tracked by CatOS. And they change on up/down or rate change. > > An example of something we see many times daily (and YES, spanning tree > is shutdown on this switch. > > > Index: configs/xxxxxx > =================================================================== > retrieving revision 1.842 > diff -u -4 -r1.13 xxxxxxxx > @@ -1419,10 +1419,10 @@ > set spantree portinstancepri 8/45 0 mst > set spantree portinstancepri 8/46 0 mst > set spantree portinstancepri 8/47 0 mst > set spantree portinstancepri 8/48 0 mst > - set spantree portcost 8/1,8/3-4,8/10,8/31-48 200000 mst > - set spantree portcost 8/2,8/5-9,8/11-30 2000000 mst > + set spantree portcost 8/1,8/3-4,8/31-48 200000 mst > + set spantree portcost 8/2,8/5-30 2000000 mst > set spantree portinstancecost 8/1 cost 199999 mst > set spantree portinstancecost 8/2 cost 1999999 mst > set spantree portinstancecost 8/3 cost 199999 mst > set spantree portinstancecost 8/4 cost 199999 mst > @@ -1430,9 +1430,9 @@ bizarre. whats the point? is there some other process that makes use of these values? makes you wish juniper made switches. From owner-rancid-discuss-outgoing@shrubbery.net Tue Oct 12 20:59: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 B7F8D11CE2D for ; Tue, 12 Oct 2004 20:59:54 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 159611113C; Tue, 12 Oct 2004 20:59:54 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 0AB3911146; Tue, 12 Oct 2004 20:59:54 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from vigilante.reflected.net (vigilante.reflected.net [69.9.168.42]) by guelah.shrubbery.net (Postfix) with ESMTP id 653461113C for ; Tue, 12 Oct 2004 20:59:53 +0000 (UTC) Received: from diamondbacks.reflected.net ([69.9.168.55]) by vigilante.reflected.net (8.12.11/8.12.11/Debian-5) with SMTP id i9CKxpuE015303 for ; Tue, 12 Oct 2004 16:59:51 -0400 Subject: hlogin / hpuifilter ssh woes From: Jeff S Wheeler To: rancid-discuss@shrubbery.net Content-Type: text/plain Message-Id: <1097614790.16306.146.camel@repulse.jsw.louisville.ky.us> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Tue, 12 Oct 2004 16:59:50 -0400 Content-Transfer-Encoding: 7bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Dear list, It seems that the hpuifilter program called by hlogin is not able to supply ssh clients with a login password. Clearly the hlogin script does not work without hpuifilter, though I am uncertain why it is needed. Is its use simply to suppress command echo output when paging through configuration, etc.; or is something more complex going on? I'd sure like to track changes on some HP switches that I've recently been made responsible for; but enabling the telnet service is not a very good option. Suggestions? :-) -- Jeff S Wheeler From owner-rancid-discuss-outgoing@shrubbery.net Wed Oct 13 04:02:31 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 89B0311CE30 for ; Wed, 13 Oct 2004 04:02:31 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id DC0111113C; Wed, 13 Oct 2004 04:02:30 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id CFA2611146; Wed, 13 Oct 2004 04:02:30 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from white.netsurf.net (White.NetSurf.Net [206.186.135.4]) by guelah.shrubbery.net (Postfix) with ESMTP id 079221113C for ; Wed, 13 Oct 2004 04:02:29 +0000 (UTC) Received: from White.NetSurf.Net (kadamski@White.NetSurf.Net [206.186.135.4]) by white.netsurf.net (8.12.3/8.12.3/Debian-7.1) with ESMTP id i9D42TN0028361 for ; Wed, 13 Oct 2004 00:02:29 -0400 Date: Wed, 13 Oct 2004 00:02:28 -0400 (EDT) From: Krzysztof Adamski To: rancid-discuss@shrubbery.net Subject: Using rancid to hop from router to router Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk I need to collect the config from routers that are not directly reachable by the host that rancid runs on. I can ssh to the first router, then telnet to the ones that I need the config from. Since my knowledge of expect and TCL is nonexistent and before I try to reinvent the wheel I was wondering if anybody has modified the clogin script to to this extra hop? K From owner-rancid-discuss-outgoing@shrubbery.net Wed Oct 13 05:38: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 1603D11CE30 for ; Wed, 13 Oct 2004 05:38:13 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 7C74411142; Wed, 13 Oct 2004 05:38:12 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 6E14411149; Wed, 13 Oct 2004 05:38:12 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from ran.psg.com (ip192.186.dsl-acs2.seawa0.iinet.com [209.20.186.192]) by guelah.shrubbery.net (Postfix) with ESMTP id DBE6D11142 for ; Wed, 13 Oct 2004 05:38:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=ran.psg.com.psg.com) by ran.psg.com with esmtp (Exim 4.34 (FreeBSD)) id 1CHbpw-0000Hj-Qp for rancid-discuss@shrubbery.net; Tue, 12 Oct 2004 22:38:08 -0700 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16748.48960.371225.91827@ran.psg.com> Date: Tue, 12 Oct 2004 22:38:08 -0700 To: rancid users Subject: smc switch Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk is there a rancid fetcher for Vty-0#show system System description: SMC TigerSwitch 10/100/1000 - SMC8612T System OID string: 1.3.6.1.4.1.202.20.30 i think it is also packaged as dell's and others' switch randy From owner-rancid-discuss-outgoing@shrubbery.net Wed Oct 13 07:08:53 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 C74FD11CE30 for ; Wed, 13 Oct 2004 07:08:53 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 2F26E11146; Wed, 13 Oct 2004 07:08:53 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 2504C1114D; Wed, 13 Oct 2004 07:08:53 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 7F7E411149; Wed, 13 Oct 2004 07:08:52 +0000 (UTC) Date: Wed, 13 Oct 2004 00:08:52 -0700 From: john heasley To: Randy Bush Cc: rancid users Subject: Re: smc switch Message-ID: <20041013070852.GA20970@shrubbery.net> References: <16748.48960.371225.91827@ran.psg.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16748.48960.371225.91827@ran.psg.com> 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, Oct 12, 2004 at 10:38:08PM -0700, Randy Bush: > is there a rancid fetcher for > Vty-0#show system > System description: SMC TigerSwitch 10/100/1000 - SMC8612T > System OID string: 1.3.6.1.4.1.202.20.30 > > i think it is also packaged as dell's and others' switch no. joe rizzo offered some patches for the dell powerswitches, i havent had time to look at them (sorry joe). From owner-rancid-discuss-outgoing@shrubbery.net Wed Oct 13 07:17: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 7FF3211CE30 for ; Wed, 13 Oct 2004 07:17:44 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id CA74911149; Wed, 13 Oct 2004 07:17:43 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id C01E311154; Wed, 13 Oct 2004 07:17:43 +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 4BD071114D; Wed, 13 Oct 2004 07:17:43 +0000 (UTC) Date: Wed, 13 Oct 2004 00:17:43 -0700 From: john heasley To: Jeff S Wheeler Cc: rancid-discuss@shrubbery.net Subject: Re: hlogin / hpuifilter ssh woes Message-ID: <20041013071743.GB20970@shrubbery.net> References: <1097614790.16306.146.camel@repulse.jsw.louisville.ky.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1097614790.16306.146.camel@repulse.jsw.louisville.ky.us> 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, Oct 12, 2004 at 04:59:50PM -0400, Jeff S Wheeler: > Dear list, > > It seems that the hpuifilter program called by hlogin is not able to > supply ssh clients with a login password. Clearly the hlogin script > does not work without hpuifilter, though I am uncertain why it is > needed. Is its use simply to suppress command echo output when paging > through configuration, etc.; or is something more complex going on? see the description at the tail of clogin(1). > I'd sure like to track changes on some HP switches that I've recently > been made responsible for; but enabling the telnet service is not a very > good option. Suggestions? :-) (open)ssh is reading from /dev/tty, even though there is no controlling terminal. iirc, this was working, but the ssh code is obvious....i'm not sure what the right fix is yet. From owner-rancid-discuss-outgoing@shrubbery.net Wed Oct 13 20:49:29 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 2365C11CE30 for ; Wed, 13 Oct 2004 20:49:29 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 80C861114D; Wed, 13 Oct 2004 20:49:28 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 732CD11155; Wed, 13 Oct 2004 20:49:28 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from mta02-svc.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by guelah.shrubbery.net (Postfix) with ESMTP id AD09E1114D for ; Wed, 13 Oct 2004 20:49:27 +0000 (UTC) Received: from [192.168.250.128] ([80.6.200.48]) by mta02-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20041013204725.QUUC24841.mta02-svc.ntlworld.com@[192.168.250.128]> for ; Wed, 13 Oct 2004 21:47:25 +0100 Message-ID: <416D94CD.3090300@blueyonder.co.uk> Date: Wed, 13 Oct 2004 21:49:17 +0100 From: Mark Cooper User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en, en-us MIME-Version: 1.0 To: rancid-discuss@shrubbery.net Subject: ERX patch Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Patch to remove the variable number 'please wait' style dots that appear in between the virtual router configs when doing a show configuration --- jerancid.orig Wed Oct 13 11:36:05 2004 +++ jerancid Sun Oct 10 18:34:46 2004 @@ -308,6 +308,7 @@ # skip the crap /^! Configuration script /i && next; /^! Copyright /i && next; + /^(\.+)$/i && next; # Skip variable length pausing dot lines # Dog gone Cool matches to process the rest of the config /^ntp clock-period / && next; # kill ntp clock-period -- Mark Cooper http://pvrhw.goldfish.org/ - Open Source PVR Hardware Database From owner-rancid-discuss-outgoing@shrubbery.net Thu Oct 14 17:34: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 20C2211CE30 for ; Thu, 14 Oct 2004 17:34:11 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 7DAAD11154; Thu, 14 Oct 2004 17:34:10 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 766AC11158; Thu, 14 Oct 2004 17:34:10 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from m106.maoz.com (m106.maoz.com [205.167.76.9]) by guelah.shrubbery.net (Postfix) with ESMTP id E97EC11154 for ; Thu, 14 Oct 2004 17:34:09 +0000 (UTC) Received: from m106.maoz.com (localhost.localdomain [127.0.0.1]) by m106.maoz.com (8.12.11/8.12.11) with ESMTP id i9EHY13F028390; Thu, 14 Oct 2004 10:34:01 -0700 Received: from localhost (ttauber@localhost) by m106.maoz.com (8.12.11/8.12.11/Submit) with ESMTP id i9EHXxWA028387; Thu, 14 Oct 2004 10:34:01 -0700 X-Authentication-Warning: m106.maoz.com: ttauber owned process doing -bs Date: Thu, 14 Oct 2004 10:33:59 -0700 (PDT) From: Tony Tauber To: Krzysztof Adamski Cc: rancid-discuss@shrubbery.net Subject: Re: Using rancid to hop from router to router In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On Wed, 13 Oct 2004, Krzysztof Adamski wrote: > I need to collect the config from routers that are not directly > reachable by the host that rancid runs on. I can ssh to the first > router, then telnet to the ones that I need the config from. Since > my knowledge of expect and TCL is nonexistent and before I try to > reinvent the wheel I was wondering if anybody has modified > the clogin script to to this extra hop? > > K I have a similar need. In some cases CLI access to the routers is only available via term server and in some cases routers beyond the ones that are connected to the term server can be reached via telnet or SSH from that first router. >From reviewing the archives, some similar threads have come up over the years related to the term server case and your case seems pretty related. I started hacking away but never finished. The problem seems to me to be that the __login scripts are responsible for the connection *and* the authentication. Furthermore, the hostname passed to __rancid and thus to __login is taken as the DNS name of the thing you want to connect to. This results in ambiguity down the line if, say, you want to telnet to a device and then telnet to different down-stream devices or connect via different async ports on a term server. I think what needs to happen is to allow an override of the devicename/connection linkage by passing a switch with this info. As it is, the devicename is overloaded. Also, it'd be nice/necessary to allow one to run the authentication bits separately from the connection bits so one could pass different username/password for these different devices. That's the general idea as I see it. If people want to discuss or try and flesh out further the change, it'd be welcome since it does seem to be useful functionality to add. Tony From owner-rancid-discuss-outgoing@shrubbery.net Thu Oct 14 17:55:19 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 55E4311CE30 for ; Thu, 14 Oct 2004 17:55:19 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id B01E611155; Thu, 14 Oct 2004 17:55:18 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id A438811159; Thu, 14 Oct 2004 17:55:18 +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 CBAEF11155 for ; Thu, 14 Oct 2004 17:55:17 +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 i9EHt2wu057536; Thu, 14 Oct 2004 13:55:02 -0400 (EDT) (envelope-from asp@tower.partan.com) Received: (from asp@localhost) by tower.partan.com (8.12.9p2/8.12.9/Submit) id i9EHt2GS057533; Thu, 14 Oct 2004 13:55:02 -0400 (EDT) (envelope-from asp) Date: Thu, 14 Oct 2004 13:55:02 -0400 From: Andrew Partan To: Tony Tauber Cc: Krzysztof Adamski , rancid-discuss@shrubbery.net Subject: Re: Using rancid to hop from router to router Message-ID: <20041014175502.GA52779@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 Thu, Oct 14, 2004 at 10:33:59AM -0700, Tony Tauber wrote: > or connect via different async ports on a term server. There is some support for this bit - ssh/telnet to a port on a router - if the routername ends in :portnumber, then clogin will ssh/telnet to $portnumber instead of the default ssh/telnet port. But there is no current support for the rest of this - you can't easily do this today: % $cmd1 $router1 $router1> $cmd2 $router2 $router2> $cmd3 $router3 ... You could write your own expect script and do this clogin -s myscript.exp $router1 And since myscript.exp is sourced by clogin, you could use some of the functions in clogin to help you get into other routers, if any of these functions were suitable to help you. --asp From owner-rancid-discuss-outgoing@shrubbery.net Thu Oct 14 18:05:21 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 A17FD11CE30 for ; Thu, 14 Oct 2004 18:05:21 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 0E39511158; Thu, 14 Oct 2004 18:05:21 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 00FEA1115C; Thu, 14 Oct 2004 18:05:21 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from white.netsurf.net (White.NetSurf.Net [206.186.135.4]) by guelah.shrubbery.net (Postfix) with ESMTP id 5D26C11158 for ; Thu, 14 Oct 2004 18:05:20 +0000 (UTC) Received: from White.NetSurf.Net (kadamski@White.NetSurf.Net [206.186.135.4]) by white.netsurf.net (8.12.3/8.12.3/Debian-7.1) with ESMTP id i9EI5FN0016060; Thu, 14 Oct 2004 14:05:15 -0400 Date: Thu, 14 Oct 2004 14:05:15 -0400 (EDT) From: Krzysztof Adamski To: Tony Tauber Cc: rancid-discuss@shrubbery.net Subject: Re: Using rancid to hop from router to router In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk I started hacking the code a bit, but stopped when I run out of knowledge of tcl :-) Here is what I did for the auth part to the .clogin: add method 128.1.253.33 dssh:abc.example.com add user 128.1.253.33 testuser add password 128.1.253.33 testpass enablepass add hoppassword 128.1.253.33 2ndenablepass and in clogin (this code will login to abc.example.com router: } elseif [string match "dssh*" $prog] { send_user "\ntrying dssh method $hoppassword\n" regexp {dssh(:([^[:space:]]+))*} $prog command suffix hophost if {"$hophost" == ""} { ### set retval [ catch {spawn telnet $router} reason ] } else { set retval [ catch {spawn $sshcmd -c $cyphertype -x -l $user $hophost} reason ] } if { $retval } { send_user "\nError: dssh failed: $reason\n" exit 1 } This is where my knowledge of tcl stopped me from getting any further. K On Thu, 14 Oct 2004, Tony Tauber wrote: > On Wed, 13 Oct 2004, Krzysztof Adamski wrote: > > > I need to collect the config from routers that are not directly > > reachable by the host that rancid runs on. I can ssh to the first > > router, then telnet to the ones that I need the config from. Since > > my knowledge of expect and TCL is nonexistent and before I try to > > reinvent the wheel I was wondering if anybody has modified > > the clogin script to to this extra hop? > > > > K > > I have a similar need. In some cases CLI access to the routers is > only available via term server and in some cases routers beyond the > ones that are connected to the term server can be reached via telnet > or SSH from that first router. > > >From reviewing the archives, some similar threads have come up over > the years related to the term server case and your case seems pretty > related. I started hacking away but never finished. > > The problem seems to me to be that the __login scripts are responsible > for the connection *and* the authentication. Furthermore, the > hostname passed to __rancid and thus to __login is taken as the DNS > name of the thing you want to connect to. This results in ambiguity > down the line if, say, you want to telnet to a device and then telnet > to different down-stream devices or connect via different async ports > on a term server. > > I think what needs to happen is to allow an override of the > devicename/connection linkage by passing a switch with this info. > As it is, the devicename is overloaded. Also, it'd be nice/necessary > to allow one to run the authentication bits separately from the > connection bits so one could pass different username/password for > these different devices. > > That's the general idea as I see it. If people want to discuss or try > and flesh out further the change, it'd be welcome since it does seem > to be useful functionality to add. > > Tony > From owner-rancid-discuss-outgoing@shrubbery.net Tue Oct 19 23:04:33 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 D81EA11CE2D for ; Tue, 19 Oct 2004 23:04:33 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 4364211142; Tue, 19 Oct 2004 23:04:33 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 2357B1114D; Tue, 19 Oct 2004 23:04:33 +0000 (UTC) X-Original-To: rancid-discuss Delivered-To: rancid-discuss@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 7053) id 917B011146; Tue, 19 Oct 2004 23:04:32 +0000 (UTC) Date: Tue, 19 Oct 2004 16:04:32 -0700 From: john heasley To: rancid-discuss@shrubbery.net Subject: netscreen scripts Message-ID: <20041019230432.GB4711@shrubbery.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Stephen Gill helped us work-out the kinks in the NetScreen support. Anyone who wishes to try them, copies are available here: ftp://ftp.shrubbery.net/pub/rancid/nlogin.in ftp://ftp.shrubbery.net/pub/rancid/nrancid.in From owner-rancid-discuss-outgoing@shrubbery.net Sun Oct 24 19:32: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 6B63B11CE34 for ; Sun, 24 Oct 2004 19:32:07 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id C883411139; Sun, 24 Oct 2004 19:32:06 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id C0E8811142; Sun, 24 Oct 2004 19:32:06 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from mail.cableone.net (scanmail1.cableone.net [24.116.0.121]) by guelah.shrubbery.net (Postfix) with ESMTP id 1EC2711139 for ; Sun, 24 Oct 2004 19:32:06 +0000 (UTC) Received: from TINYGOD (unverified [24.117.243.179]) by smail1.cableone.net (SurgeMail 1.9b) with ESMTP id 1687859 for ; Sun, 24 Oct 2004 12:31:18 -0700 Date: Sun, 24 Oct 2004 13:31:44 -0600 From: Justin Grote Organization: JWG Networks X-Priority: 3 (Normal) Message-ID: <1469511238.20041024133144@grote.name> To: rancid-discuss@shrubbery.net Subject: Rancid SVN Branch MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="----------7413C531A357D95" X-Server: High Performance Mail Server - http://surgemail.com Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk This is a cryptographically signed message in MIME format. ------------7413C531A357D95 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Greetings, I've been a user of rancid for a few years now and absolutely love it. When= I show colleagues a simple ViewCVS webpage that tracks the entire configur= ation of the network, they all want it installed in their network. I'm planning to branch version 2.3.1 to add an option to store configuratio= ns in Subversion as opposed to CVS.=20 Subversion is meant as a replacement for CVS and fixes a lot of annoyances = with CVS while adding some very compelling features, the most compelling of= which is that the repository is tracked by a global revision number, as op= posed to individual revision numbers for all files. That means that you can= track the "state" of your network, so you can see how the network looked a= t revision 1415 or how it looked on 09/25/04 (I know the second part is pos= sible in CVS, but it's much cleaner in SVN). It also allows version tracking on directories and easy moving and renaming= of files while preserving the history, which has been a pain for me with r= ancid when a company wants to change its structure. More information about subversion is at http://subversion.tigris.org and th= e excellent free book "Version Control with Subversion" at http://svnbook.r= ed-bean.com/ If anyone is interested in RancidSVN (as I'm tenatively calling the branch)= let me know and I'll give you access to my Subversion repository. Maybe if= I keep it unintrusive enough the original authors might see fit to merge t= he SVN changes back so they become part of the original RANCID (as I said, = I'm writing it so that it is a non-default option). ______________________________ Justin Grote Network Architect JWG Networks Email: nospam-justin@grote.name (remove nospam-) SMS: nospam-rastan@vtext.com (remove nospam-) Phone: (208) 631-5440 ------------7413C531A357D95 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIHOAYJKoZIhvcNAQcCoIIHKTCCByUCAQMxCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC BZIwggJLMIIBtKADAgECAgML69gwDQYJKoZIhvcNAQEEBQAwYjELMAkGA1UEBhMCWkExJTAj BgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA0MDMxNTE5MTAzMFoXDTA1MDMxNTE5 MTAzMFowQzEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEgMB4GCSqGSIb3DQEJ ARYRanVzdGluQGdyb3RlLm5hbWUwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMvyrnjf D5FhVmekwetexhSTzn7vDE0dLaJPOuCLE3DcsR8cgVeGKM1A6RaR2W0GTU004OKo1EfC73at Nw6BukUouRISFTV6eyxpII2JpjC8P8nuU0d58JLHJTTcP23E/k10gQt8EggWW5XPH1jnXv4n D/KiqUV38VCmH1WQ8Ui3AgMBAAGjLjAsMBwGA1UdEQQVMBOBEWp1c3RpbkBncm90ZS5uYW1l MAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQEEBQADgYEAJ2vDnU0kmfocHBEi+fkVvSHIvSXL RixbKnE7QOW2YOXHkspaMqBezeXYNa2nfIV/SZC03qSlusmk9tQKNZVKy2S9nIFQKJF9DvnI qGeX3Tb6HEURfu1HhXTmC43FKzxqTah1/qOTwAnOm6HBwjf6XEjZFOmuVejJwQzqyYAgw80w ggM/MIICqKADAgECAgENMA0GCSqGSIb3DQEBBQUAMIHRMQswCQYDVQQGEwJaQTEVMBMGA1UE CBMMV2VzdGVybiBDYXBlMRIwEAYDVQQHEwlDYXBlIFRvd24xGjAYBgNVBAoTEVRoYXd0ZSBD b25zdWx0aW5nMSgwJgYDVQQLEx9DZXJ0aWZpY2F0aW9uIFNlcnZpY2VzIERpdmlzaW9uMSQw IgYDVQQDExtUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwgQ0ExKzApBgkqhkiG9w0BCQEWHHBl cnNvbmFsLWZyZWVtYWlsQHRoYXd0ZS5jb20wHhcNMDMwNzE3MDAwMDAwWhcNMTMwNzE2MjM1 OTU5WjBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkg THRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwgZ8w DQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMSmPFVzVftOucqZWh5owHUEcJ3f6f+jHuy9zfVb 8hp2vX8MOmHyv1HOAdTlUAow1wJjWiyJFXCO3cnwK4Vaqj9xVsuvPAsH5/EfkTYkKhPPK9Xz gnc9A74r/rsYPge/QIACZNenprufZdHFKlSFD0gEf6e20TxhBEAeZBlyYLf7AgMBAAGjgZQw gZEwEgYDVR0TAQH/BAgwBgEB/wIBADBDBgNVHR8EPDA6MDigNqA0hjJodHRwOi8vY3JsLnRo YXd0ZS5jb20vVGhhd3RlUGVyc29uYWxGcmVlbWFpbENBLmNybDALBgNVHQ8EBAMCAQYwKQYD VR0RBCIwIKQeMBwxGjAYBgNVBAMTEVByaXZhdGVMYWJlbDItMTM4MA0GCSqGSIb3DQEBBQUA A4GBAEiM0VCD6gsuzA2jZqxnD3+vrL7CF6FDlpSdf0whuPg2H6otnzYvwPQcUCCTcDz9reFh YsPZOhl+hLGZGwDFGguCdJ4lUJRix9sncVcljd2pnDmOjCBPZV+V2vf3h9bGCE6u9uo05RAa WzVNd+NWIXiC3CEZNd4ksdMdRv9dX2VPMYIBbjCCAWoCAQEwaTBiMQswCQYDVQQGEwJaQTEl MCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3Rl IFBlcnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECAwvr2DAJBgUrDgMCGgUAoF0wGAYJKoZI hvcNAQkDMQsGCSqGSIb3DQEHATAjBgkqhkiG9w0BCQQxFgQUweBeyn6+wXrsN/pmqwNH0q4y piEwHAYJKoZIhvcNAQkFMQ8XDTA0MTAyNDE5MzE0NFowDQYJKoZIhvcNAQEBBQAEgYAaVTzK BE6ZOb5v3q9/K6a84GuKCqCKjYJ0XmNbMzboM+7z04YVB6g7vEfdnTb+M8dFa1MOfk+1s+Tt TOU/fvmSDPWBWkPpgaZb5WwXrnQXR8BWfELpnC8GFelCohEfRwBwJPNLLF7yCJZ4Pc6b/8qU cP9sHyzc93uHEPI+W8gx6A== ------------7413C531A357D95-- From owner-rancid-discuss-outgoing@shrubbery.net Tue Oct 26 11:33:50 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 5761911CE49 for ; Tue, 26 Oct 2004 11:33:50 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 9A3121113C; Tue, 26 Oct 2004 11:33:49 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 896701114D; Tue, 26 Oct 2004 11:33:49 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from freesbee.wheel.dk (freesbee.wheel.dk [193.162.159.97]) by guelah.shrubbery.net (Postfix) with ESMTP id CE50F1113C for ; Tue, 26 Oct 2004 11:33:40 +0000 (UTC) Received: by freesbee.wheel.dk (Postfix, from userid 1038) id 1A47F11498; Tue, 26 Oct 2004 13:33:33 +0200 (CEST) Date: Tue, 26 Oct 2004 13:33:33 +0200 From: Michael =?iso-8859-1?Q?Lyngb=F8l?= To: rancid-discuss@shrubbery.net Subject: Bug when using SSH on CatOS devices Message-ID: <20041026113333.GO66193@freesbee.wheel.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2.1i X-Free: live free, or die! X-Operating-System: FreeBSD/i386 5.2-CURRENT X-PGP-Fingerprint: 3CA6 3789 1455 8FC2 D499 F22A D763 1ABB 9E4A 37AE X-PGP-Public-Key: http://freesbee.wheel.dk/~lyngbol/gpgkey.pub Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Hi, I'm using RANCID 2.3.1 to get config from a bunch of Cisco 6500 running CatOS 6.4. Login is via SSH (on FreeBSD 5.3 w/ OpenSSH 3.8.1p1). cat5rancid has the following code at around line 1062: TOP: while() { tr/\015//d; if (/> \(enable\) ?exit$/) { $clean_run=1; last; } where $clean_run would be set to true if the prompt matches 'exit'. However when using SSH the exit becomes: Switch> (enable)Connection to switch.foo.bar closed by remote host. Connection to switch.foo.bar closed. compared to this using telnet: Switch> (enable)exit Connection closed by foreign host. which will match and set $clean_run to true. Hence $clean_run will remain false when using SSH, making cat5rancid fail. A quick hack is to just do '$clean_run = 1' at the end of the while() loop, but it doesn't fix it for real. Any ideas? Thanks, /Michael -- Michael Lyngbøl -- michael at lyngbol dot dk Network Architect, AS3292 TDC, IP·backbone From owner-rancid-discuss-outgoing@shrubbery.net Wed Oct 27 23:49: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 E4EB911CE2D for ; Wed, 27 Oct 2004 23:49:54 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 341801113C; Wed, 27 Oct 2004 23:49:54 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 2764F11146; Wed, 27 Oct 2004 23:49: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 974D911142; Wed, 27 Oct 2004 23:49:53 +0000 (UTC) Date: Wed, 27 Oct 2004 16:49:53 -0700 From: john heasley To: Michael Lyngb?l Cc: rancid-discuss@shrubbery.net Subject: Re: Bug when using SSH on CatOS devices Message-ID: <20041027234953.GW19776@shrubbery.net> References: <20041026113333.GO66193@freesbee.wheel.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041026113333.GO66193@freesbee.wheel.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, Oct 26, 2004 at 01:33:33PM +0200, Michael Lyngb?l: > Hi, > > I'm using RANCID 2.3.1 to get config from a bunch of Cisco 6500 running > CatOS 6.4. > > Login is via SSH (on FreeBSD 5.3 w/ OpenSSH 3.8.1p1). > > cat5rancid has the following code at around line 1062: > > TOP: while() { > tr/\015//d; > if (/> \(enable\) ?exit$/) { > $clean_run=1; > last; > } > > where $clean_run would be set to true if the prompt matches 'exit'. > However when using SSH the exit becomes: > > Switch> (enable)Connection to switch.foo.bar closed by remote host. > Connection to switch.foo.bar closed. does it do this when you ssh in manually? > compared to this using telnet: > > Switch> (enable)exit > Connection closed by foreign host. > > which will match and set $clean_run to true. Hence $clean_run will > remain false when using SSH, making cat5rancid fail. > > A quick hack is to just do '$clean_run = 1' at the end of the while() > loop, but it doesn't fix it for real. > > Any ideas? > > Thanks, > /Michael > > -- > Michael Lyngb?l -- michael at lyngbol dot dk > Network Architect, AS3292 TDC, IP?backbone From owner-rancid-discuss-outgoing@shrubbery.net Thu Oct 28 07:13:58 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 83AA511CE30 for ; Thu, 28 Oct 2004 07:13:58 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id C550B11139; Thu, 28 Oct 2004 07:13:57 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id B8ADF11142; Thu, 28 Oct 2004 07:13:57 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from freesbee.wheel.dk (freesbee.wheel.dk [193.162.159.97]) by guelah.shrubbery.net (Postfix) with ESMTP id 9005D11139; Thu, 28 Oct 2004 07:13:42 +0000 (UTC) Received: by freesbee.wheel.dk (Postfix, from userid 1038) id F0009114A3; Thu, 28 Oct 2004 09:13:26 +0200 (CEST) Date: Thu, 28 Oct 2004 09:13:26 +0200 From: Michael =?iso-8859-1?Q?Lyngb=F8l?= To: john heasley Cc: rancid-discuss@shrubbery.net Subject: Re: Bug when using SSH on CatOS devices Message-ID: <20041028071326.GI66193@freesbee.wheel.dk> References: <20041026113333.GO66193@freesbee.wheel.dk> <20041027234953.GW19776@shrubbery.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20041027234953.GW19776@shrubbery.net> User-Agent: Mutt/1.4.2.1i X-Free: live free, or die! X-Operating-System: FreeBSD/i386 5.2-CURRENT X-PGP-Fingerprint: 3CA6 3789 1455 8FC2 D499 F22A D763 1ABB 9E4A 37AE X-PGP-Public-Key: http://freesbee.wheel.dk/~lyngbol/gpgkey.pub Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On 27.10.2004 16:49:53 +0000, john heasley wrote: > > I'm using RANCID 2.3.1 to get config from a bunch of Cisco 6500 running > > CatOS 6.4. > > > > Login is via SSH (on FreeBSD 5.3 w/ OpenSSH 3.8.1p1). > > > > cat5rancid has the following code at around line 1062: > > > > TOP: while() { > > tr/\015//d; > > if (/> \(enable\) ?exit$/) { > > $clean_run=1; > > last; > > } > > > > where $clean_run would be set to true if the prompt matches 'exit'. > > However when using SSH the exit becomes: > > > > Switch> (enable)Connection to switch.foo.bar closed by remote host. > > Connection to switch.foo.bar closed. > > does it do this when you ssh in manually? Yes, eg. when I do: clogin -c 'sh ver' switch.foo.bar /Michael -- Michael Lyngbøl -- michael at lyngbol dot dk Network Architect, AS3292 TDC, IP·backbone From owner-rancid-discuss-outgoing@shrubbery.net Thu Oct 28 23:20:52 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 8DF2A11CE34 for ; Thu, 28 Oct 2004 23:20:52 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id ADA2D1113C; Thu, 28 Oct 2004 23:20:51 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id A4B0111146; Thu, 28 Oct 2004 23:20:51 +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 330D011142; Thu, 28 Oct 2004 23:20:51 +0000 (UTC) Date: Thu, 28 Oct 2004 16:20:51 -0700 From: john heasley To: Michael Lyngb?l Cc: rancid-discuss@shrubbery.net Subject: Re: Bug when using SSH on CatOS devices Message-ID: <20041028232051.GS26832@shrubbery.net> References: <20041026113333.GO66193@freesbee.wheel.dk> <20041027234953.GW19776@shrubbery.net> <20041028071326.GI66193@freesbee.wheel.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041028071326.GI66193@freesbee.wheel.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 Thu, Oct 28, 2004 at 09:13:26AM +0200, Michael Lyngb?l: > On 27.10.2004 16:49:53 +0000, john heasley wrote: > > > > I'm using RANCID 2.3.1 to get config from a bunch of Cisco 6500 running > > > CatOS 6.4. > > > > > > Login is via SSH (on FreeBSD 5.3 w/ OpenSSH 3.8.1p1). > > > > > > cat5rancid has the following code at around line 1062: > > > > > > TOP: while() { > > > tr/\015//d; > > > if (/> \(enable\) ?exit$/) { > > > $clean_run=1; > > > last; > > > } > > > > > > where $clean_run would be set to true if the prompt matches 'exit'. > > > However when using SSH the exit becomes: > > > > > > Switch> (enable)Connection to switch.foo.bar closed by remote host. > > > Connection to switch.foo.bar closed. > > > > does it do this when you ssh in manually? > > Yes, eg. when I do: > > clogin -c 'sh ver' switch.foo.bar I meant "ssh switch.foo.bar" From owner-rancid-discuss-outgoing@shrubbery.net Fri Oct 29 17:32:21 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 8873A11CE3F for ; Fri, 29 Oct 2004 17:32:21 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id CFACB1113C; Fri, 29 Oct 2004 17:32:20 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id C773211146; Fri, 29 Oct 2004 17:32:20 +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 4B15011142; Fri, 29 Oct 2004 17:32:20 +0000 (UTC) Date: Fri, 29 Oct 2004 10:32:20 -0700 From: john heasley To: Justin Grote Cc: rancid-discuss@shrubbery.net Subject: Re: Rancid SVN Branch Message-ID: <20041029173220.GF9349@shrubbery.net> References: <1469511238.20041024133144@grote.name> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1469511238.20041024133144@grote.name> 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 ok, well you subversion folks appear to be ganging up on us. :) we're not familiar with subversion; while patches would be great, one of us will have to learn it in order to support it. so, patches...great, else i'll just add it to the todo list for now. Sun, Oct 24, 2004 at 01:31:44PM -0600, Justin Grote: > Greetings, > > I've been a user of rancid for a few years now and absolutely love it. When I show colleagues a simple ViewCVS webpage that tracks the entire configuration of the network, they all want it installed in their network. > > I'm planning to branch version 2.3.1 to add an option to store configurations in Subversion as opposed to CVS. > > Subversion is meant as a replacement for CVS and fixes a lot of annoyances with CVS while adding some very compelling features, the most compelling of which is that the repository is tracked by a global revision number, as opposed to individual revision numbers for all files. That means that you can track the "state" of your network, so you can see how the network looked at revision 1415 or how it looked on 09/25/04 (I know the second part is possible in CVS, but it's much cleaner in SVN). > > It also allows version tracking on directories and easy moving and renaming of files while preserving the history, which has been a pain for me with rancid when a company wants to change its structure. > > More information about subversion is at http://subversion.tigris.org and the excellent free book "Version Control with Subversion" at http://svnbook.red-bean.com/ > > If anyone is interested in RancidSVN (as I'm tenatively calling the branch) let me know and I'll give you access to my Subversion repository. Maybe if I keep it unintrusive enough the original authors might see fit to merge the SVN changes back so they become part of the original RANCID (as I said, I'm writing it so that it is a non-default option). > > ______________________________ > Justin Grote > Network Architect > JWG Networks > Email: nospam-justin@grote.name (remove nospam-) > SMS: nospam-rastan@vtext.com (remove nospam-) > Phone: (208) 631-5440 From owner-rancid-discuss-outgoing@shrubbery.net Sat Oct 30 07:40:46 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 9FC9411CE44 for ; Sat, 30 Oct 2004 07:40:46 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 133511113C; Sat, 30 Oct 2004 07:40:46 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 07B3211146; Sat, 30 Oct 2004 07:40:46 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from myway.com (nn2.excitenetwork.com [207.159.120.56]) by guelah.shrubbery.net (Postfix) with ESMTP id 0D5AE1113C; Sat, 30 Oct 2004 07:40:40 +0000 (UTC) Received: by mprdmxin.myway.com (Postfix, from userid 110) id 98CE512CCD; Sat, 30 Oct 2004 03:40:37 -0400 (EDT) To: heas@shrubbery.net Subject: Packetshaper & Nortel Contivity Received: from [220.227.182.11] by mprdmailfe4.nwk.myway.com via HTTP; Sat, 30 Oct 2004 03:40:37 EST X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: ID = fb0ffccd07fff9a3591b9cb5cd945af8 Reply-To: dbshah@myway.com From: "dharmesh" MIME-Version: 1.0 X-Sender: dbshah@myway.com X-Mailer: PHP Importance: High X-Priority: 1 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: rancid-discuss@shrubbery.net Message-Id: <20041030074037.98CE512CCD@mprdmxin.myway.com> Date: Sat, 30 Oct 2004 03:40:37 -0400 (EDT) Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Ah well, they say its not as bad as they say it is. ---------anonymous Hi John, This is my third post to this list regarding submitting the files for packetshaper & nortel contivity. I have been running rancid now for over 3 yrs presently using rancid v2.3.1 on linux ( fedora core 2) with ssh for cisco catos swithces, netscreen & cisco routers..... also i hacked rancid for backing up configs for nortel contivty & packetshaper. I wish to submit them to the group so tht more people can use it. How do i go about it. I want to return back the favor to the community for the excellent work you people have been doing. Request you to tell me exactly what i should be doing. i am not good at submitting patches :( But i can submit the nclogin & ncrancid ( for nortel contivty) & pslogin & psrancid ( for packetshaper) in a zip if you want. hell i am not even good at PERL, ( novice actually) i have just made some marignal changes to the way the prompt should behave & where it should look for end of run , etc hope you will not disappoint me. _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From owner-rancid-discuss-outgoing@shrubbery.net Sun Oct 31 20:05:12 2004 Return-Path: X-Original-To: rancid-discuss-archive@ni.shrubbery.net Delivered-To: rancid-discuss-archive@ni.shrubbery.net Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (Postfix) with ESMTP id 1655A11CE3E for ; Sun, 31 Oct 2004 20:05:12 +0000 (UTC) Received: by guelah.shrubbery.net (Postfix) id 5EAD71113C; Sun, 31 Oct 2004 20:05:11 +0000 (UTC) Delivered-To: rancid-discuss-outgoing@shrubbery.net Received: by guelah.shrubbery.net (Postfix, from userid 10007) id 5014111146; Sun, 31 Oct 2004 20:05:11 +0000 (UTC) X-Original-To: rancid-discuss@shrubbery.net Delivered-To: rancid-discuss@shrubbery.net Received: from freesbee.wheel.dk (freesbee.wheel.dk [193.162.159.97]) by guelah.shrubbery.net (Postfix) with ESMTP id F09201113C; Sun, 31 Oct 2004 20:04:57 +0000 (UTC) Received: by freesbee.wheel.dk (Postfix, from userid 1038) id CA3C9114CD; Sun, 31 Oct 2004 21:04:49 +0100 (CET) Date: Sun, 31 Oct 2004 21:04:49 +0100 From: Michael =?iso-8859-1?Q?Lyngb=F8l?= To: john heasley Cc: rancid-discuss@shrubbery.net Subject: Re: Bug when using SSH on CatOS devices Message-ID: <20041031200449.GN81532@freesbee.wheel.dk> References: <20041026113333.GO66193@freesbee.wheel.dk> <20041027234953.GW19776@shrubbery.net> <20041028071326.GI66193@freesbee.wheel.dk> <20041028232051.GS26832@shrubbery.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20041028232051.GS26832@shrubbery.net> User-Agent: Mutt/1.4.2.1i X-Free: live free, or die! X-Operating-System: FreeBSD/i386 5.2-CURRENT X-PGP-Fingerprint: 3CA6 3789 1455 8FC2 D499 F22A D763 1ABB 9E4A 37AE X-PGP-Public-Key: http://freesbee.wheel.dk/~lyngbol/gpgkey.pub Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On 28.10.2004 16:20:51 +0000, john heasley wrote: > > > > I'm using RANCID 2.3.1 to get config from a bunch of Cisco 6500 running > > > > CatOS 6.4. > > > > > > > > Login is via SSH (on FreeBSD 5.3 w/ OpenSSH 3.8.1p1). > > > > > > > > cat5rancid has the following code at around line 1062: > > > > > > > > TOP: while() { > > > > tr/\015//d; > > > > if (/> \(enable\) ?exit$/) { > > > > $clean_run=1; > > > > last; > > > > } > > > > > > > > where $clean_run would be set to true if the prompt matches 'exit'. > > > > However when using SSH the exit becomes: > > > > > > > > Switch> (enable)Connection to switch.foo.bar closed by remote host. > > > > Connection to switch.foo.bar closed. > > > > > > does it do this when you ssh in manually? > > > > Yes, eg. when I do: > > > > clogin -c 'sh ver' switch.foo.bar > > I meant "ssh switch.foo.bar" Oh, sorry. No: Switch> (enable) exitConnection to switch.foo.bar closed by remote host. Connection to switch.foo.bar closed. /Michael -- Michael Lyngbøl -- michael at lyngbol dot dk Network Architect, AS3292 TDC, IP·backbone