From darren at adam.com.au Fri Oct 1 02:17:18 2004 From: darren at adam.com.au (darren kruse) Date: Fri, 01 Oct 2004 11:47:18 +0930 Subject: CatOS Problem In-Reply-To: <415C4E6D.1050901@acsalaska.net> References: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> <415C4E6D.1050901@acsalaska.net> Message-ID: <415CBE2E.80508@adam.com.au> 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 randy at psg.com Mon Oct 4 05:45:22 2004 From: randy at psg.com (Randy Bush) Date: Sun, 3 Oct 2004 22:45:22 -0700 Subject: freebsd port install location Message-ID: <16736.58226.550063.613649@ran.psg.com> 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 heas at shrubbery.net Mon Oct 4 22:09:56 2004 From: heas at shrubbery.net (john heasley) Date: Mon, 4 Oct 2004 15:09:56 -0700 Subject: freebsd port install location In-Reply-To: <16736.58226.550063.613649@ran.psg.com> References: <16736.58226.550063.613649@ran.psg.com> Message-ID: <20041004220956.GM25472@shrubbery.net> 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 randy at psg.com Mon Oct 4 22:37:10 2004 From: randy at psg.com (Randy Bush) Date: Mon, 4 Oct 2004 15:37:10 -0700 Subject: freebsd port install location References: <16736.58226.550063.613649@ran.psg.com> <20041004220956.GM25472@shrubbery.net> Message-ID: <16737.53398.736716.936949@ran.psg.com> >> 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 heas at shrubbery.net Tue Oct 5 00:20:12 2004 From: heas at shrubbery.net (john heasley) Date: Mon, 4 Oct 2004 17:20:12 -0700 Subject: CatOS Problem In-Reply-To: <415CBE2E.80508@adam.com.au> References: <4B8467A7C450874DBC71719AD1013D590216A7E9@ES-MSG-008.es.govt.state.ma.us> <415C4E6D.1050901@acsalaska.net> <415CBE2E.80508@adam.com.au> Message-ID: <20041005002012.GS25472@shrubbery.net> 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 darren at adam.com.au Tue Oct 5 00:52:24 2004 From: darren at adam.com.au (darren kruse) Date: Tue, 05 Oct 2004 10:22:24 +0930 Subject: CatOS Problem In-Reply-To: <20041005002012.GS25472@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> Message-ID: <4161F048.8050302@adam.com.au> 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 From Mark.Coupe at state.ma.us Tue Oct 5 15:15:00 2004 From: Mark.Coupe at state.ma.us (Coupe, Mark (ITD)) Date: Tue, 5 Oct 2004 11:15:00 -0400 Subject: CatOS Problem Message-ID: <4B8467A7C450874DBC71719AD1013D5902291B22@ES-MSG-008.es.govt.state.ma.us> Worked like a charm for me too. Thanks. _____ From: darren kruse [mailto:darren at adam.com.au] Sent: Monday, October 04, 2004 8:52 PM To: john heasley Cc: Christopher E. Brown; Coupe, Mark (ITD); rancid-discuss at shrubbery.net Subject: Re: CatOS Problem 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 From admin at onland.dk Tue Oct 5 21:38:26 2004 From: admin at onland.dk (Soren Hansen) Date: Tue, 5 Oct 2004 23:38:26 +0200 Subject: CatOS Problem In-Reply-To: <20041005002012.GS25472@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> Message-ID: <20041005213826.GA7617@snehvide.intra.kalesh.dk> 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 heas at shrubbery.net Tue Oct 5 22:25:57 2004 From: heas at shrubbery.net (john heasley) Date: Tue, 5 Oct 2004 15:25:57 -0700 Subject: CatOS Problem In-Reply-To: <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> <20041005213826.GA7617@snehvide.intra.kalesh.dk> Message-ID: <20041005222557.GK7143@shrubbery.net> 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 chris.brown at acsalaska.net Tue Oct 5 22:31:31 2004 From: chris.brown at acsalaska.net (Christopher E. Brown) Date: Tue, 05 Oct 2004 14:31:31 -0800 Subject: CatOS Problem In-Reply-To: <20041005002012.GS25472@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> Message-ID: <416320C3.4090107@acsalaska.net> 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 admin at onland.dk Wed Oct 6 15:12:20 2004 From: admin at onland.dk (Soren Hansen) Date: Wed, 6 Oct 2004 17:12:20 +0200 Subject: CatOS Problem In-Reply-To: <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> <20041005222557.GK7143@shrubbery.net> Message-ID: <20041006151220.GA912@snehvide.intra.kalesh.dk> 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 chris.brown at acsalaska.net Thu Oct 7 19:29:33 2004 From: chris.brown at acsalaska.net (Christopher E. Brown) Date: Thu, 07 Oct 2004 11:29:33 -0800 Subject: CatOS question Message-ID: <4165991D.1000908@acsalaska.net> 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 heas at shrubbery.net Thu Oct 7 20:31:42 2004 From: heas at shrubbery.net (john heasley) Date: Thu, 7 Oct 2004 13:31:42 -0700 Subject: CatOS question In-Reply-To: <4165991D.1000908@acsalaska.net> References: <4165991D.1000908@acsalaska.net> Message-ID: <20041007203141.GU25783@shrubbery.net> 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 heas at shrubbery.net Thu Oct 7 21:12:02 2004 From: heas at shrubbery.net (john heasley) Date: Thu, 7 Oct 2004 14:12:02 -0700 Subject: CatOS Problem In-Reply-To: <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> <20041006151220.GA912@snehvide.intra.kalesh.dk> Message-ID: <20041007211202.GB25783@shrubbery.net> 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 chris.brown at acsalaska.net Thu Oct 7 21:29:13 2004 From: chris.brown at acsalaska.net (Christopher E. Brown) Date: Thu, 07 Oct 2004 13:29:13 -0800 Subject: CatOS Problem In-Reply-To: <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> <20041007211202.GB25783@shrubbery.net> Message-ID: <4165B529.9030100@acsalaska.net> 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 heas at shrubbery.net Thu Oct 7 21:37:43 2004 From: heas at shrubbery.net (john heasley) Date: Thu, 7 Oct 2004 14:37:43 -0700 Subject: Problems with the rancid ERX module jerancid In-Reply-To: <1095859557.4290.43.camel@markloveley> References: <1095859557.4290.43.camel@markloveley> Message-ID: <20041007213743.GH25783@shrubbery.net> 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 heas at shrubbery.net Sat Oct 9 23:49:31 2004 From: heas at shrubbery.net (john heasley) Date: Sat, 9 Oct 2004 16:49:31 -0700 Subject: CatOS Problem In-Reply-To: <4165B529.9030100@acsalaska.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> Message-ID: <20041009234931.GO26966@shrubbery.net> 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 jsw at jsw.louisville.ky.us Tue Oct 12 20:59:50 2004 From: jsw at jsw.louisville.ky.us (Jeff S Wheeler) Date: Tue, 12 Oct 2004 16:59:50 -0400 Subject: hlogin / hpuifilter ssh woes Message-ID: <1097614790.16306.146.camel@repulse.jsw.louisville.ky.us> 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 kadamski at netsurf.net Wed Oct 13 04:02:28 2004 From: kadamski at netsurf.net (Krzysztof Adamski) Date: Wed, 13 Oct 2004 00:02:28 -0400 (EDT) Subject: Using rancid to hop from router to router Message-ID: 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 randy at psg.com Wed Oct 13 05:38:08 2004 From: randy at psg.com (Randy Bush) Date: Tue, 12 Oct 2004 22:38:08 -0700 Subject: smc switch Message-ID: <16748.48960.371225.91827@ran.psg.com> 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 heas at shrubbery.net Wed Oct 13 07:08:52 2004 From: heas at shrubbery.net (john heasley) Date: Wed, 13 Oct 2004 00:08:52 -0700 Subject: smc switch In-Reply-To: <16748.48960.371225.91827@ran.psg.com> References: <16748.48960.371225.91827@ran.psg.com> Message-ID: <20041013070852.GA20970@shrubbery.net> 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 heas at shrubbery.net Wed Oct 13 07:17:43 2004 From: heas at shrubbery.net (john heasley) Date: Wed, 13 Oct 2004 00:17:43 -0700 Subject: hlogin / hpuifilter ssh woes In-Reply-To: <1097614790.16306.146.camel@repulse.jsw.louisville.ky.us> References: <1097614790.16306.146.camel@repulse.jsw.louisville.ky.us> Message-ID: <20041013071743.GB20970@shrubbery.net> 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 mcooper at blueyonder.co.uk Wed Oct 13 20:49:17 2004 From: mcooper at blueyonder.co.uk (Mark Cooper) Date: Wed, 13 Oct 2004 21:49:17 +0100 Subject: ERX patch Message-ID: <416D94CD.3090300@blueyonder.co.uk> 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 ttauber at 1-4-5.net Thu Oct 14 17:33:59 2004 From: ttauber at 1-4-5.net (Tony Tauber) Date: Thu, 14 Oct 2004 10:33:59 -0700 (PDT) Subject: Using rancid to hop from router to router In-Reply-To: References: Message-ID: 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 asp at partan.com Thu Oct 14 17:55:02 2004 From: asp at partan.com (Andrew Partan) Date: Thu, 14 Oct 2004 13:55:02 -0400 Subject: Using rancid to hop from router to router In-Reply-To: References: Message-ID: <20041014175502.GA52779@partan.com> 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 kadamski at netsurf.net Thu Oct 14 18:05:15 2004 From: kadamski at netsurf.net (Krzysztof Adamski) Date: Thu, 14 Oct 2004 14:05:15 -0400 (EDT) Subject: Using rancid to hop from router to router In-Reply-To: Message-ID: 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 heas at shrubbery.net Tue Oct 19 23:04:32 2004 From: heas at shrubbery.net (john heasley) Date: Tue, 19 Oct 2004 16:04:32 -0700 Subject: netscreen scripts Message-ID: <20041019230432.GB4711@shrubbery.net> 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 justin at grote.name Sun Oct 24 19:31:44 2004 From: justin at grote.name (Justin Grote) Date: Sun, 24 Oct 2004 13:31:44 -0600 Subject: Rancid SVN Branch Message-ID: <1469511238.20041024133144@grote.name> 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 at grote.name (remove nospam-) SMS: nospam-rastan at vtext.com (remove nospam-) Phone: (208) 631-5440 From michael at lyngbol.dk Tue Oct 26 11:33:33 2004 From: michael at lyngbol.dk (Michael =?iso-8859-1?Q?Lyngb=F8l?=) Date: Tue, 26 Oct 2004 13:33:33 +0200 Subject: Bug when using SSH on CatOS devices Message-ID: <20041026113333.GO66193@freesbee.wheel.dk> 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 heas at shrubbery.net Wed Oct 27 23:49:53 2004 From: heas at shrubbery.net (john heasley) Date: Wed, 27 Oct 2004 16:49:53 -0700 Subject: Bug when using SSH on CatOS devices In-Reply-To: <20041026113333.GO66193@freesbee.wheel.dk> References: <20041026113333.GO66193@freesbee.wheel.dk> Message-ID: <20041027234953.GW19776@shrubbery.net> 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 michael at lyngbol.dk Thu Oct 28 07:13:26 2004 From: michael at lyngbol.dk (Michael =?iso-8859-1?Q?Lyngb=F8l?=) Date: Thu, 28 Oct 2004 09:13:26 +0200 Subject: Bug when using SSH on CatOS devices In-Reply-To: <20041027234953.GW19776@shrubbery.net> References: <20041026113333.GO66193@freesbee.wheel.dk> <20041027234953.GW19776@shrubbery.net> Message-ID: <20041028071326.GI66193@freesbee.wheel.dk> 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 heas at shrubbery.net Thu Oct 28 23:20:51 2004 From: heas at shrubbery.net (john heasley) Date: Thu, 28 Oct 2004 16:20:51 -0700 Subject: Bug when using SSH on CatOS devices In-Reply-To: <20041028071326.GI66193@freesbee.wheel.dk> References: <20041026113333.GO66193@freesbee.wheel.dk> <20041027234953.GW19776@shrubbery.net> <20041028071326.GI66193@freesbee.wheel.dk> Message-ID: <20041028232051.GS26832@shrubbery.net> 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 heas at shrubbery.net Fri Oct 29 17:32:20 2004 From: heas at shrubbery.net (john heasley) Date: Fri, 29 Oct 2004 10:32:20 -0700 Subject: Rancid SVN Branch In-Reply-To: <1469511238.20041024133144@grote.name> References: <1469511238.20041024133144@grote.name> Message-ID: <20041029173220.GF9349@shrubbery.net> 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 at grote.name (remove nospam-) > SMS: nospam-rastan at vtext.com (remove nospam-) > Phone: (208) 631-5440 From dbshah at myway.com Sat Oct 30 07:40:37 2004 From: dbshah at myway.com (dharmesh) Date: Sat, 30 Oct 2004 03:40:37 -0400 (EDT) Subject: Packetshaper & Nortel Contivity Message-ID: <20041030074037.98CE512CCD@mprdmxin.myway.com> 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. From michael at lyngbol.dk Sun Oct 31 20:04:49 2004 From: michael at lyngbol.dk (Michael =?iso-8859-1?Q?Lyngb=F8l?=) Date: Sun, 31 Oct 2004 21:04:49 +0100 Subject: Bug when using SSH on CatOS devices In-Reply-To: <20041028232051.GS26832@shrubbery.net> References: <20041026113333.GO66193@freesbee.wheel.dk> <20041027234953.GW19776@shrubbery.net> <20041028071326.GI66193@freesbee.wheel.dk> <20041028232051.GS26832@shrubbery.net> Message-ID: <20041031200449.GN81532@freesbee.wheel.dk> 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