From owner-rancid-discuss@shrubbery.net Thu Dec 5 23:24:41 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gB5NOf112463 for ; Thu, 5 Dec 2002 23:24:41 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gB5NJQx06964 for rancid-discuss-outgoing; Thu, 5 Dec 2002 23:19:26 GMT Received: from outbound.ea.com (outbound.ea.com [159.153.6.6]) by guelah.shrubbery.net (8.11.6/8.11.1) with ESMTP id gB5NJMK06960 for ; Thu, 5 Dec 2002 23:19:22 GMT Received: from eahq-bh1.rws.ad.ea.com (eahq-bh1.rws.ad.ea.com [10.14.204.31]) by outbound.ea.com (Switch-2.2.4/Switch-2.2.4) with ESMTP id gB5NJN604400 for ; Thu, 5 Dec 2002 15:19:23 -0800 (PST) Received: from eahq-mb3.rws.ad.ea.com ([10.14.204.120]) by eahq-bh1.rws.ad.ea.com with Microsoft SMTPSVC(5.0.2195.5329); Thu, 5 Dec 2002 15:19:19 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Subject: clogin and config mode Date: Thu, 5 Dec 2002 15:19:18 -0800 Message-ID: <194487E5B6AC1E4E82FCBD56E5799791BC65F5@eahq-mb3.rws.ad.ea.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: clogin and config mode Thread-Index: AcKctLxbUwQf1irmTSqGGgaFmZG+iw== From: "Rizzo, Joe" To: X-OriginalArrivalTime: 05 Dec 2002 23:19:19.0289 (UTC) FILETIME=[BCA6CE90:01C29CB4] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by guelah.shrubbery.net id gB5NJNK06961 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk When using the -c or -x options of clogin to script config changes, I am unable to enter config mode and enter commands. I have tried on a variety of Cisco models and IOS versions with no luck. Has anyone else seen this? Thanks, Joe Example: $clogin -c "conf t; exit" router router spawn telnet router Connected to router. Escape character is '^]'. User Access Verification Password: router>enable Password: router# router#term length 0 router#conf t Enter configuration commands, one per line. End with CNTL/Z. *** Here is where it hangs *** From owner-rancid-discuss@shrubbery.net Thu Dec 5 23:52:56 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gB5Nqu113568 for ; Thu, 5 Dec 2002 23:52:56 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gB5NqFA07229 for rancid-discuss-outgoing; Thu, 5 Dec 2002 23:52:15 GMT Received: from tower.partan.com (tower.partan.com [198.6.255.248]) by guelah.shrubbery.net (8.11.6/8.11.1) with ESMTP id gB5NqCK07223 for ; Thu, 5 Dec 2002 23:52:12 GMT Received: from tower.partan.com (localhost.partan.com [127.0.0.1]) by tower.partan.com (8.12.3/8.12.3) with ESMTP id gB5Nq3W9001791; Thu, 5 Dec 2002 18:52:03 -0500 (EST) (envelope-from asp@tower.partan.com) Received: (from asp@localhost) by tower.partan.com (8.12.3/8.12.3/Submit) id gB5Nq2x5001786; Thu, 5 Dec 2002 18:52:02 -0500 (EST) (envelope-from asp) Date: Thu, 5 Dec 2002 18:52:02 -0500 From: Andrew Partan To: "Rizzo, Joe" Cc: rancid-discuss@shrubbery.net Subject: Re: clogin and config mode Message-ID: <20021205235202.GA98823@partan.com> References: <194487E5B6AC1E4E82FCBD56E5799791BC65F5@eahq-mb3.rws.ad.ea.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <194487E5B6AC1E4E82FCBD56E5799791BC65F5@eahq-mb3.rws.ad.ea.com> User-Agent: Mutt/1.4i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On Thu, Dec 05, 2002 at 03:19:18PM -0800, Rizzo, Joe wrote: > When using the -c or -x options of clogin to script config changes, I am > unable to enter config mode and enter commands. I have tried on a > variety of Cisco models and IOS versions with no luck. Prompt recognition. $prompt is probably set to 'router#' - which does not match the prompt in config mode - router(config)# You want to do something like: clogin -c "conf t\rip name-server 198.6.255.248\rend;write" router - basically glom all of the config commands together with \r between them until you get all the way out of config mode. Or set up a per router tftp/rcp// file on your server and use something like util/cisco-load.exp to load it. --asp From owner-rancid-discuss@shrubbery.net Mon Dec 23 20:59:35 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBNKxZB07445 for ; Mon, 23 Dec 2002 20:59:35 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBNKsqp08260 for rancid-discuss-outgoing; Mon, 23 Dec 2002 20:54:53 GMT Received: from mailhost2.reliant.com (201.reliant.com [158.81.251.201]) by guelah.shrubbery.net (8.11.6/8.11.1) with ESMTP id gBNKsmQ08256 for ; Mon, 23 Dec 2002 20:54:49 GMT Received: from rriexcon01.services.reinternal.com (mailhost.noram.com [10.51.107.25]) by mailhost2.reliant.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id gBNKsRD15682 for ; Mon, 23 Dec 2002 14:54:27 -0600 (CST) Received: from RRIEXMB10.services.reinternal.com ([10.48.110.95]) by rriexcon01.services.reinternal.com with Microsoft SMTPSVC(5.0.2195.5329); Mon, 23 Dec 2002 14:58:26 -0600 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: rancid hangs due to expect, ssh, or cisco? Date: Mon, 23 Dec 2002 14:58:26 -0600 Message-ID: <4542F75EC5DC2E44AA0B648E20D00E3504C6EC@rriexmb10.services.reinternal.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: rancid hangs due to expect, ssh, or cisco? Thread-Index: AcKqxgncD+5+sv/SRDmMio5Vfeuz5Q== From: "Zhang, Anchi" To: X-OriginalArrivalTime: 23 Dec 2002 20:58:26.0667 (UTC) FILETIME=[09EE8BB0:01C2AAC6] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by guelah.shrubbery.net id gBNKsoQ08257 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk SunOS netadmin 5.8 Generic_108528-07 sun4u sparc SUNW,UltraSPARC-IIi-cEngine rancid-2.2.2, expect-5.38, tcl-8.4.1, tk-8.4.1 openssh-3.4p1 Rancid over telnet runs well. Rancid over ssh hangs, clogin -c "show run" hangs, clogin and then "show run" at the enable prompt also hangs. Below is the tail portion of clogin -c "show run" ecdc2ibgp with expect -d. Pointers will be appreciated. expect: does "ntp server 158.81.250.130\r\nend\r\n\r\necdc2ibgp#Received disconnect from 158.81.248.251: Time-out activated\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*ecdc2ibgp(\([^\r\n]+\))?#"? no "^[^\n\r]*ecdc2ibgp(\([^\r\n]+\))?#."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "ntp server 158.81.250.130\r\n" ntp server 158.81.250.130 expect: continuing expect expect: does "end\r\n\r\necdc2ibgp#Received disconnect from 158.81.248.251: Time-out activated\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*ecdc2ibgp(\([^\r\n]+\))?#"? no "^[^\n\r]*ecdc2ibgp(\([^\r\n]+\))?#."? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r\n\r\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "end\r\n\r\n" end expect: continuing expect expect: does "ecdc2ibgp#Received disconnect from 158.81.248.251: Time-out activated\r\n" (spawn_id exp4) match regular expression "\u0008+"? no "^[^\n\r *]*ecdc2ibgp(\([^\r\n]+\))?#"? yes expect: set expect_out(0,string) "ecdc2ibgp#" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "ecdc2ibgp#" ecdc2ibgp#send: sending "exit\r" to { exp4 } expect: does "Received disconnect from 158.81.248.251: Time-out activated\r\n" (spawn_id exp4) match glob pattern "Do you wish to save your configuration changes"? no "\n"? yes expect: set expect_out(0,string) "\n" expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "Received disconnect from 158.81.248.251: Time-out activated\r\n" expect: continuing expect expect: does "" (spawn_id exp4) match glob pattern "Do you wish to save your configuration changes"? no "\n"? no expect: read eof expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "" From owner-rancid-discuss@shrubbery.net Mon Dec 23 22:40:32 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBNMeWB10883 for ; Mon, 23 Dec 2002 22:40:32 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBNMdZU08818 for rancid-discuss-outgoing; Mon, 23 Dec 2002 22:39:35 GMT Received: (from heas@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBNMdT308813; Mon, 23 Dec 2002 22:39:29 GMT Date: Mon, 23 Dec 2002 14:39:28 -0800 From: john heasley To: "Zhang, Anchi" Cc: rancid-discuss@shrubbery.net Subject: Re: rancid hangs due to expect, ssh, or cisco? Message-ID: <20021223143928.H29493@shrubbery.net> References: <4542F75EC5DC2E44AA0B648E20D00E3504C6EC@rriexmb10.services.reinternal.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <4542F75EC5DC2E44AA0B648E20D00E3504C6EC@rriexmb10.services.reinternal.com>; from AZhang@reliant.com on Mon, Dec 23, 2002 at 02:58:26PM -0600 X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk are you saying that after the last line of the debug output below, you do not receive a shell prompt? or, are you referring to the 'time-out activated' that appears in the output? if the latter, i suspect it is the cisco that is disconnecting and the fix would be to increase your vty session and/or exec timeouts. the cisco does not reset it's timer on output, only input. it is conceivable that it could take long enough to generate and display the configuration to activate the timer. if the former, maybe the expect_before is not remaining active. i would have to research that, since it works here (sparc, netbsd, exp 5.33, tcl 8.3.2). Mon, Dec 23, 2002 at 02:58:26PM -0600, Zhang, Anchi: > SunOS netadmin 5.8 Generic_108528-07 sun4u sparc SUNW,UltraSPARC-IIi-cEngine > rancid-2.2.2, expect-5.38, tcl-8.4.1, tk-8.4.1 > openssh-3.4p1 > > Rancid over telnet runs well. > > Rancid over ssh hangs, clogin -c "show run" hangs, clogin and then "show run" at the enable prompt also hangs. Below is the tail portion of clogin -c "show run" ecdc2ibgp with expect -d. Pointers will be appreciated. > > expect: does "ntp server 158.81.250.130\r\nend\r\n\r\necdc2ibgp#Received disconnect from 158.81.248.251: Time-out activated\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*ecdc2ibgp(\([^\r\n]+\))?#"? no > "^[^\n\r]*ecdc2ibgp(\([^\r\n]+\))?#."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "ntp server 158.81.250.130\r\n" > ntp server 158.81.250.130 > expect: continuing expect > > expect: does "end\r\n\r\necdc2ibgp#Received disconnect from 158.81.248.251: Time-out activated\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*ecdc2ibgp(\([^\r\n]+\))?#"? no > "^[^\n\r]*ecdc2ibgp(\([^\r\n]+\))?#."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "end\r\n\r\n" > end > > expect: continuing expect > > expect: does "ecdc2ibgp#Received disconnect from 158.81.248.251: Time-out activated\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*ecdc2ibgp(\([^\r\n]+\))?#"? yes > expect: set expect_out(0,string) "ecdc2ibgp#" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "ecdc2ibgp#" > ecdc2ibgp#send: sending "exit\r" to { exp4 } > > expect: does "Received disconnect from 158.81.248.251: Time-out activated\r\n" (spawn_id exp4) match glob pattern "Do you wish to save your configuration changes"? no > "\n"? yes > expect: set expect_out(0,string) "\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "Received disconnect from 158.81.248.251: Time-out activated\r\n" > expect: continuing expect > > expect: does "" (spawn_id exp4) match glob pattern "Do you wish to save your configuration changes"? no > "\n"? no > expect: read eof > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "" From owner-rancid-discuss@shrubbery.net Mon Dec 23 22:56:56 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBNMuuB11948 for ; Mon, 23 Dec 2002 22:56:56 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBNMufW08979 for rancid-discuss-outgoing; Mon, 23 Dec 2002 22:56:41 GMT Received: from mailhost1.reliant.com (201.reliant.com [158.81.251.201]) by guelah.shrubbery.net (8.11.6/8.11.1) with ESMTP id gBNMubQ08971; Mon, 23 Dec 2002 22:56:37 GMT Received: from rriexcon01.services.reinternal.com (mailhost.noram.com [10.51.107.25]) by mailhost1.reliant.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id gBNMuUm14952; Mon, 23 Dec 2002 16:56:30 -0600 (CST) Received: from RRIEXMB10.services.reinternal.com ([10.48.110.95]) by rriexcon01.services.reinternal.com with Microsoft SMTPSVC(5.0.2195.5329); Mon, 23 Dec 2002 17:00:30 -0600 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: RE: rancid hangs due to expect, ssh, or cisco? Date: Mon, 23 Dec 2002 17:00:29 -0600 Message-ID: <4542F75EC5DC2E44AA0B648E20D00E3504C6EE@rriexmb10.services.reinternal.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: rancid hangs due to expect, ssh, or cisco? Thread-Index: AcKq1Lk/Q4X4NsIeSQaMSvF5f2foiQAAIY1Q From: "Zhang, Anchi" To: "john heasley" Cc: X-OriginalArrivalTime: 23 Dec 2002 23:00:30.0010 (UTC) FILETIME=[16FC01A0:01C2AAD7] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by guelah.shrubbery.net id gBNMubQ08972 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk I do get the shell prompt back right after the last line of the debug but it takes a long time to get there. Rancid over ssh does work with some of my routers but not all. For example, it had worked with one router until I added a few more lines to its existing ACL. The strange thing is that if I login using clogin and issue "show run" at the router's command prompt, the display will be fine. However, if I do "term len 0" and then "show run" the display hangs when it gets close to the very end of the config. Anchi -----Original Message----- From: john heasley [mailto:heas@shrubbery.net] Sent: Monday, December 23, 2002 4:39 PM To: Zhang, Anchi Cc: rancid-discuss@shrubbery.net Subject: Re: rancid hangs due to expect, ssh, or cisco? are you saying that after the last line of the debug output below, you do not receive a shell prompt? or, are you referring to the 'time-out activated' that appears in the output? if the latter, i suspect it is the cisco that is disconnecting and the fix would be to increase your vty session and/or exec timeouts. the cisco does not reset it's timer on output, only input. it is conceivable that it could take long enough to generate and display the configuration to activate the timer. if the former, maybe the expect_before is not remaining active. i would have to research that, since it works here (sparc, netbsd, exp 5.33, tcl 8.3.2). Mon, Dec 23, 2002 at 02:58:26PM -0600, Zhang, Anchi: > SunOS netadmin 5.8 Generic_108528-07 sun4u sparc SUNW,UltraSPARC-IIi-cEngine > rancid-2.2.2, expect-5.38, tcl-8.4.1, tk-8.4.1 > openssh-3.4p1 > > Rancid over telnet runs well. > > Rancid over ssh hangs, clogin -c "show run" hangs, clogin and then "show run" at the enable prompt also hangs. Below is the tail portion of clogin -c "show run" ecdc2ibgp with expect -d. Pointers will be appreciated. > > expect: does "ntp server 158.81.250.130\r\nend\r\n\r\necdc2ibgp#Received disconnect from 158.81.248.251: Time-out activated\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*ecdc2ibgp(\([^\r\n]+\))?#"? no > "^[^\n\r]*ecdc2ibgp(\([^\r\n]+\))?#."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "ntp server 158.81.250.130\r\n" > ntp server 158.81.250.130 > expect: continuing expect > > expect: does "end\r\n\r\necdc2ibgp#Received disconnect from 158.81.248.251: Time-out activated\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*ecdc2ibgp(\([^\r\n]+\))?#"? no > "^[^\n\r]*ecdc2ibgp(\([^\r\n]+\))?#."? no > "[\n\r]+"? yes > expect: set expect_out(0,string) "\r\n\r\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "end\r\n\r\n" > end > > expect: continuing expect > > expect: does "ecdc2ibgp#Received disconnect from 158.81.248.251: Time-out activated\r\n" (spawn_id exp4) match regular expression "\u0008+"? no > "^[^\n\r *]*ecdc2ibgp(\([^\r\n]+\))?#"? yes > expect: set expect_out(0,string) "ecdc2ibgp#" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "ecdc2ibgp#" > ecdc2ibgp#send: sending "exit\r" to { exp4 } > > expect: does "Received disconnect from 158.81.248.251: Time-out activated\r\n" (spawn_id exp4) match glob pattern "Do you wish to save your configuration changes"? no > "\n"? yes > expect: set expect_out(0,string) "\n" > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "Received disconnect from 158.81.248.251: Time-out activated\r\n" > expect: continuing expect > > expect: does "" (spawn_id exp4) match glob pattern "Do you wish to save your configuration changes"? no > "\n"? no > expect: read eof > expect: set expect_out(spawn_id) "exp4" > expect: set expect_out(buffer) "" From owner-rancid-discuss@shrubbery.net Mon Dec 23 23:16:39 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBNNGcB12283 for ; Mon, 23 Dec 2002 23:16:38 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBNNG0D09100 for rancid-discuss-outgoing; Mon, 23 Dec 2002 23:16:00 GMT Received: (from heas@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBNNFsv09093; Mon, 23 Dec 2002 23:15:54 GMT Date: Mon, 23 Dec 2002 15:15:54 -0800 From: john heasley To: "Zhang, Anchi" Cc: rancid-discuss@shrubbery.net Subject: Re: rancid hangs due to expect, ssh, or cisco? Message-ID: <20021223151554.N29493@shrubbery.net> References: <4542F75EC5DC2E44AA0B648E20D00E3504C6EE@rriexmb10.services.reinternal.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <4542F75EC5DC2E44AA0B648E20D00E3504C6EE@rriexmb10.services.reinternal.com>; from AZhang@reliant.com on Mon, Dec 23, 2002 at 05:00:29PM -0600 X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Mon, Dec 23, 2002 at 05:00:29PM -0600, Zhang, Anchi: > I do get the shell prompt back right after the last line of the debug but it takes a long time to get there. about 45 seconds? that is the timeout period. but, in the debug output you sent, it should have immediately returned since it matched the prompt and then EOF. however, if the output hung prior to receiving the prompt (when we are not expecting EOF), then it will wait for the timeout period. > Rancid over ssh does work with some of my routers but not all. For example, it had worked with one router until I added a few more lines to its existing ACL. can you share the lines that were added? > The strange thing is that if I login using clogin and issue "show run" at the router's command prompt, the display will be fine. However, if I do "term len 0" and then "show run" the display hangs when it gets close to the very end of the config. when clogin is used, clogin takes care of the login process and then uses interact. this should in essence (fingers crossed) connect your terminal directly to the pty until EOF. thus i suspect this is a cisco bug. try telnet (or ssh) without clogin. From owner-rancid-discuss@shrubbery.net Thu Dec 26 16:34:59 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBQGYxS05056 for ; Thu, 26 Dec 2002 16:34:59 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBQGUEn11955 for rancid-discuss-outgoing; Thu, 26 Dec 2002 16:30:14 GMT Received: from mailhost2.reliant.com (201.RELIANT.COM [158.81.251.201]) by guelah.shrubbery.net (8.11.6/8.11.1) with ESMTP id gBQGU9m11948; Thu, 26 Dec 2002 16:30:09 GMT Received: from rriexcon01.services.reinternal.com (mailhost.noram.com [10.51.107.25]) by mailhost2.reliant.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id gBQGTmD02326; Thu, 26 Dec 2002 10:29:48 -0600 (CST) Received: from RRIEXMB10.services.reinternal.com ([10.48.110.95]) by rriexcon01.services.reinternal.com with Microsoft SMTPSVC(5.0.2195.5329); Thu, 26 Dec 2002 10:33:59 -0600 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: RE: rancid hangs due to expect, ssh, or cisco? Date: Thu, 26 Dec 2002 10:33:59 -0600 Message-ID: <4542F75EC5DC2E44AA0B648E20D00E3504C6EF@rriexmb10.services.reinternal.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: rancid hangs due to expect, ssh, or cisco? Thread-Index: AcKq2c+LrTOOhNQ2ScalZ6NeGatvfACF+13A From: "Zhang, Anchi" To: "john heasley" Cc: X-OriginalArrivalTime: 26 Dec 2002 16:33:59.0569 (UTC) FILETIME=[97A4C810:01C2ACFC] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by guelah.shrubbery.net id gBQGUAm11949 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk The hang is much longer than 45 seconds: log2% date; clogin -c "sho run" rri2uunet>/dev/null; date Thu Dec 26 10:02:58 CST 2002 Thu Dec 26 10:13:01 CST 2002 I changed the line to "set timeout 10" in clogin but noticed no difference in the hang duration. The lines below added to ACL "ip access-list extended ingress" to make it 181 lines: permit esp any host 158.81.250.11 permit udp any host 158.81.250.11 eq 10000 permit udp any host 158.81.250.11 eq isakmp I can email you the whole ACL in private if you wish to see it. What is even more strange is the fact that I have three edge routers each with the identical ACLs and adding the three lines to the other two routes did not affect Rancid's access to them. ssh or telnet access without clogin presents no problem. clogin via ssh is successful all the time on many routers, once a while on some routers, and never on a few others. Anchi -----Original Message----- From: john heasley [mailto:heas@shrubbery.net] Sent: Monday, December 23, 2002 5:16 PM To: Zhang, Anchi Cc: rancid-discuss@shrubbery.net Subject: Re: rancid hangs due to expect, ssh, or cisco? Mon, Dec 23, 2002 at 05:00:29PM -0600, Zhang, Anchi: > I do get the shell prompt back right after the last line of the debug but it takes a long time to get there. about 45 seconds? that is the timeout period. but, in the debug output you sent, it should have immediately returned since it matched the prompt and then EOF. however, if the output hung prior to receiving the prompt (when we are not expecting EOF), then it will wait for the timeout period. > Rancid over ssh does work with some of my routers but not all. For example, it had worked with one router until I added a few more lines to its existing ACL. can you share the lines that were added? > The strange thing is that if I login using clogin and issue "show run" at the router's command prompt, the display will be fine. However, if I do "term len 0" and then "show run" the display hangs when it gets close to the very end of the config. when clogin is used, clogin takes care of the login process and then uses interact. this should in essence (fingers crossed) connect your terminal directly to the pty until EOF. thus i suspect this is a cisco bug. try telnet (or ssh) without clogin. From owner-rancid-discuss@shrubbery.net Fri Dec 27 17:48:31 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBRHmUS02711 for ; Fri, 27 Dec 2002 17:48:30 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBRHitr20213 for rancid-discuss-outgoing; Fri, 27 Dec 2002 17:44:55 GMT Received: (from heas@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBRHil820204; Fri, 27 Dec 2002 17:44:47 GMT Date: Fri, 27 Dec 2002 09:44:47 -0800 From: john heasley To: "Zhang, Anchi" Cc: john heasley , rancid-discuss@shrubbery.net Subject: Re: rancid hangs due to expect, ssh, or cisco? Message-ID: <20021227094447.R12553@shrubbery.net> References: <4542F75EC5DC2E44AA0B648E20D00E3504C6EF@rriexmb10.services.reinternal.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <4542F75EC5DC2E44AA0B648E20D00E3504C6EF@rriexmb10.services.reinternal.com>; from AZhang@reliant.com on Thu, Dec 26, 2002 at 10:33:59AM -0600 X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Thu, Dec 26, 2002 at 10:33:59AM -0600, Zhang, Anchi: > The hang is much longer than 45 seconds: > > log2% date; clogin -c "sho run" rri2uunet>/dev/null; date > Thu Dec 26 10:02:58 CST 2002 > Thu Dec 26 10:13:01 CST 2002 > > I changed the line to "set timeout 10" in clogin but noticed no difference in the hang duration. see the -t option. > The lines below added to ACL "ip access-list extended ingress" to make it 181 lines: > > permit esp any host 158.81.250.11 > permit udp any host 158.81.250.11 eq 10000 > permit udp any host 158.81.250.11 eq isakmp > > I can email you the whole ACL in private if you wish to see it. > > What is even more strange is the fact that I have three edge routers each with the identical ACLs and adding the three lines to the other two routes did not affect Rancid's access to them. > > ssh or telnet access without clogin presents no problem. clogin via ssh is successful all the time on many routers, once a while on some routers, and never on a few others. is it possible that the version of ios running on those suspect routers has a bug related to this ACL? trying reproducing the problem with the ACL removed. otherwise, i'm at a loss. perhaps you can send a successful rancid collection from one of the misbehaving routers to me directly. From owner-rancid-discuss@shrubbery.net Fri Dec 27 23:29:00 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBRNSxS24219 for ; Fri, 27 Dec 2002 23:28:59 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBRNRas26161 for rancid-discuss-outgoing; Fri, 27 Dec 2002 23:27:36 GMT Received: from mailhost1.reliant.com (201.RELIANT.COM [158.81.251.201]) by guelah.shrubbery.net (8.11.6/8.11.1) with ESMTP id gBRNRWm26154; Fri, 27 Dec 2002 23:27:32 GMT Received: from rriexcon01.services.reinternal.com (mailhost.noram.com [10.51.107.25]) by mailhost1.reliant.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id gBRNRQm24510; Fri, 27 Dec 2002 17:27:26 -0600 (CST) Received: from RRIEXMB10.services.reinternal.com ([10.48.110.95]) by rriexcon01.services.reinternal.com with Microsoft SMTPSVC(5.0.2195.5329); Fri, 27 Dec 2002 17:31:43 -0600 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: RE: rancid hangs due to expect, ssh, or cisco? Date: Fri, 27 Dec 2002 17:31:42 -0600 Message-ID: <4542F75EC5DC2E44AA0B648E20D00E3504C6F1@rriexmb10.services.reinternal.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: rancid hangs due to expect, ssh, or cisco? Thread-Index: AcKt0EHGg59UKuGDSguc8MN7qL6i4QALtiJw From: "Zhang, Anchi" To: "john heasley" Cc: X-OriginalArrivalTime: 27 Dec 2002 23:31:43.0071 (UTC) FILETIME=[1D116EF0:01C2AE00] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by guelah.shrubbery.net id gBRNRXm26155 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk My repeated tests show that the problem is related to the length of the config. The Rancid collection that I mailed you privately was successful because I did UU-Cisco-gw(config)# no ntp server 158.81.250.130 before I ran rancid -d . In fact, shortening the config by just one line, any line, would render Rancid successful. Anchi -----Original Message----- From: john heasley [mailto:heas@shrubbery.net] Sent: Friday, December 27, 2002 11:45 AM To: Zhang, Anchi Cc: john heasley; rancid-discuss@shrubbery.net Subject: Re: rancid hangs due to expect, ssh, or cisco? Thu, Dec 26, 2002 at 10:33:59AM -0600, Zhang, Anchi: > The hang is much longer than 45 seconds: > > log2% date; clogin -c "sho run" rri2uunet>/dev/null; date > Thu Dec 26 10:02:58 CST 2002 > Thu Dec 26 10:13:01 CST 2002 > > I changed the line to "set timeout 10" in clogin but noticed no difference in the hang duration. see the -t option. > The lines below added to ACL "ip access-list extended ingress" to make it 181 lines: > > permit esp any host 158.81.250.11 > permit udp any host 158.81.250.11 eq 10000 > permit udp any host 158.81.250.11 eq isakmp > > I can email you the whole ACL in private if you wish to see it. > > What is even more strange is the fact that I have three edge routers each with the identical ACLs and adding the three lines to the other two routes did not affect Rancid's access to them. > > ssh or telnet access without clogin presents no problem. clogin via ssh is successful all the time on many routers, once a while on some routers, and never on a few others. is it possible that the version of ios running on those suspect routers has a bug related to this ACL? trying reproducing the problem with the ACL removed. otherwise, i'm at a loss. perhaps you can send a successful rancid collection from one of the misbehaving routers to me directly. From owner-rancid-discuss@shrubbery.net Sun Dec 29 01:53:24 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBT1rNS10627 for ; Sun, 29 Dec 2002 01:53:23 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBT1n5n04312 for rancid-discuss-outgoing; Sun, 29 Dec 2002 01:49:05 GMT Received: (from heas@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBT1mwR04307; Sun, 29 Dec 2002 01:48:58 GMT Date: Sat, 28 Dec 2002 17:48:58 -0800 From: john heasley To: "Zhang, Anchi" Cc: rancid-discuss@shrubbery.net Subject: Re: rancid hangs due to expect, ssh, or cisco? Message-ID: <20021228174858.E2660@shrubbery.net> References: <4542F75EC5DC2E44AA0B648E20D00E3504C6F1@rriexmb10.services.reinternal.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <4542F75EC5DC2E44AA0B648E20D00E3504C6F1@rriexmb10.services.reinternal.com>; from AZhang@reliant.com on Fri, Dec 27, 2002 at 05:31:42PM -0600 X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Fri, Dec 27, 2002 at 05:31:42PM -0600, Zhang, Anchi: > My repeated tests show that the problem is related to the length of the config. The Rancid collection that I mailed you privately was successful because I did > > UU-Cisco-gw(config)# no ntp server 158.81.250.130 > > before I ran rancid -d . In fact, shortening the config by just one line, any line, would render Rancid successful. hmm, i smell crack. could you try the following on the router: conf t lin v 0 15 exec-time 0 session-time 0 ^Z then try rancid again. From owner-rancid-discuss@shrubbery.net Mon Dec 30 23:37:57 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBUNbvS26567 for ; Mon, 30 Dec 2002 23:37:57 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBUNY7V19034 for rancid-discuss-outgoing; Mon, 30 Dec 2002 23:34:07 GMT Received: from mailhost2.reliant.com (201.RELIANT.COM [158.81.251.201]) by guelah.shrubbery.net (8.11.6/8.11.1) with ESMTP id gBUNY2m19025; Mon, 30 Dec 2002 23:34:02 GMT Received: from rriexcon01.services.reinternal.com (mailhost.noram.com [10.51.107.25]) by mailhost2.reliant.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id gBUNXtD23869; Mon, 30 Dec 2002 17:33:55 -0600 (CST) Received: from RRIEXMB10.services.reinternal.com ([10.48.110.95]) by rriexcon01.services.reinternal.com with Microsoft SMTPSVC(5.0.2195.5329); Mon, 30 Dec 2002 17:38:25 -0600 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: RE: rancid hangs due to expect, ssh, or cisco? Date: Mon, 30 Dec 2002 17:38:25 -0600 Message-ID: <4542F75EC5DC2E44AA0B648E20D00E3504C6F7@rriexmb10.services.reinternal.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: rancid hangs due to expect, ssh, or cisco? Thread-Index: AcKu3RMLBnweaO/SS7ehLUd16IBjDQBfE/Ow From: "Zhang, Anchi" To: "john heasley" Cc: X-OriginalArrivalTime: 30 Dec 2002 23:38:25.0414 (UTC) FILETIME=[8C1F5A60:01C2B05C] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by guelah.shrubbery.net id gBUNY3m19026 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk I tried it and the only difference it seems to have made was to extend the hang period indefinitely. With "exec-timeout 1" the hang is about a minute: log2% date; clogin -c "sho run" ecdc2ibgp>/dev/null; date Mon Dec 30 17:16:17 CST 2002 Mon Dec 30 17:17:20 CST 2002 Today, I was able to have a successful Rancid collection on a router that I had never been able to just by simply removing a few unimportant lines from the config. I was also able to cause a failed collection on a router by simply adding enough lines after ip access-list extended testing Anchi -----Original Message----- From: john heasley [mailto:heas@shrubbery.net] Sent: Saturday, December 28, 2002 7:49 PM To: Zhang, Anchi Cc: rancid-discuss@shrubbery.net Subject: Re: rancid hangs due to expect, ssh, or cisco? Fri, Dec 27, 2002 at 05:31:42PM -0600, Zhang, Anchi: > My repeated tests show that the problem is related to the length of the config. The Rancid collection that I mailed you privately was successful because I did > > UU-Cisco-gw(config)# no ntp server 158.81.250.130 > > before I ran rancid -d . In fact, shortening the config by just one line, any line, would render Rancid successful. hmm, i smell crack. could you try the following on the router: conf t lin v 0 15 exec-time 0 session-time 0 ^Z then try rancid again. From owner-rancid-discuss@shrubbery.net Tue Dec 31 00:27:38 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBV0RcS03730 for ; Tue, 31 Dec 2002 00:27:38 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBV0R9J19413 for rancid-discuss-outgoing; Tue, 31 Dec 2002 00:27:09 GMT Received: (from heas@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBV0R0D19398; Tue, 31 Dec 2002 00:27:00 GMT Date: Mon, 30 Dec 2002 16:27:00 -0800 From: john heasley To: "Zhang, Anchi" Cc: john heasley , rancid-discuss@shrubbery.net Subject: Re: rancid hangs due to expect, ssh, or cisco? Message-ID: <20021230162700.W17843@shrubbery.net> References: <4542F75EC5DC2E44AA0B648E20D00E3504C6F7@rriexmb10.services.reinternal.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <4542F75EC5DC2E44AA0B648E20D00E3504C6F7@rriexmb10.services.reinternal.com>; from AZhang@reliant.com on Mon, Dec 30, 2002 at 05:38:25PM -0600 X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Mon, Dec 30, 2002 at 05:38:25PM -0600, Zhang, Anchi: > I tried it and the only difference it seems to have made was to extend the hang period indefinitely. > > With "exec-timeout 1" the hang is about a minute: > > log2% date; clogin -c "sho run" ecdc2ibgp>/dev/null; date > Mon Dec 30 17:16:17 CST 2002 > Mon Dec 30 17:17:20 CST 2002 > > Today, I was able to have a successful Rancid collection on a router that I had never been able to just by simply removing a few unimportant lines from the config. I was also able to cause a failed collection on a router by simply adding enough lines after > > ip access-list extended testing could you try the patch for expect that is on www.shrubbery.net/rancid/? From owner-rancid-discuss@shrubbery.net Tue Dec 31 16:04:03 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBVG43S01888 for ; Tue, 31 Dec 2002 16:04:03 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBVG1BT24930 for rancid-discuss-outgoing; Tue, 31 Dec 2002 16:01:12 GMT Received: from mailhost2.reliant.com (201.reliant.com [158.81.251.201]) by guelah.shrubbery.net (8.11.6/8.11.1) with ESMTP id gBVG17m24923; Tue, 31 Dec 2002 16:01:07 GMT Received: from rriexcon01.services.reinternal.com (mailhost.noram.com [10.51.107.25]) by mailhost2.reliant.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id gBVG10D15674; Tue, 31 Dec 2002 10:01:00 -0600 (CST) Received: from RRIEXMB10.services.reinternal.com ([10.48.110.95]) by rriexcon01.services.reinternal.com with Microsoft SMTPSVC(5.0.2195.5329); Tue, 31 Dec 2002 10:05:33 -0600 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: RE: rancid hangs due to expect, ssh, or cisco? Date: Tue, 31 Dec 2002 10:05:33 -0600 Message-ID: <4542F75EC5DC2E44AA0B648E20D00E3504C6F8@rriexmb10.services.reinternal.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: rancid hangs due to expect, ssh, or cisco? Thread-Index: AcKwY/lT/my8NJTrRxun+0e4mH5DbwAgcjow From: "Zhang, Anchi" To: "john heasley" Cc: X-OriginalArrivalTime: 31 Dec 2002 16:05:33.0640 (UTC) FILETIME=[72E56C80:01C2B0E6] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by guelah.shrubbery.net id gBVG17m24924 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Patch just applied but results remain the same. -----Original Message----- From: john heasley [mailto:heas@shrubbery.net] Sent: Monday, December 30, 2002 6:27 PM To: Zhang, Anchi Cc: john heasley; rancid-discuss@shrubbery.net Subject: Re: rancid hangs due to expect, ssh, or cisco? Mon, Dec 30, 2002 at 05:38:25PM -0600, Zhang, Anchi: > I tried it and the only difference it seems to have made was to extend the hang period indefinitely. > > With "exec-timeout 1" the hang is about a minute: > > log2% date; clogin -c "sho run" ecdc2ibgp>/dev/null; date > Mon Dec 30 17:16:17 CST 2002 > Mon Dec 30 17:17:20 CST 2002 > > Today, I was able to have a successful Rancid collection on a router that I had never been able to just by simply removing a few unimportant lines from the config. I was also able to cause a failed collection on a router by simply adding enough lines after > > ip access-list extended testing could you try the patch for expect that is on www.shrubbery.net/rancid/? From owner-rancid-discuss@shrubbery.net Tue Dec 31 17:32:21 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBVHWLS14168 for ; Tue, 31 Dec 2002 17:32:21 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBVHVd225468 for rancid-discuss-outgoing; Tue, 31 Dec 2002 17:31:39 GMT Received: (from heas@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBVHVa025463 for rancid-discuss@shrubbery.net; Tue, 31 Dec 2002 17:31:37 GMT Received: from ukedimail02.edin.uk.sykes.com (ukedimail02.edin.uk.sykes.com [194.72.106.208]) by guelah.shrubbery.net (8.11.6/8.11.1) with ESMTP id gBV6xFm21913; Tue, 31 Dec 2002 06:59:16 GMT Received: by UKEDIMAIL02 with Internet Mail Service (5.5.2655.55) id ; Tue, 31 Dec 2002 06:54:00 -0000 Message-ID: <59CFF4F7B037D411804800508B6D22B204627A01@UKEDIMAIL02> From: Johan Grip To: john heasley , "Zhang, Anchi" Cc: rancid-discuss@shrubbery.net Subject: RE: rancid hangs due to expect, ssh, or cisco? Date: Tue, 31 Dec 2002 06:53:56 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2655.55) Content-Type: text/plain Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk I am also experiencing this problem as well, and the patch for expect did not help in my case. My setup is cisco routers and a debian 3.0 installation using kernel 2.4.18 and expect 5.32.2. I have for now worked around this by using telnet instead of SSH, but the still remains the same. I am also expriencing this issue sometimes when I run commands with large output without paging on the routers as well, so I do think it might be something in IOS. Currently playing around to see what I can come up with. Regards, Johan -----Original Message----- From: john heasley [mailto:heas@shrubbery.net] Sent: December 31, 2002 01:27 To: Zhang, Anchi Cc: john heasley; rancid-discuss@shrubbery.net Subject: Re: rancid hangs due to expect, ssh, or cisco? Mon, Dec 30, 2002 at 05:38:25PM -0600, Zhang, Anchi: > I tried it and the only difference it seems to have made was to extend the hang period indefinitely. > > With "exec-timeout 1" the hang is about a minute: > > log2% date; clogin -c "sho run" ecdc2ibgp>/dev/null; date > Mon Dec 30 17:16:17 CST 2002 > Mon Dec 30 17:17:20 CST 2002 > > Today, I was able to have a successful Rancid collection on a router that I had never been able to just by simply removing a few unimportant lines from the config. I was also able to cause a failed collection on a router by simply adding enough lines after > > ip access-list extended testing could you try the patch for expect that is on www.shrubbery.net/rancid/? From owner-rancid-discuss@shrubbery.net Tue Dec 31 17:44:23 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBVHiNS16781 for ; Tue, 31 Dec 2002 17:44:23 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBVHi9525575 for rancid-discuss-outgoing; Tue, 31 Dec 2002 17:44:10 GMT Received: from psg.com (mailnull@psg.com [147.28.0.62]) by guelah.shrubbery.net (8.11.6/8.11.1) with ESMTP id gBVHi5m25568; Tue, 31 Dec 2002 17:44:05 GMT Received: from c66-235-39-253.sea2.cablespeed.com ([66.235.39.253] helo=roam.psg.com) by psg.com with esmtp (Exim 3.36 #2) id 18TQQv-000GV3-00; Tue, 31 Dec 2002 09:44:05 -0800 Received: from localhost ([127.0.0.1] helo=roam.psg.com.psg.com ident=randy) by roam.psg.com with esmtp (Exim 4.10) id 18TQQO-000C8I-00; Tue, 31 Dec 2002 09:43:32 -0800 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Johan Grip Cc: john heasley , "Zhang, Anchi" , rancid-discuss@shrubbery.net Subject: RE: rancid hangs due to expect, ssh, or cisco? References: <59CFF4F7B037D411804800508B6D22B204627A01@UKEDIMAIL02> Message-Id: Date: Tue, 31 Dec 2002 09:43:32 -0800 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk > I have for now worked around this by using telnet instead of SSH, but the > still remains the same. I am also expriencing this issue sometimes when I > run commands with large output without paging on the routers as well, > so I do think it might be something in IOS. i think this happens for me on a non-cisco router with a cisco cli randy --- The following routers have not been successfully contacted for more than 4 hours. -rw-r----- 1 randy staff 6928 Nov 18 00:15 psg2.psg.com From owner-rancid-discuss@shrubbery.net Tue Dec 31 18:14:53 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBVIErS21260 for ; Tue, 31 Dec 2002 18:14:53 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBVIELN25849 for rancid-discuss-outgoing; Tue, 31 Dec 2002 18:14:21 GMT Received: from tower.partan.com (tower.partan.com [198.6.255.248]) by guelah.shrubbery.net (8.11.6/8.11.1) with ESMTP id gBVIEIm25845 for ; Tue, 31 Dec 2002 18:14:18 GMT Received: from tower.partan.com (localhost.partan.com [127.0.0.1]) by tower.partan.com (8.12.3/8.12.3) with ESMTP id gBVIE3W9029731; Tue, 31 Dec 2002 13:14:03 -0500 (EST) (envelope-from asp@tower.partan.com) Received: (from asp@localhost) by tower.partan.com (8.12.3/8.12.3/Submit) id gBVIE22x029728; Tue, 31 Dec 2002 13:14:02 -0500 (EST) (envelope-from asp) Date: Tue, 31 Dec 2002 13:14:02 -0500 From: Andrew Partan To: Randy Bush Cc: rancid-discuss@shrubbery.net Subject: Re: rancid hangs due to expect, ssh, or cisco? Message-ID: <20021231181402.GA29656@partan.com> References: <59CFF4F7B037D411804800508B6D22B204627A01@UKEDIMAIL02> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On Tue, Dec 31, 2002 at 09:43:32AM -0800, Randy Bush wrote: > i think this happens for me on a non-cisco router with a cisco cli > --- > The following routers have not been successfully contacted for > more than 4 hours. > -rw-r----- 1 randy staff 6928 Nov 18 00:15 psg2.psg.com That is a failure to log in or connect to the router. A rancid hang would get this message to rancid-admin-$GROUP: Subject: rancid hung - $GROUP echo hourly config diffs failed: $LOCKFILE exists and you would have to go kill -9 some of the rancid programs (typically a hung expect) to get things running again. --asp From owner-rancid-discuss@shrubbery.net Tue Dec 31 18:16:59 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBVIGxS21364 for ; Tue, 31 Dec 2002 18:16:59 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBVIGux25873 for rancid-discuss-outgoing; Tue, 31 Dec 2002 18:16:56 GMT Received: (from heas@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBVIGkM25867; Tue, 31 Dec 2002 18:16:46 GMT Date: Tue, 31 Dec 2002 10:16:46 -0800 From: john heasley To: Randy Bush Cc: Johan Grip , "Zhang, Anchi" , rancid-discuss@shrubbery.net Subject: Re: rancid hangs due to expect, ssh, or cisco? Message-ID: <20021231101646.K17843@shrubbery.net> References: <59CFF4F7B037D411804800508B6D22B204627A01@UKEDIMAIL02> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from randy@psg.com on Tue, Dec 31, 2002 at 09:43:32AM -0800 X-PGPkey: http://www.shrubbery.net/~heas/public-key.asc X-note: live free, or die! X-homer: awe, not the good cheek Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Tue, Dec 31, 2002 at 09:43:32AM -0800, Randy Bush: > > I have for now worked around this by using telnet instead of SSH, but the > > still remains the same. I am also expriencing this issue sometimes when I > > run commands with large output without paging on the routers as well, > > so I do think it might be something in IOS. > > i think this happens for me on a non-cisco router with a cisco cli almost certainly. if the device_type field of the router.db file is incorrect, the wrong login script might ("might" because some types use the same script) be used. it would be nice to merge all the scripts, but that is difficult - and we dont want to jeopardize their stability. but, i am at a loss as to what might be wrong with Johan or Anchi's collections. i know of rancid users with both solaris and linux that have not had problems. what i've seen thus far point to either an IOS or telnet/ssh/expect problem. someone experiencing the problem will have to figure it out or one of them will have to offer a login and router access to me. sorry guys. From owner-rancid-discuss@shrubbery.net Tue Dec 31 20:47:07 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBVKl7S14705 for ; Tue, 31 Dec 2002 20:47:07 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBVKjUL27185 for rancid-discuss-outgoing; Tue, 31 Dec 2002 20:45:30 GMT Received: from mailhost1.reliant.com (201.reliant.com [158.81.251.201]) by guelah.shrubbery.net (8.11.6/8.11.1) with ESMTP id gBVKjPm27178; Tue, 31 Dec 2002 20:45:25 GMT Received: from rriexcon01.services.reinternal.com (mailhost.noram.com [10.51.107.25]) by mailhost1.reliant.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id gBVKjEm27272; Tue, 31 Dec 2002 14:45:14 -0600 (CST) Received: from RRIEXMB10.services.reinternal.com ([10.48.110.95]) by rriexcon01.services.reinternal.com with Microsoft SMTPSVC(5.0.2195.5329); Tue, 31 Dec 2002 14:49:48 -0600 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: RE: rancid hangs due to expect, ssh, or cisco? Date: Tue, 31 Dec 2002 14:49:48 -0600 Message-ID: <4542F75EC5DC2E44AA0B648E20D00E352B0B61@rriexmb10.services.reinternal.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: rancid hangs due to expect, ssh, or cisco? Thread-Index: AcKw+W85ykOCvGQlRMyzd/Lwj5EsRAAFHYaw From: "Zhang, Anchi" To: "john heasley" , "Randy Bush" Cc: "Johan Grip" , X-OriginalArrivalTime: 31 Dec 2002 20:49:48.0496 (UTC) FILETIME=[2861ED00:01C2B10E] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by guelah.shrubbery.net id gBVKjQm27179 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk My temporary workaround to this problem is log2# diff clogin clogin.orig 457c457 < send "term length 100\r" --- > send "term length 0\r" Anchi -----Original Message----- From: john heasley [mailto:heas@shrubbery.net] Sent: Tuesday, December 31, 2002 12:17 PM To: Randy Bush Cc: Johan Grip; Zhang, Anchi; rancid-discuss@shrubbery.net Subject: Re: rancid hangs due to expect, ssh, or cisco? Tue, Dec 31, 2002 at 09:43:32AM -0800, Randy Bush: > > I have for now worked around this by using telnet instead of SSH, but the > > still remains the same. I am also expriencing this issue sometimes when I > > run commands with large output without paging on the routers as well, > > so I do think it might be something in IOS. > > i think this happens for me on a non-cisco router with a cisco cli almost certainly. if the device_type field of the router.db file is incorrect, the wrong login script might ("might" because some types use the same script) be used. it would be nice to merge all the scripts, but that is difficult - and we dont want to jeopardize their stability. but, i am at a loss as to what might be wrong with Johan or Anchi's collections. i know of rancid users with both solaris and linux that have not had problems. what i've seen thus far point to either an IOS or telnet/ssh/expect problem. someone experiencing the problem will have to figure it out or one of them will have to offer a login and router access to me. sorry guys. From owner-rancid-discuss@shrubbery.net Tue Dec 31 22:09:11 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBVM9AS27165 for ; Tue, 31 Dec 2002 22:09:10 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBVM82c27686 for rancid-discuss-outgoing; Tue, 31 Dec 2002 22:08:02 GMT Received: from tower.partan.com (tower.partan.com [198.6.255.248]) by guelah.shrubbery.net (8.11.6/8.11.1) with ESMTP id gBVM7wm27682 for ; Tue, 31 Dec 2002 22:07:58 GMT Received: from tower.partan.com (localhost.partan.com [127.0.0.1]) by tower.partan.com (8.12.3/8.12.3) with ESMTP id gBVM7nW9034168; Tue, 31 Dec 2002 17:07:49 -0500 (EST) (envelope-from asp@tower.partan.com) Received: (from asp@localhost) by tower.partan.com (8.12.3/8.12.3/Submit) id gBVM7nQ3034165; Tue, 31 Dec 2002 17:07:49 -0500 (EST) (envelope-from asp) Date: Tue, 31 Dec 2002 17:07:49 -0500 From: Andrew Partan To: "Zhang, Anchi" Cc: rancid-discuss@shrubbery.net Subject: Re: rancid hangs due to expect, ssh, or cisco? Message-ID: <20021231220749.GA34124@partan.com> References: <4542F75EC5DC2E44AA0B648E20D00E352B0B61@rriexmb10.services.reinternal.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4542F75EC5DC2E44AA0B648E20D00E352B0B61@rriexmb10.services.reinternal.com> User-Agent: Mutt/1.4i Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk On Tue, Dec 31, 2002 at 02:49:48PM -0600, Zhang, Anchi wrote: > My temporary workaround to this problem is > > log2# diff clogin clogin.orig > 457c457 > < send "term length 100\r" > --- > > send "term length 0\r" Well that is whacko. Is 'term length 0' not working on your router? --asp From owner-rancid-discuss@shrubbery.net Tue Dec 31 22:16:06 2002 Received: from guelah.shrubbery.net (guelah.shrubbery.net [198.58.5.1]) by ni.shrubbery.net (8.11.6/8.11.6) with ESMTP id gBVMG6S27792 for ; Tue, 31 Dec 2002 22:16:06 GMT Received: (from majordom@localhost) by guelah.shrubbery.net (8.11.6/8.11.1) id gBVMFst27741 for rancid-discuss-outgoing; Tue, 31 Dec 2002 22:15:54 GMT Received: from mailhost1.reliant.com (201.reliant.com [158.81.251.201]) by guelah.shrubbery.net (8.11.6/8.11.1) with ESMTP id gBVMFpm27737 for ; Tue, 31 Dec 2002 22:15:51 GMT Received: from rriexcon01.services.reinternal.com (mailhost.noram.com [10.51.107.25]) by mailhost1.reliant.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id gBVMFim15198; Tue, 31 Dec 2002 16:15:44 -0600 (CST) Received: from RRIEXMB10.services.reinternal.com ([10.48.110.95]) by rriexcon01.services.reinternal.com with Microsoft SMTPSVC(5.0.2195.5329); Tue, 31 Dec 2002 16:20:18 -0600 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: RE: rancid hangs due to expect, ssh, or cisco? Date: Tue, 31 Dec 2002 16:15:44 -0600 Message-ID: <4542F75EC5DC2E44AA0B648E20D00E352B0B63@rriexmb10.services.reinternal.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: rancid hangs due to expect, ssh, or cisco? Thread-Index: AcKxGRDU8ra3WBVnTNuTqoZfjPHvPwAAWFdg From: "Zhang, Anchi" To: "Andrew Partan" Cc: X-OriginalArrivalTime: 31 Dec 2002 22:20:18.0683 (UTC) FILETIME=[CD06B4B0:01C2B11A] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by guelah.shrubbery.net id gBVMFpm27738 Sender: owner-rancid-discuss@shrubbery.net Precedence: bulk Yes, 'term len 0' works on my router. However strange, the workaround does work for me. I was hoping others who have similar problems would try it and confirm. Anchi -----Original Message----- From: Andrew Partan [mailto:asp@partan.com] Sent: Tuesday, December 31, 2002 4:08 PM To: Zhang, Anchi Cc: rancid-discuss@shrubbery.net Subject: Re: rancid hangs due to expect, ssh, or cisco? On Tue, Dec 31, 2002 at 02:49:48PM -0600, Zhang, Anchi wrote: > My temporary workaround to this problem is > > log2# diff clogin clogin.orig > 457c457 > < send "term length 100\r" > --- > > send "term length 0\r" Well that is whacko. Is 'term length 0' not working on your router? --asp