From: "Mr. James W. Laferriere" To: rancid Subject: When using jlogin with the '-s' option , No further output ?-{ Date: Wed, 2 Apr 2003 10:29:49 -0500 (EST) Message-ID: Hello All , Every time I use the '-s' option to jlogin the output is lost . Or at least I am unable to find to which fiel descriptor it is (re-)directed . All help appreciated . JimL -- +------------------------------------------------------------------+ | James W. Laferriere | System Techniques | Give me VMS | | Network Engineer | P.O. Box 854 | Give me Linux | | babydr@baby-dragons.com | Coudersport PA 16915 | only on AXP | +------------------------------------------------------------------+ From: john heasley To: "Mr. James W. Laferriere" Cc: rancid Subject: Re: When using jlogin with the '-s' option , No further output ?-{ Date: Wed, 2 Apr 2003 08:43:45 -0800 Message-ID: <20030402164344.GC5912@shrubbery.net> References: Wed, Apr 02, 2003 at 10:29:49AM -0500, Mr. James W. Laferriere: > Hello All , Every time I use the '-s' option to jlogin the output > is lost . Or at least I am unable to find to which fiel > descriptor it is (re-)directed . All help appreciated . JimL there is no redirection, unless you do so explicitly. output will appear on stdout (1) and stderr (2), if you tell expect to do so: log_user 1 From: "Mr. James W. Laferriere" To: john heasley Cc: rancid Subject: Re: When using jlogin with the '-s' option , No further output ?-{ Date: Wed, 2 Apr 2003 12:01:34 -0500 (EST) In-Reply-To: <20030402164344.GC5912@shrubbery.net> Message-ID: References: <20030402164344.GC5912@shrubbery.net> Hello John , The '-s' option in jlogin sets log_user to 1 by default . And I have in my -s scripts set it to 1 as well . Still no output from the router . I have tried 'log_file -a -noappend junk.txt' & it is empty as well . I do not even get the 'send_user' output I have setup to give me (sort of) debug output . I just tried send_error & is swallows that output too !-{ Where else can I look ? Tia , JimL On Wed, 2 Apr 2003, john heasley wrote: > Wed, Apr 02, 2003 at 10:29:49AM -0500, Mr. James W. Laferriere: > > Hello All , Every time I use the '-s' option to jlogin the output > > is lost . Or at least I am unable to find to which fiel > > descriptor it is (re-)directed . All help appreciated . JimL > there is no redirection, unless you do so explicitly. output will > appear on stdout (1) and stderr (2), if you tell expect to do so: > log_user 1 -- +------------------------------------------------------------------+ | James W. Laferriere | System Techniques | Give me VMS | | Network Engineer | P.O. Box 854 | Give me Linux | | babydr@baby-dragons.com | Coudersport PA 16915 | only on AXP | +------------------------------------------------------------------+ From: john heasley To: "Mr. James W. Laferriere" Cc: john heasley , rancid Subject: Re: When using jlogin with the '-s' option , No further output ?-{ Date: Wed, 2 Apr 2003 09:19:20 -0800 Message-ID: <20030402171920.GD5912@shrubbery.net> References: <20030402164344.GC5912@shrubbery.net> Wed, Apr 02, 2003 at 12:01:34PM -0500, Mr. James W. Laferriere: > Hello John , The '-s' option in jlogin sets log_user to 1 by no, it sets it to 0 when a script is specified. 174 if { $do_script } { 175 log_user 0 176 } else { 177 log_user 1 178 } > default . And I have in my -s scripts set it to 1 as well . > Still no output from the router . > > I have tried 'log_file -a -noappend junk.txt' & it is empty as > well . I do not even get the 'send_user' output I have setup to > give me (sort of) debug output . I just tried send_error & is > swallows that output too !-{ > > Where else can I look ? Tia , JimL then i suspect either an error in how you are running jlogin from your shell, a typo in the script, or your expect binary is buggered. really can not say without seeing the code. also, see the examples in util/*.exp. > On Wed, 2 Apr 2003, john heasley wrote: > > Wed, Apr 02, 2003 at 10:29:49AM -0500, Mr. James W. Laferriere: > > > Hello All , Every time I use the '-s' option to jlogin the output > > > is lost . Or at least I am unable to find to which fiel > > > descriptor it is (re-)directed . All help appreciated . JimL > > there is no redirection, unless you do so explicitly. output will > > appear on stdout (1) and stderr (2), if you tell expect to do so: > > log_user 1 > -- > +------------------------------------------------------------------+ > | James W. Laferriere | System Techniques | Give me VMS | > | Network Engineer | P.O. Box 854 | Give me Linux | > | babydr@baby-dragons.com | Coudersport PA 16915 | only on AXP | > +------------------------------------------------------------------+ From: =?big5?B?UERTLUtldmluIENoYW4tuOKvcbDq?= To: rancid-discuss@shrubbery.net Subject: Riverstone Router Date: Thu, 3 Apr 2003 11:58:32 +0800 Message-ID: dear all : have any one have experience on Riverstone Router ? right now I already can succeed use riverstone network modify login script http://www.nmops.org/download/scripts/rslogin to login my router like : rancid@kevin-debian:~$ ./rslogin 10.8.20.254 10.8.20.254 spawn telnet 10.8.20.254 Trying 10.8.20.254... Connected to 10.8.20.254. Escape character is '^]'. ---------------------------------------------------------------------- 5SSRM/5C105 System Software, Version E9.0.3.0 Copyright (c) 2002 Enterasys Networks System started on 2003-03-07 00:30:47 ---------------------------------------------------------------------- Press RETURN to activate console . . . Password: KGEX-HQ-E5> enable Password: KGEX-HQ-E5# KGEX-HQ-E5# I need help on how to setup unsupport router no router.db ? thank you ! From: john heasley To: PDS-Kevin Chan-???q?? Cc: rancid-discuss@shrubbery.net Subject: Re: Riverstone Router Date: Wed, 2 Apr 2003 20:21:16 -0800 Message-ID: <20030403042116.GI13426@shrubbery.net> References: In-Reply-To: riverstone is (will be) in 2.3 (which my slow butt is holding up). you can try this eft image. ftp://ftp.shrubbery.net/outgoing/rancid-2.3.eft.tar.gz Thu, Apr 03, 2003 at 11:58:32AM +0800, PDS-Kevin Chan-???q??: > > dear all : > > have any one have experience on Riverstone Router ? > > right now I already can succeed use riverstone network > modify login script > http://www.nmops.org/download/scripts/rslogin to login my > router like : > > rancid@kevin-debian:~$ ./rslogin 10.8.20.254 > 10.8.20.254 > spawn telnet 10.8.20.254 > Trying 10.8.20.254... > Connected to 10.8.20.254. > Escape character is '^]'. > ---------------------------------------------------------------------- > 5SSRM/5C105 System Software, Version E9.0.3.0 > Copyright (c) 2002 Enterasys Networks > System started on 2003-03-07 00:30:47 > ---------------------------------------------------------------------- > > Press RETURN to activate console . . . > > > > Password: > KGEX-HQ-E5> enable > Password: > KGEX-HQ-E5# > KGEX-HQ-E5# > > > I need help on how to setup unsupport router no router.db ? > > > thank you ! > > > > From: "Mr. James W. Laferriere" To: john heasley Cc: rancid Subject: Re: When using jlogin with the '-s' option , No further output ?-{ Date: Thu, 3 Apr 2003 15:06:54 -0500 (EST) In-Reply-To: <20030402171920.GD5912@shrubbery.net> Message-ID: References: <20030402164344.GC5912@shrubbery.net> <20030402171920.GD5912@shrubbery.net> Hello John , Hmm, This looks like a one person show , at least on this maillist . Inline . On Wed, 2 Apr 2003, john heasley wrote: > Wed, Apr 02, 2003 at 12:01:34PM -0500, Mr. James W. Laferriere: > > Hello John , The '-s' option in jlogin sets log_user to 1 by > no, it sets it to 0 when a script is specified. > 174 if { $do_script } { > 175 log_user 0 > 176 } else { > 177 log_user 1 > 178 } Here's a good one on me . If I use the -s option & do_script is set to 0 the script specified in the -s option is not processed . If set to 1 it does get processed . And the using the log_file (ie: log_file -a -noappend junk.txt) I am able to get the output from my sub script . But otherwise nothing gets sent to stdout . The note above the do_script seems to say that the underlying script is responsible for sending output , But instead of having anything to do with output it is input that gets shanghi'd . Now that I can at last can get output ot appear someplace do you have any thoughts on getting output to stdout ? > > default . And I have in my -s scripts set it to 1 as well . > > Still no output from the router . > > > > I have tried 'log_file -a -noappend junk.txt' & it is empty as > > well . I do not even get the 'send_user' output I have setup to > > give me (sort of) debug output . I just tried send_error & is > > swallows that output too !-{ > > > > Where else can I look ? Tia , JimL > then i suspect either an error in how you are running jlogin from your > shell, a typo in the script, or your expect binary is buggered. really > can not say without seeing the code. > also, see the examples in util/*.exp. That is where I stole the basis for the script . > > On Wed, 2 Apr 2003, john heasley wrote: > > > Wed, Apr 02, 2003 at 10:29:49AM -0500, Mr. James W. Laferriere: > > > > Hello All , Every time I use the '-s' option to jlogin the output > > > > is lost . Or at least I am unable to find to which fiel > > > > descriptor it is (re-)directed . All help appreciated . JimL > > > there is no redirection, unless you do so explicitly. output will > > > appear on stdout (1) and stderr (2), if you tell expect to do so: > > > log_user 1 -- +------------------------------------------------------------------+ | James W. Laferriere | System Techniques | Give me VMS | | Network Engineer | P.O. Box 854 | Give me Linux | | babydr@baby-dragons.com | Coudersport PA 16915 | only on AXP | +------------------------------------------------------------------+ From: Andrew Partan To: "Mr. James W. Laferriere" Cc: rancid Subject: Re: When using jlogin with the '-s' option , No further output ?-{ Date: Thu, 3 Apr 2003 15:41:19 -0500 Message-ID: <20030403204119.GB77267@partan.com> References: <20030402164344.GC5912@shrubbery.net> <20030402171920.GD5912@shrubbery.net> On Thu, Apr 03, 2003 at 03:06:54PM -0500, Mr. James W. Laferriere wrote: > Now that I can at last can get output ot appear someplace do > you have any thoughts on getting output to stdout ? Can you send the script? I can give it a shot on one of my junipers & see if I spot anything. --asp From: john heasley To: "Mr. James W. Laferriere" Cc: rancid Subject: Re: When using jlogin with the '-s' option , No further output ?-{ Date: Thu, 3 Apr 2003 21:51:36 -0800 Message-ID: <20030404055136.GE23538@shrubbery.net> References: <20030402164344.GC5912@shrubbery.net> <20030402171920.GD5912@shrubbery.net> In-Reply-To: Thu, Apr 03, 2003 at 03:06:54PM -0500, Mr. James W. Laferriere: > Hello John , Hmm, This looks like a one person show , at least > on this maillist . Inline . there are four folks. > On Wed, 2 Apr 2003, john heasley wrote: > > > Wed, Apr 02, 2003 at 12:01:34PM -0500, Mr. James W. Laferriere: > > > Hello John , The '-s' option in jlogin sets log_user to 1 by > > no, it sets it to 0 when a script is specified. > > 174 if { $do_script } { > > 175 log_user 0 > > 176 } else { > > 177 log_user 1 > > 178 } > Here's a good one on me . If I use the -s option & do_script is > set to 0 the script specified in the -s option is not processed . > If set to 1 it does get processed . And the using the log_file > (ie: log_file -a -noappend junk.txt) I am able to get the output > from my sub script . But otherwise nothing gets sent to stdout . > The note above the do_script seems to say that the underlying > script is responsible for sending output , But instead of having > anything to do with output it is input that gets shanghi'd . > Now that I can at last can get output ot appear someplace do > you have any thoughts on getting output to stdout ? > > > > default . And I have in my -s scripts set it to 1 as well . > > > Still no output from the router . > > > > > > I have tried 'log_file -a -noappend junk.txt' & it is empty as > > > well . I do not even get the 'send_user' output I have setup to > > > give me (sort of) debug output . I just tried send_error & is > > > swallows that output too !-{ > > > > > > Where else can I look ? Tia , JimL > > then i suspect either an error in how you are running jlogin from your > > shell, a typo in the script, or your expect binary is buggered. really > > can not say without seeing the code. > > also, see the examples in util/*.exp. > That is where I stole the basis for the script . The example scripts work for me. all i can suggest is what andrew already has, send the code. you can send it to rancid@shrubbery.net if you do not wish it to appear on the list. > > > > On Wed, 2 Apr 2003, john heasley wrote: > > > > Wed, Apr 02, 2003 at 10:29:49AM -0500, Mr. James W. Laferriere: > > > > > Hello All , Every time I use the '-s' option to jlogin the output > > > > > is lost . Or at least I am unable to find to which fiel > > > > > descriptor it is (re-)directed . All help appreciated . JimL > > > > there is no redirection, unless you do so explicitly. output will > > > > appear on stdout (1) and stderr (2), if you tell expect to do so: > > > > log_user 1 > -- > +------------------------------------------------------------------+ > | James W. Laferriere | System Techniques | Give me VMS | > | Network Engineer | P.O. Box 854 | Give me Linux | > | babydr@baby-dragons.com | Coudersport PA 16915 | only on AXP | > +------------------------------------------------------------------+ From: "Strina Nicolas" To: Subject: Cat5 ? Date: Fri, 4 Apr 2003 16:26:59 +0200 Message-ID: Hello, I am now trying to setup rancid for Cat5. Anything work when i use clogin. When i launch rancid/cat5rancid i have this : [vtx@noc bin]$ cat5rancid sw1.wtc.lsn.ch.vtxnet.net -d sw1.wtc.lsn.ch.vtxnet.net clogin error: Error: TIMEOUT reached sw1.wtc.lsn.ch.vtxnet.net: missed cmd(s): show boot,dir slot0:,dir bootflash:,dir slot1:,dir sup-bootflash:,show module,write term,show version,show flash,show port ifindex,dir sup-microcode: sw1.wtc.lsn.ch.vtxnet.net: End of run not found [vtx@noc bin]$ rancid sw1.wtc.lsn.ch.vtxnet.net -d sw1.wtc.lsn.ch.vtxnet.net clogin error: Error: TIMEOUT reached sw1.wtc.lsn.ch.vtxnet.net: missed cmd(s): write term sw1.wtc.lsn.ch.vtxnet.net: End of run not found Someone have an idea ? Regards, Nicolas ---------------------------------------- STRINA Nicolas IP Network Engineer VTX Services - Internet Service Provider Av. de Lavaux, 101 CH-1009 Pully nicolas.strina@smart-telecom.ch http://www.vtx.ch ---------------------------------------- From: "Rizzo, Joe" To: "Strina Nicolas" , Subject: RE: Cat5 ? Date: Fri, 4 Apr 2003 06:39:40 -0800 Message-ID: <194487E5B6AC1E4E82FCBD56E579979102282480@eahq-mb3.rws.ad.ea.com> Try: NOPIPE=true; export NOPIPE cat5rancid -d sw1.wtc.lsn.ch.vtxnet.net Then review the sw1.wtc.lsn.ch.vtxnet.net.raw and sw1.wtc.lsn.ch.vtxnet.new files. -----Original Message----- From: Strina Nicolas [mailto:nicolas.strina@smart-telecom.ch] Sent: Friday, April 04, 2003 8:27 AM To: rancid-discuss@shrubbery.net Subject: Cat5 ? Hello, I am now trying to setup rancid for Cat5. Anything work when i use clogin. When i launch rancid/cat5rancid i have this : [vtx@noc bin]$ cat5rancid sw1.wtc.lsn.ch.vtxnet.net -d sw1.wtc.lsn.ch.vtxnet.net clogin error: Error: TIMEOUT reached sw1.wtc.lsn.ch.vtxnet.net: missed cmd(s): show boot,dir slot0:,dir bootflash:,dir slot1:,dir sup-bootflash:,show module,write term,show version,show flash,show port ifindex,dir sup-microcode: sw1.wtc.lsn.ch.vtxnet.net: End of run not found [vtx@noc bin]$ rancid sw1.wtc.lsn.ch.vtxnet.net -d sw1.wtc.lsn.ch.vtxnet.net clogin error: Error: TIMEOUT reached sw1.wtc.lsn.ch.vtxnet.net: missed cmd(s): write term sw1.wtc.lsn.ch.vtxnet.net: End of run not found Someone have an idea ? Regards, Nicolas ---------------------------------------- STRINA Nicolas IP Network Engineer VTX Services - Internet Service Provider Av. de Lavaux, 101 CH-1009 Pully nicolas.strina@smart-telecom.ch http://www.vtx.ch ---------------------------------------- From: "Strina Nicolas" To: "Rizzo, Joe" , Subject: RE: Cat5 ? Date: Fri, 4 Apr 2003 16:42:31 +0200 Message-ID: It's login on the Cat and after that no command .... WTC-SW-1(Cat4006) Error: TIMEOUT reached Doh ---------------------------------------- STRINA Nicolas IP Network Engineer VTX Services - Internet Service Provider Av. de Lavaux, 101 CH-1009 Pully nicolas.strina@smart-telecom.ch http://www.vtx.ch ---------------------------------------- -----Message d'origine----- De : Rizzo, Joe [mailto:JRizzo@ea.com] Envoye : vendredi, 4. avril 2003 16:40 A : Strina Nicolas; rancid-discuss@shrubbery.net Objet : RE: Cat5 ? Try: NOPIPE=true; export NOPIPE cat5rancid -d sw1.wtc.lsn.ch.vtxnet.net Then review the sw1.wtc.lsn.ch.vtxnet.net.raw and sw1.wtc.lsn.ch.vtxnet.new files. -----Original Message----- From: Strina Nicolas [mailto:nicolas.strina@smart-telecom.ch] Sent: Friday, April 04, 2003 8:27 AM To: rancid-discuss@shrubbery.net Subject: Cat5 ? Hello, I am now trying to setup rancid for Cat5. Anything work when i use clogin. When i launch rancid/cat5rancid i have this : [vtx@noc bin]$ cat5rancid sw1.wtc.lsn.ch.vtxnet.net -d sw1.wtc.lsn.ch.vtxnet.net clogin error: Error: TIMEOUT reached sw1.wtc.lsn.ch.vtxnet.net: missed cmd(s): show boot,dir slot0:,dir bootflash:,dir slot1:,dir sup-bootflash:,show module,write term,show version,show flash,show port ifindex,dir sup-microcode: sw1.wtc.lsn.ch.vtxnet.net: End of run not found [vtx@noc bin]$ rancid sw1.wtc.lsn.ch.vtxnet.net -d sw1.wtc.lsn.ch.vtxnet.net clogin error: Error: TIMEOUT reached sw1.wtc.lsn.ch.vtxnet.net: missed cmd(s): write term sw1.wtc.lsn.ch.vtxnet.net: End of run not found Someone have an idea ? Regards, Nicolas ---------------------------------------- STRINA Nicolas IP Network Engineer VTX Services - Internet Service Provider Av. de Lavaux, 101 CH-1009 Pully nicolas.strina@smart-telecom.ch http://www.vtx.ch ---------------------------------------- From: "Rizzo, Joe" To: "Strina Nicolas" , Subject: RE: Cat5 ? Date: Fri, 4 Apr 2003 06:52:55 -0800 Message-ID: <194487E5B6AC1E4E82FCBD56E5799791BC66B3@eahq-mb3.rws.ad.ea.com> Try setting your prompt to something like: set prompt WTC-SW-1(Cat4006)> or set prompt WTC-SW-1-Cat4006> -----Original Message----- From: Strina Nicolas [mailto:nicolas.strina@smart-telecom.ch] Sent: Friday, April 04, 2003 8:43 AM To: Rizzo, Joe; rancid-discuss@shrubbery.net Subject: RE: Cat5 ? It's login on the Cat and after that no command .... WTC-SW-1(Cat4006) Error: TIMEOUT reached Doh ---------------------------------------- STRINA Nicolas IP Network Engineer VTX Services - Internet Service Provider Av. de Lavaux, 101 CH-1009 Pully nicolas.strina@smart-telecom.ch http://www.vtx.ch ---------------------------------------- -----Message d'origine----- De : Rizzo, Joe [mailto:JRizzo@ea.com] Envoye : vendredi, 4. avril 2003 16:40 A : Strina Nicolas; rancid-discuss@shrubbery.net Objet : RE: Cat5 ? Try: NOPIPE=true; export NOPIPE cat5rancid -d sw1.wtc.lsn.ch.vtxnet.net Then review the sw1.wtc.lsn.ch.vtxnet.net.raw and sw1.wtc.lsn.ch.vtxnet.new files. -----Original Message----- From: Strina Nicolas [mailto:nicolas.strina@smart-telecom.ch] Sent: Friday, April 04, 2003 8:27 AM To: rancid-discuss@shrubbery.net Subject: Cat5 ? Hello, I am now trying to setup rancid for Cat5. Anything work when i use clogin. When i launch rancid/cat5rancid i have this : [vtx@noc bin]$ cat5rancid sw1.wtc.lsn.ch.vtxnet.net -d sw1.wtc.lsn.ch.vtxnet.net clogin error: Error: TIMEOUT reached sw1.wtc.lsn.ch.vtxnet.net: missed cmd(s): show boot,dir slot0:,dir bootflash:,dir slot1:,dir sup-bootflash:,show module,write term,show version,show flash,show port ifindex,dir sup-microcode: sw1.wtc.lsn.ch.vtxnet.net: End of run not found [vtx@noc bin]$ rancid sw1.wtc.lsn.ch.vtxnet.net -d sw1.wtc.lsn.ch.vtxnet.net clogin error: Error: TIMEOUT reached sw1.wtc.lsn.ch.vtxnet.net: missed cmd(s): write term sw1.wtc.lsn.ch.vtxnet.net: End of run not found Someone have an idea ? Regards, Nicolas ---------------------------------------- STRINA Nicolas IP Network Engineer VTX Services - Internet Service Provider Av. de Lavaux, 101 CH-1009 Pully nicolas.strina@smart-telecom.ch http://www.vtx.ch ---------------------------------------- From: "Mr. James W. Laferriere" To: Andrew Partan Cc: rancid Subject: Re: When using jlogin with the '-s' option , No further output ?-{ Date: Fri, 4 Apr 2003 11:31:41 -0500 (EST) In-Reply-To: <20030403204119.GB77267@partan.com> Message-ID: References: <20030402164344.GC5912@shrubbery.net> <20030402171920.GD5912@shrubbery.net> <20030403204119.GB77267@partan.com> Hello Andrew & John , Attached is a gzipd tarball of the script that at least gets output to a file . Thank you . JimL ps: When I get it debugge & claned up I'll ask that the team look at placing it into the utils/ area . On Thu, 3 Apr 2003, Andrew Partan wrote: > On Thu, Apr 03, 2003 at 03:06:54PM -0500, Mr. James W. Laferriere wrote: > > Now that I can at last can get output ot appear someplace do > > you have any thoughts on getting output to stdout ? > Can you send the script? I can give it a shot on one of my junipers > & see if I spot anything. > --asp -- +------------------------------------------------------------------+ | James W. Laferriere | System Techniques | Give me VMS | | Network Engineer | P.O. Box 854 | Give me Linux | | babydr@baby-dragons.com | Coudersport PA 16915 | only on AXP | +------------------------------------------------------------------+ From: Andrew Partan To: "Mr. James W. Laferriere" Cc: rancid-discuss@shrubbery.net Subject: Re: When using jlogin with the '-s' option , No further output ?-{ Date: Fri, 4 Apr 2003 11:49:37 -0500 Message-ID: <20030404164937.GA60514@partan.com> References: <20030402164344.GC5912@shrubbery.net> <20030402171920.GD5912@shrubbery.net> <20030403204119.GB77267@partan.com> On Fri, Apr 04, 2003 at 11:31:41AM -0500, Mr. James W. Laferriere wrote: > Hello Andrew & John , Attached is a gzipd tarball of the script > that at least gets output to a file . Thank you . JimL No attachment. --asp From: "Mr. James W. Laferriere" To: Andrew Partan Cc: rancid Subject: Re: When using jlogin with the '-s' option , No further output ?-{ Date: Fri, 4 Apr 2003 12:11:02 -0500 (EST) In-Reply-To: Message-ID: References: <20030402164344.GC5912@shrubbery.net> <20030402171920.GD5912@shrubbery.net> <20030403204119.GB77267@partan.com> This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --566704117-555147659-1049476262=:15828 Content-Type: TEXT/PLAIN; charset=US-ASCII Oops ... , JimL On Fri, 4 Apr 2003, Mr. James W. Laferriere wrote: > Hello Andrew & John , Attached is a gzipd tarball of the script > that at least gets output to a file . Thank you . JimL > ps: When I get it debugge & claned up I'll ask that the team look at > placing it into the utils/ area . > On Thu, 3 Apr 2003, Andrew Partan wrote: > > On Thu, Apr 03, 2003 at 03:06:54PM -0500, Mr. James W. Laferriere wrote: > > > Now that I can at last can get output ot appear someplace do > > > you have any thoughts on getting output to stdout ? > > Can you send the script? I can give it a shot on one of my junipers > > & see if I spot anything. > > --asp -- +------------------------------------------------------------------+ | James W. Laferriere | System Techniques | Give me VMS | | Network Engineer | P.O. Box 854 | Give me Linux | | babydr@baby-dragons.com | Coudersport PA 16915 | only on AXP | +------------------------------------------------------------------+ --566704117-555147659-1049476262=:15828 Content-Type: APPLICATION/octet-stream; name="jlogin-s-interact.tgz" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="jlogin-s-interact.tgz" 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 uBt3427cjbtxN/688R/oFbpEACgAAA== --566704117-555147659-1049476262=:15828-- From: john heasley To: "Mr. James W. Laferriere" Cc: Andrew Partan , rancid Subject: Re: When using jlogin with the '-s' option , No further output ?-{ Date: Fri, 4 Apr 2003 22:04:18 -0800 Message-ID: <20030405060418.GT23538@shrubbery.net> References: <20030402164344.GC5912@shrubbery.net> <20030402171920.GD5912@shrubbery.net> <20030403204119.GB77267@partan.com> Fri, Apr 04, 2003 at 12:11:02PM -0500, Mr. James W. Laferriere: > Oops ... , JimL > > On Fri, 4 Apr 2003, Mr. James W. Laferriere wrote: > > Hello Andrew & John , Attached is a gzipd tarball of the script > > that at least gets output to a file . Thank you . JimL > > ps: When I get it debugge & claned up I'll ask that the team look at > > placing it into the utils/ area . > > > On Thu, 3 Apr 2003, Andrew Partan wrote: > > > On Thu, Apr 03, 2003 at 03:06:54PM -0500, Mr. James W. Laferriere wrote: > > > > Now that I can at last can get output ot appear someplace do > > > > you have any thoughts on getting output to stdout ? > > > Can you send the script? I can give it a shot on one of my junipers > > > & see if I spot anything. > > > --asp --- jlogin-s-interact-with-sub-sessions.exp.old Sat Apr 5 05:14:26 2003 +++ jlogin-s-interact-with-sub-sessions.exp Sat Apr 5 06:01:08 2003 @@ -98,7 +98,7 @@ } # try sending all output to a file -log_file -a -noappend $Elog_file +log_file -a $Elog_file # set exp_internal 0 # set log_user 0 @@ -135,7 +135,7 @@ set rTcmd_file [open $Tcmd_file r] # get the line_count in file $Tcmd_file - catch {exec count_lines.sh $Tcmd_file} line_count + catch {exec wc -l $Tcmd_file | sed -e "s/^ *//" | cut -f1 "-d "} line_count # To jump thru hoops for first line in $rTcmd_file set cmd_num 1 @@ -146,20 +146,19 @@ # Debugging #send_error "cmd_num=\"$cmd_num\" , line_count=\"$line_count\"\n" - if { $cmd_num > 1 && $cmd_num <= $line_count } { + send "$line\r" + sleep 0.07 + + if { $cmd_num > 0 && $cmd_num < $line_count } { # Debugging #send_error "Here Tprmpt , cmd_num=$cmd_num sending: $line\n\n" expect -re $Tprmpt { - sleep 0.07 - send "$line\r" } } else { # Debugging #send_error "Here prompt , cmd_num=$cmd_num sending: $line\n\n" # This will only happen once . (I hope) expect -re $prompt { - sleep 0.07 - send "$line\r" } } incr cmd_num 1 @@ -181,7 +180,6 @@ # Check that we either timeout or have gotten the prompt thru jlogin send "show system users\r" -send "\r" expect { timeout { @@ -190,8 +188,9 @@ #send_error "$prompt, timeout\n" send_error "Error: did not receive prompt\n" - exit + return 1 } + -re "\[\r\n\]+" { exp_continue; } -re "^.*$prompt" { # Debugging @@ -206,15 +205,15 @@ #send_error "Here #4\n" # send 'quit' to the router -send "quit\r" -expect { - timeout { - send_error "Error: timeout waiting for EOF after quit\n" ; - } - eof { - exit 0 ; - } -} +#send "quit\r" +#expect { +# timeout { +# send_error "Error: timeout waiting for EOF after quit\n" ; +# } +# eof { +# exit 0 ; +# } +#} # Debugging #send_error "Here #EOF\n" ; From: john heasley To: "Rizzo, Joe" Cc: rancid-discuss@shrubbery.net Subject: Re: matching Cisco config prompt Date: Sun, 6 Apr 2003 01:19:24 +0000 Message-ID: <20030406011924.GE8187@shrubbery.net> References: <194487E5B6AC1E4E82FCBD56E5799791012D4329@eahq-mb3.rws.ad.ea.com> <20030217203338.GF17776@shrubbery.net> Mime-Version: 1.0 Mon, Feb 17, 2003 at 12:33:38PM -0800, john heasley: > Mon, Feb 17, 2003 at 10:09:28AM -0800, Rizzo, Joe: > > I am slowly understanding what is going on... This is a little cleaner: > > hairy isnt it. > > > diff -u clogin.orig clogin > > --- clogin.orig Wed Feb 12 15:33:02 2003 > > +++ clogin Mon Feb 17 10:02:03 2003 > > @@ -456,9 +456,9 @@ > > } else { > > send "term length 0\r" > > } > > - regsub -all "\[)(]" $prompt {\\&} reprompt > > + regsub -all {[)(]} $prompt {\\&} reprompt > > # match cisco config mode prompts too, but not for catalyst ie: > > (enable) > > - regsub -all "\[#>]$" $reprompt {(\\([^\\r\\n]+\\))?&} reprompt > > + regsub -- {^(.{1,14}).*([#>])$} $reprompt > > {\1.*(\(config.*\))?\2} reprompt > ^^ such matches are problematic because there's no tell what > might appear in the config or command output. things like [^(#>] > work more reliably. i _finally_ had some time to look at this. i altered your diff just a bit. thanks, man. anyone care to try it? it works for the cases i tried. more exposure appreciated.... ftp://ftp.shrubbery.net/outgoing/clogin.in > > expect { > > -re $reprompt {} > > -re "\[\n\r]+" { exp_continue } > > > > > > -----Original Message----- > > From: john heasley [mailto:heas@shrubbery.net] > > Sent: Monday, February 17, 2003 12:06 AM > > To: Rizzo, Joe > > Cc: john heasley; rancid-discuss@shrubbery.net; AZhang@reliant.com > > Subject: Re: matching Cisco config prompt > > > > Fri, Feb 14, 2003 at 10:20:15AM -0800, Rizzo, Joe: > > > Ah. I see. Thanks for the explanation. > > > > > > Anyway, the following seems to work on Cisco routers in any config > > mode > > > and with truncated a prompt. > > > > > > diff -u clogin.orig clogin > > > --- clogin.orig Wed Feb 12 15:33:02 2003 > > > +++ clogin Fri Feb 14 10:11:04 2003 > > > @@ -456,9 +456,9 @@ > > > } else { > > > send "term length 0\r" > > > } > > > - regsub -all "\[)(]" $prompt {\\&} reprompt > > > + regsub -- {^(.{0,14}).*([#>])$} $prompt {\1\2} reprompt > > > # match cisco config mode prompts too, but not for catalyst > > ie: > > > (enable) > > > - regsub -all "\[#>]$" $reprompt {(\\([^\\r\\n]+\\))?&} reprompt > > > + regsub -all "\[#>]$" $reprompt {.*(\(config.*\))?&} reprompt > > > expect { > > > -re $reprompt {} > > > -re "\[\n\r]+" { exp_continue } > > > > i think that is real close. need to test though. thanks joe. > > > > [ my cat5k is one weird duck...and stuck at ~ rev 2.4. trying to get > > my hands on something more recent ] From: listuser@numbnuts.net To: =?big5?B?UERTLUtldmluIENoYW4tuOKvcbDq?= Cc: rancid-discuss@shrubbery.net Subject: Re: Riverstone Router Date: Sun, 6 Apr 2003 13:06:07 -0500 (CDT) In-Reply-To: Message-ID: I've been planning on writing a module for Enterasys hardware for a while now. I started to a while back but got side tracked. I have a plethora of goods to try it on. I'm fairly new to rancid though. Justin On Thu, 3 Apr 2003, [big5] PDS-Kevin Chan-¸â¯q°ê wrote: > > dear all : > > have any one have experience on Riverstone Router ? > > right now I already can succeed use riverstone network > modify login script > http://www.nmops.org/download/scripts/rslogin to login my > router like : > > rancid@kevin-debian:~$ ./rslogin 10.8.20.254 > 10.8.20.254 > spawn telnet 10.8.20.254 > Trying 10.8.20.254... > Connected to 10.8.20.254. > Escape character is '^]'. > ---------------------------------------------------------------------- > 5SSRM/5C105 System Software, Version E9.0.3.0 > Copyright (c) 2002 Enterasys Networks > System started on 2003-03-07 00:30:47 > ---------------------------------------------------------------------- > > Press RETURN to activate console . . . > > > > Password: > KGEX-HQ-E5> enable > Password: > KGEX-HQ-E5# > KGEX-HQ-E5# > > > I need help on how to setup unsupport router no router.db ? > > > thank you ! > > > > > From: john heasley To: listuser@numbnuts.net Cc: rancid-discuss@shrubbery.net Subject: Re: Riverstone Router Date: Sun, 6 Apr 2003 20:20:19 +0000 Message-ID: <20030406202019.GI8187@shrubbery.net> References: if they provide a resonably consistent CLI, then it is possible. Sun, Apr 06, 2003 at 01:06:07PM -0500, listuser@numbnuts.net: > I've been planning on writing a module for Enterasys hardware for a while > now. I started to a while back but got side tracked. I have a plethora > of goods to try it on. I'm fairly new to rancid though. > > Justin From: john heasley To: rancid-discuss@shrubbery.net Subject: catOS with aaa authorization Date: Sun, 6 Apr 2003 20:29:53 +0000 Message-ID: <20030406202953.GK8187@shrubbery.net> my cat5k has a sup1, which can not be upgraded. well, it could be upgraded if i had a 16meg 72-pin simm for it...but i'm reluctant to go buy one. anyway, it's catOS version does not support AAA authorization, ie: "auto-enable" or the "priv-lvl" AV pair. if anyone has such a CatOS box to test the patch below, it would be helpful. the person who reported the problem has not replied. thanks Index: clogin.in =================================================================== RCS file: /home/rancid/.CVS/rancid/bin/clogin.in,v retrieving revision 1.52 diff -d -u -r1.52 clogin.in --- clogin.in 30 Jul 2002 06:14:10 -0000 1.52 +++ clogin.in 23 Mar 2003 07:35:44 -0000 @@ -565,7 +565,7 @@ # was done on the command line. If it is not specifically set on the # command line, check the password file. if $autoenable { - set prompt "#" + set prompt "(#| \(enable\))" } else { set ae [find autoenable $router] if { "$ae" == "1" } { From: john heasley To: rancid-discuss@shrubbery.net Subject: CatOS "write term all" Date: Sun, 6 Apr 2003 20:46:55 +0000 Message-ID: <20030406204655.GM8187@shrubbery.net> another CatOS request (). apparently newer CatOS version support an "all" argument to "write term". would be great if someone could test the following patch. it works for those which do not support it. for those that do, it should collect both versions of the command, but only display the "all" version. thanks Index: cat5rancid.in =================================================================== RCS file: /home/rancid/.CVS/rancid/bin/cat5rancid.in,v retrieving revision 1.27 diff -r1.27 cat5rancid.in 793a794,795 > last if (/^Unknown host /); # error when write term all > # is not supported 794a797 > return(0) if ($found_end); 997a1001 > 'write term all' => "WriteTerm", 1012a1017 > "write term all", 1065c1070,1074 < if (!defined($prompt)) {$prompt = ($_ =~ /^([^>]+>)/)[0]; } --- > if (!defined($prompt)) { > $prompt = ($_ =~ /^([^>]+>)/)[0]; > $prompt =~ s/([][}{)(\\])/\\$1/g; > print STDERR ("PROMPT MATCH: $prompt\n") if ($debug); > } From: Terry Kennedy Subject: Re: CatOS "write term all" To: john heasley Cc: rancid-discuss@shrubbery.net Date: Sun, 06 Apr 2003 19:11:45 -0400 (EDT) In-reply-to: "Your message dated Sun, 06 Apr 2003 20:46:55 +0000" <20030406204655.GM8187@shrubbery.net> Message-id: <01KUF29B2QNM000PPS@tmk.com> > another CatOS request ( this>). > > apparently newer CatOS version support an "all" argument to "write > term". would be great if someone could test the following patch. > it works for those which do not support it. for those that do, it > should collect both versions of the command, but only display the > "all" version. The patch works fine and fetches the "all" version - Supervisor III w/ CatOS 6.4(2) crypto image - cat5000-sup3k9.6-4-2.bin. Terry Kennedy http://www.tmk.com terry@tmk.com New York, NY USA From: listuser@numbnuts.net To: john heasley Cc: rancid-discuss@shrubbery.net Subject: Re: Riverstone Router Date: Mon, 7 Apr 2003 12:34:20 -0500 (CDT) In-Reply-To: <20030406202019.GI8187@shrubbery.net> Message-ID: Their router OS's CLI would be quite familar to anyone familar with Cisco's IOS. The verb and noun have been switched to stave off Cisco lawsuit threats for using something similar to their CLI. Other than that it's quite close to the feel of IOS. You won't get anything out of their swtiches though. They are all menu driven. I never have been able to work out and expect script to manipulate it. Their different switch families have different interfaces as well. The ELS/VH line is a far cry different from their 2/5/6/9000 line. The new E1 series is supposed to be different yet. IIRC it has a CLI though. I have numerous firmware releases I can load onto a router for testing too if needed. On Sun, 6 Apr 2003, john heasley wrote: > if they provide a resonably consistent CLI, then it is possible. > > Sun, Apr 06, 2003 at 01:06:07PM -0500, listuser@numbnuts.net: > > I've been planning on writing a module for Enterasys hardware for a while > > now. I started to a while back but got side tracked. I have a plethora > > of goods to try it on. I'm fairly new to rancid though. > > > > Justin > From: "Mr. James W. Laferriere" To: john heasley Cc: Andrew Partan , rancid Subject: Re: When using jlogin with the '-s' option , No further output ?-{ Date: Mon, 7 Apr 2003 20:41:41 -0400 (EDT) In-Reply-To: <20030405060418.GT23538@shrubbery.net> Message-ID: References: <20030402164344.GC5912@shrubbery.net> <20030402171920.GD5912@shrubbery.net> <20030403204119.GB77267@partan.com> <20030405060418.GT23538@shrubbery.net> Hello John , Thank you for the patch . Now here is the second part of the problem . See after my .sig . On Fri, 4 Apr 2003, john heasley wrote: > Fri, Apr 04, 2003 at 12:11:02PM -0500, Mr. James W. Laferriere: > > Oops ... , JimL > > > > On Fri, 4 Apr 2003, Mr. James W. Laferriere wrote: > > > Hello Andrew & John , Attached is a gzipd tarball of the script > > > that at least gets output to a file . Thank you . JimL > > > ps: When I get it debugge & claned up I'll ask that the team look at > > > placing it into the utils/ area . > > > > > On Thu, 3 Apr 2003, Andrew Partan wrote: > > > > On Thu, Apr 03, 2003 at 03:06:54PM -0500, Mr. James W. Laferriere wrote: > > > > > Now that I can at last can get output ot appear someplace do > > > > > you have any thoughts on getting output to stdout ? > > > > Can you send the script? I can give it a shot on one of my junipers > > > > & see if I spot anything. > > > > --asp -- +------------------------------------------------------------------+ | James W. Laferriere | System Techniques | Give me VMS | | Network Engineer | P.O. Box 854 | Give me Linux | | babydr@baby-dragons.com | Coudersport PA 16915 | only on AXP | +------------------------------------------------------------------+ # make the first snapshot of the memory status outside of # the loop , allows us to do a diff on the output ;-) hostname spawn ssh -c 3des -x -l user hostname ***Private Property of Adelphia Business Solutions*** * * * UNAUTHORIZED ACCESS IS PROHIBITED * * violators will be prosecuted * * to the fullest extent of the law * * * ***************************************************** user@hostname's password: --- JUNOS 5.4R3.2 built 2002-11-07 00:57:02 UTC user@hostname> user@hostname> set cli complete-on-space off Disabling complete-on-space user@hostname> set cli screen-length 0 Screen length set to 0 hostname Error: TIMEOUT reached can't read "in_proc": no such variable while executing "if { $in_proc} { return 1 } else { continue }" invoked from within "expect -re $Tprmpt { }" (procedure "cycleTcmd_file" line 24) invoked from within "cycleTcmd_file $Tcmd_file $prompt $Tprmpt" invoked from within "expect -nobrace timeout { # Debugging #send_error "$prompt, timeout\n" send_error "Error: did not receive prompt\n" return 1 } -re {[ ..." invoked from within "expect { timeout { # Debugging #send_error "$prompt, timeout\n" send_error "Error: did not receive prompt\n" return 1 } -re "\[\r\n..." (file "jlogin-s-interact-with-sub-sessions-v1.exp" line 170) invoked from within "source $sfile" ("foreach" body line 64) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" set prompt ">" # Figure out usernam..." (file "/usr/local/rancid/bin/jlogin" line 430) show system users 3:28PM up 2 mins, 1 user, load averages: 0.61, 0.30, 0.12 USER TTY FROM LOGIN@ IDLE WHAT user p0 test-net.122 3:28PM - -cli (cl user@hostname> start shell % Error: TIMEOUT reached can't read "in_proc": no such variable while executing "if { $in_proc} { return 1 } else { continue }" invoked from within "expect -re $Tprmpt { }" (procedure "cycleTcmd_file" line 24) invoked from within "cycleTcmd_file $Tcmd_file $prompt $Tprmpt" invoked from within "expect -nobrace timeout { # Debugging #send_error "$prompt, timeout\n" send_error "Error: did not receive prompt\n" return 1 } -re {[ ..." invoked from within "expect { timeout { # Debugging #send_error "$prompt, timeout\n" send_error "Error: did not receive prompt\n" return 1 } -re "\[\r\n..." (file "jlogin-s-interact-with-sub-sessions-v1.exp" line 170) invoked from within "source $sfile" ("foreach" body line 64) invoked from within "foreach router [lrange $argv $i end] { set router [string tolower $router] send_user "$router\n" set prompt ">" # Figure out usernam..." (file "/usr/local/rancid/bin/jlogin" line 430) From: john heasley To: "Mr. James W. Laferriere" Cc: rancid Subject: Re: When using jlogin with the '-s' option , No further output ?-{ Date: Tue, 8 Apr 2003 03:18:11 -0700 Message-ID: <20030408101811.GF28367@shrubbery.net> References: <20030402164344.GC5912@shrubbery.net> <20030402171920.GD5912@shrubbery.net> <20030403204119.GB77267@partan.com> <20030405060418.GT23538@shrubbery.net> Mon, Apr 07, 2003 at 08:41:41PM -0400, Mr. James W. Laferriere: > Hello John , Thank you for the patch . Now here is the second > part of the problem . See after my .sig . > > # make the first snapshot of the memory status outside of > # the loop , allows us to do a diff on the output ;-) > > hostname > spawn ssh -c 3des -x -l user hostname > > ***Private Property of Adelphia Business Solutions*** > * * > * UNAUTHORIZED ACCESS IS PROHIBITED * > * violators will be prosecuted * > * to the fullest extent of the law * > * * > ***************************************************** > user@hostname's password: > --- JUNOS 5.4R3.2 built 2002-11-07 00:57:02 UTC > > user@hostname> > > user@hostname> set cli complete-on-space off > Disabling complete-on-space > > user@hostname> set cli screen-length 0 > Screen length set to 0 > > hostname > > Error: TIMEOUT reached > can't read "in_proc": no such variable > while executing > "if { $in_proc} { see expect_after() (expect(1)). you're inheriting the one from proc login(). From: "Mr. James W. Laferriere" To: john heasley Cc: rancid Subject: Re: When using jlogin with the '-s' option , No further output ?-{ Date: Wed, 9 Apr 2003 12:03:41 -0400 (EDT) In-Reply-To: <20030408101811.GF28367@shrubbery.net> Message-ID: References: <20030402164344.GC5912@shrubbery.net> <20030402171920.GD5912@shrubbery.net> <20030403204119.GB77267@partan.com> <20030405060418.GT23538@shrubbery.net> <20030408101811.GF28367@shrubbery.net> Hello John , On Tue, 8 Apr 2003, john heasley wrote: > Mon, Apr 07, 2003 at 08:41:41PM -0400, Mr. James W. Laferriere: > > Hello John , Thank you for the patch . Now here is the second > > part of the problem . See after my .sig . > > ... snip > see expect_after() (expect(1)). you're inheriting the one from > proc login(). From the output I have the jlogin script itself is not completing thru to login when I issue the -s option from inside a sh script . But , from the cmd line it will complete . Do you have a URL that describes expect_after's use ? I have found the instance in the 'jlogin' But , We should at least be getting logged into the router -before- I run into the expect_after being inherited into my script . Right ? Tia , JimL -- +------------------------------------------------------------------+ | James W. Laferriere | System Techniques | Give me VMS | | Network Engineer | P.O. Box 854 | Give me Linux | | babydr@baby-dragons.com | Coudersport PA 16915 | only on AXP | +------------------------------------------------------------------+ From: "Mr. James W. Laferriere" To: john heasley Cc: rancid Subject: Re: When using jlogin with the '-s' option , No further output ?-{ Date: Wed, 9 Apr 2003 15:12:13 -0400 (EDT) In-Reply-To: Message-ID: References: <20030402164344.GC5912@shrubbery.net> <20030402171920.GD5912@shrubbery.net> <20030403204119.GB77267@partan.com> <20030405060418.GT23538@shrubbery.net> <20030408101811.GF28367@shrubbery.net> Hello John , All , Never mind . Being blind(figuratively) has its draw backs . The script I had created was using the incorrect secondary prompt string . Tnx all for the help . JimL On Wed, 9 Apr 2003, Mr. James W. Laferriere wrote: > Hello John , > On Tue, 8 Apr 2003, john heasley wrote: > > Mon, Apr 07, 2003 at 08:41:41PM -0400, Mr. James W. Laferriere: > > > Hello John , Thank you for the patch . Now here is the second > > > part of the problem . See after my .sig . > > > ... snip > > see expect_after() (expect(1)). you're inheriting the one from > > proc login(). > From the output I have the jlogin script itself is not completing > thru to login when I issue the -s option from inside a sh script . > But , from the cmd line it will complete . > > Do you have a URL that describes expect_after's use ? > I have found the instance in the 'jlogin' But , We should at > least be getting logged into the router -before- I run into the > expect_after being inherited into my script . Right ? > Tia , JimL > -- +------------------------------------------------------------------+ | James W. Laferriere | System Techniques | Give me VMS | | Network Engineer | P.O. Box 854 | Give me Linux | | babydr@baby-dragons.com | Coudersport PA 16915 | only on AXP | +------------------------------------------------------------------+ From: "SEGUIN, RONALD" To: rancid-discuss@shrubbery.net Subject: a couple RANCID processes hanging..... Message-ID: <3E9DB8B4.3661E287@bell.ca> Date: Wed, 16 Apr 2003 16:10:28 -0400 --------------580590F8C607A41925F203D9 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Just recently I'm having the following processes hang....I then have to kill them manually.... 32187 ? S 0:00 /bin/sh /apps/rancid/bin/do-diffs 32191 ? S 0:00 /bin/sh /apps/rancid/bin/control_rancid distribution Has anyone else encountered this, if so what was done to rectify...... --thanks -- ____________________________________ Ron Seguin Bell Canada Tel: 613.781.2555 --------------580590F8C607A41925F203D9 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Just recently I'm having the following processes hang....I then have to kill them manually....

32187 ?        S      0:00 /bin/sh /apps/rancid/bin/do-diffs
32191 ?        S      0:00 /bin/sh /apps/rancid/bin/control_rancid distribution

Has anyone else encountered this, if so what was done to rectify......

--thanks
--
____________________________________
Ron Seguin               Bell Canada
Tel: 613.781.2555
  --------------580590F8C607A41925F203D9-- From: john heasley To: "SEGUIN, RONALD" Cc: rancid-discuss@shrubbery.net Subject: Re: a couple RANCID processes hanging..... Date: Wed, 16 Apr 2003 15:21:37 -0700 Message-ID: <20030416222137.GQ11070@shrubbery.net> References: <3E9DB8B4.3661E287@bell.ca> In-Reply-To: <3E9DB8B4.3661E287@bell.ca> Wed, Apr 16, 2003 at 04:10:28PM -0400, SEGUIN, RONALD: > Just recently I'm having the following processes hang....I then have to kill them manually.... > > 32187 ? S 0:00 /bin/sh /apps/rancid/bin/do-diffs > 32191 ? S 0:00 /bin/sh /apps/rancid/bin/control_rancid distribution > > Has anyone else encountered this, if so what was done to rectify...... > > --thanks > -- > ____________________________________ > Ron Seguin Bell Canada > Tel: 613.781.2555 most likely you have expect processes lingering that are connected with this control_rancid. the actual problem could be a number of things. if using linux, see the expect patch on www.shrubbery.net/rancid. else, try following trail of child processes from the control_rancid. its probably expect. From: "SEGUIN, RONALD" To: "Rizzo, Joe" , rancid-discuss@shrubbery.net Subject: Re: a couple RANCID processes hanging..... Date: Wed, 16 Apr 2003 18:18:10 -0400 Message-ID: <3E9DD6A2.35C98300@bell.ca> X-Accept-Language: en References: <194487E5B6AC1E4E82FCBD56E57997910228251B@eahq-mb3.rws.ad.ea.com> --------------8A5C935B068DD9B066E71DD7 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit No telnet processes....but I also noticed I have the following RANCID process running as well.... 28739 ? S 0:00 cvs commit -m updates "Rizzo, Joe" wrote: > Are there also telnet processes hanging? > > -----Original Message----- > From: SEGUIN, RONALD [mailto:ronald.seguin@bell.ca] > Sent: Wednesday, April 16, 2003 3:10 PM > To: rancid-discuss@shrubbery.net > Subject: a couple RANCID processes hanging..... > > Just recently I'm having the following processes hang....I then have to kill them manually.... > > 32187 ? S 0:00 /bin/sh /apps/rancid/bin/do-diffs > 32191 ? S 0:00 /bin/sh /apps/rancid/bin/control_rancid distribution > > Has anyone else encountered this, if so what was done to rectify...... > > --thanks > -- > ____________________________________ > Ron Seguin Bell Canada > Tel: 613.781.2555 > -- ____________________________________ Ron Seguin Bell Canada Tel: 613.781.2555 From: john heasley To: "SEGUIN, RONALD" Cc: "Rizzo, Joe" , rancid-discuss@shrubbery.net Subject: Re: a couple RANCID processes hanging..... Date: Wed, 16 Apr 2003 15:37:06 -0700 Message-ID: <20030416223706.GV11070@shrubbery.net> References: <194487E5B6AC1E4E82FCBD56E57997910228251B@eahq-mb3.rws.ad.ea.com> <3E9DD6A2.35C98300@bell.ca> Wed, Apr 16, 2003 at 06:18:10PM -0400, SEGUIN, RONALD: > No telnet processes....but I also noticed I have the following RANCID process > running as well.... > > 28739 ? S 0:00 cvs commit -m updates that's one i've never seen before! my guess would be that you ended up with a stale lock in the cvs repository and it's waiting for the lock to be freed. see the cvs manpage for info on it's lock files. the other possibility is that it's waiting for input of some kind (which i doubt), but you should be able to kill that process and it's output should appear in that rancid group's log file. > "Rizzo, Joe" wrote: > > > Are there also telnet processes hanging? > > > > -----Original Message----- > > From: SEGUIN, RONALD [mailto:ronald.seguin@bell.ca] > > Sent: Wednesday, April 16, 2003 3:10 PM > > To: rancid-discuss@shrubbery.net > > Subject: a couple RANCID processes hanging..... > > > > Just recently I'm having the following processes hang....I then have to kill them manually.... > > > > 32187 ? S 0:00 /bin/sh /apps/rancid/bin/do-diffs > > 32191 ? S 0:00 /bin/sh /apps/rancid/bin/control_rancid distribution > > > > Has anyone else encountered this, if so what was done to rectify...... > > > > --thanks > > -- > > ____________________________________ > > Ron Seguin Bell Canada > > Tel: 613.781.2555 > > > -- > ____________________________________ > Ron Seguin Bell Canada > Tel: 613.781.2555 > From: "SEGUIN, RONALD" To: rancid-discuss@shrubbery.net Subject: Re: a couple RANCID processes hanging..... Date: Tue, 22 Apr 2003 14:04:51 -0400 Message-ID: <3EA58443.5A7F0BC@bell.ca> References: <194487E5B6AC1E4E82FCBD56E57997910228251B@eahq-mb3.rws.ad.ea.com> <3E9DD6A2.35C98300@bell.ca> <20030416223706.GV11070@shrubbery.net> --------------7C034666595A601B9489A0C1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I've deleted the following file dated Apr 6 within one of my CVS directories...will find out during tomorrow's run if it fixed my problem... -rw-r----- 1 rancid root 0 Apr 6 22:30 #cvs.rfl.kramer.28342 john heasley wrote: > Wed, Apr 16, 2003 at 06:18:10PM -0400, SEGUIN, RONALD: > > No telnet processes....but I also noticed I have the following RANCID process > > running as well.... > > > > 28739 ? S 0:00 cvs commit -m updates > > that's one i've never seen before! my guess would be that you ended up > with a stale lock in the cvs repository and it's waiting for the lock > to be freed. see the cvs manpage for info on it's lock files. > > the other possibility is that it's waiting for input of some kind (which > i doubt), but you should be able to kill that process and it's output > should appear in that rancid group's log file. > > > "Rizzo, Joe" wrote: > > > > > Are there also telnet processes hanging? > > > > > > -----Original Message----- > > > From: SEGUIN, RONALD [mailto:ronald.seguin@bell.ca] > > > Sent: Wednesday, April 16, 2003 3:10 PM > > > To: rancid-discuss@shrubbery.net > > > Subject: a couple RANCID processes hanging..... > > > > > > Just recently I'm having the following processes hang....I then have to kill them manually.... > > > > > > 32187 ? S 0:00 /bin/sh /apps/rancid/bin/do-diffs > > > 32191 ? S 0:00 /bin/sh /apps/rancid/bin/control_rancid distribution > > > > > > Has anyone else encountered this, if so what was done to rectify...... > > > > > > --thanks > > > -- > > > ____________________________________ > > > Ron Seguin Bell Canada > > > Tel: 613.781.2555 > > > > > -- > > ____________________________________ > > Ron Seguin Bell Canada > > Tel: 613.781.2555 > > -- ____________________________________ Ron Seguin Bell Canada Tel: 613.781.2555 From: "Brian Apley" To: Subject: Ignoring IP-Host DIFF in Cisco configs Date: Wed, 30 Apr 2003 13:32:42 -0400 Message-ID: <029b01c30f3e$81148320$0a00a8c0@brianhome> Hello all- new to the group and rancid, like what I see so far. It seems like a new "feature" (or maybe it's been there forever and I haven't noticed it) of IOS is that it puts the most-recently used IP host entry at the top of the host list. This of course causes the DIFF to be triggered, and with rancid, for the version number to increment. Is there anyway to filter this out of rancid's diff? (understanding that it can be filtered from the mail update, but I'd like to not see the version number increment every time someone uses a host name). Is there a way to turn this off in IOS? I searched the mail archive for an answer, to no avail. Any insight is greatly appreciated. Brian Apley CCIE #7599 From: Andrew Partan To: Brian Apley Cc: rancid-discuss@shrubbery.net Subject: Re: Ignoring IP-Host DIFF in Cisco configs Date: Wed, 30 Apr 2003 13:36:23 -0400 Message-ID: <20030430173623.GA3582@partan.com> References: <029b01c30f3e$81148320$0a00a8c0@brianhome> On Wed, Apr 30, 2003 at 01:32:42PM -0400, Brian Apley wrote: > It seems like a new "feature" (or maybe it's been there forever and I > haven't noticed it) of IOS is that it puts the most-recently used IP host > entry at the top of the host list. This of course causes the DIFF to be > triggered, and with rancid, for the version number to increment. Example of what you are talking about? Its easy to sort stuff but you kinda have to know the sytax of the statement first. --asp From: "Brian Apley" To: "Andrew Partan" Cc: Subject: Re: Ignoring IP-Host DIFF in Cisco configs Date: Wed, 30 Apr 2003 13:46:54 -0400 Message-ID: <02a901c30f40$7d244b40$0a00a8c0@brianhome> References: <029b01c30f3e$81148320$0a00a8c0@brianhome> <20030430173623.GA3582@partan.com> Sure- example- within the cisco config, we have a series of ip host commands, i.e.- ip host a2e 10.5.1.17 ip host a1e 10.5.1.18 ip host nsp 10.6.1.15 Believe it or not (and I wasn't aware IOS did this), but the order that these commands appear in the config changes based on what host was used last. So, if I used the nsp hostname from the CLI (by typing "nsp" or "telnet nsp"), the config would then look like- ip host nsp 10.6.1.15 ip host a2e 10.5.1.17 ip host a1e 10.5.1.18 This of course represents a DIFF. What I'm looking for is a way to ignore these types of DIFFs- not only for the mailer broadcast, but ignore them completely, so that the version number doesn't get incremented. Thanks again. ----- Original Message ----- From: "Andrew Partan" To: "Brian Apley" Cc: Sent: Wednesday, April 30, 2003 1:36 PM Subject: Re: Ignoring IP-Host DIFF in Cisco configs > On Wed, Apr 30, 2003 at 01:32:42PM -0400, Brian Apley wrote: > > It seems like a new "feature" (or maybe it's been there forever and I > > haven't noticed it) of IOS is that it puts the most-recently used IP host > > entry at the top of the host list. This of course causes the DIFF to be > > triggered, and with rancid, for the version number to increment. > > Example of what you are talking about? > Its easy to sort stuff but you kinda have to know the sytax of the > statement first. > --asp From: Andrew Partan To: Brian Apley Cc: rancid-discuss@shrubbery.net Subject: Re: Ignoring IP-Host DIFF in Cisco configs Date: Wed, 30 Apr 2003 13:55:40 -0400 Message-ID: <20030430175540.GA6701@partan.com> References: <029b01c30f3e$81148320$0a00a8c0@brianhome> <20030430173623.GA3582@partan.com> <02a901c30f40$7d244b40$0a00a8c0@brianhome> On Wed, Apr 30, 2003 at 01:46:54PM -0400, Brian Apley wrote: > ip host a2e 10.5.1.17 > ip host a1e 10.5.1.18 > ip host nsp 10.6.1.15 There is some stuff in rancid to order "ip host line\d+" commands, but it looks like this ip host stuff is more than just the line\d+ stuff, so try this patch & let me know if it works. --asp Index: rancid.in =================================================================== RCS file: /home/rancid/.CVS/rancid/bin/rancid.in,v retrieving revision 1.136 diff -u -r1.136 rancid.in --- rancid.in 28 Apr 2003 06:09:12 -0000 1.136 +++ rancid.in 30 Apr 2003 17:53:19 -0000 @@ -1239,9 +1239,9 @@ ProcessHistory("NTP","keysort",$sortkey,"$_"); next; } - # order ip host line statements - /^ip host line(\d+)/ && - ProcessHistory("IPHOST","numsort","$1","$_") && next; + # order ip host statements + /^ip host (\S+) / && + ProcessHistory("IPHOST","keysort","$1","$_") && next; # order ip nat source static statements /^ip nat (\S+) source static (\S+)/ && ProcessHistory("IP NAT $1","ipsort","$2","$_") && next; From: "Brian Apley" To: "Andrew Partan" Cc: Subject: Re: Ignoring IP-Host DIFF in Cisco configs Date: Wed, 30 Apr 2003 14:33:48 -0400 Message-ID: <02c801c30f47$0a562be0$0a00a8c0@brianhome> References: <029b01c30f3e$81148320$0a00a8c0@brianhome> <20030430173623.GA3582@partan.com> <02a901c30f40$7d244b40$0a00a8c0@brianhome> <20030430175540.GA6701@partan.com> That did the trick- thanks much, appreciate the quick response! ----- Original Message ----- From: "Andrew Partan" To: "Brian Apley" Cc: Sent: Wednesday, April 30, 2003 1:55 PM Subject: Re: Ignoring IP-Host DIFF in Cisco configs > On Wed, Apr 30, 2003 at 01:46:54PM -0400, Brian Apley wrote: > > ip host a2e 10.5.1.17 > > ip host a1e 10.5.1.18 > > ip host nsp 10.6.1.15 > > There is some stuff in rancid to order "ip host line\d+" commands, > but it looks like this ip host stuff is more than just the line\d+ > stuff, so try this patch & let me know if it works. > --asp > > Index: rancid.in > =================================================================== > RCS file: /home/rancid/.CVS/rancid/bin/rancid.in,v > retrieving revision 1.136 > diff -u -r1.136 rancid.in > --- rancid.in 28 Apr 2003 06:09:12 -0000 1.136 > +++ rancid.in 30 Apr 2003 17:53:19 -0000 > @@ -1239,9 +1239,9 @@ > ProcessHistory("NTP","keysort",$sortkey,"$_"); > next; > } > - # order ip host line statements > - /^ip host line(\d+)/ && > - ProcessHistory("IPHOST","numsort","$1","$_") && next; > + # order ip host statements > + /^ip host (\S+) / && > + ProcessHistory("IPHOST","keysort","$1","$_") && next; > # order ip nat source static statements > /^ip nat (\S+) source static (\S+)/ && > ProcessHistory("IP NAT $1","ipsort","$2","$_") && next;