Mailing List Archive

clogin, "show controllers" and ios 12.3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hello All.

I've recently discovered the cause for my do-diffs sessions hanging. It
seems that "show controllers" on IOS 12.3(1) and 12.3(3)B will hang
sometimes. It seems to hang about once every other, or every third time.

Hardware:
7206 VXR / NPE-G1 / DS3 cards and Ethernet cards

I've commented out the "show controllers" calls, and it's not hanging
anymore, so it would seem to be an issue there.

It is probably a bug in IOS 12.3.

More investigation is clearly needed, but I thought that some might benefit
from this (or if this is a known issue, that'd be neat to know about, too).

HTH,
Gabriel



- --
Gabriel Cain www.dialupusa.net
Senior Systems Administrator gabriel at dialupusa.net
PGP fingerprint: C0B4 C6BF 13F5 69D1 3E6B CD7C D4C8 2EA4 2B08 1C6D

Technology for the sake of business.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFAWMXa1MgupCsIHG0RAikhAJ9/fzW8lzsRvKcUq/DGcbA1U0SYuQCVHgaG
InnZktBRcs5USw1N3Lf/yg==
=odwT
-----END PGP SIGNATURE-----
clogin, "show controllers" and ios 12.3 [ In reply to ]
Hi Gabriel,

I had this exact same problem. You will need the patch to "expect",
which is on http://www.shrubbery.net/rancid/ (which seems to be down
right now). Basically it adds a line to exp_chan.c:

--- exp_chan.c.orig Thu Jul 31 14:35:07 2003
+++ exp_chan.c Fri Mar 12 22:58:42 2004
@@ -119,6 +119,7 @@
* nonblocking, the read will never block.
*/

+ fcntl(esPtr->fdin, F_SETFL, O_NONBLOCK);
bytesRead = read(esPtr->fdin, buf, (size_t) toRead);
/*printf("ExpInputProc: read(%d,,) = %d\r\n",esPtr->fdin,bytesRead);*/
if (bytesRead > -1) {

and also rancid version 2.3 if you find it also loops repeatedly around
looking for missing commands.

David


Gabriel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> Hello All.
>
> I've recently discovered the cause for my do-diffs sessions hanging. It
> seems that "show controllers" on IOS 12.3(1) and 12.3(3)B will hang
> sometimes. It seems to hang about once every other, or every third time.
>
> Hardware:
> 7206 VXR / NPE-G1 / DS3 cards and Ethernet cards
>
> I've commented out the "show controllers" calls, and it's not hanging
> anymore, so it would seem to be an issue there.
>
> It is probably a bug in IOS 12.3.
>
> More investigation is clearly needed, but I thought that some might benefit
> from this (or if this is a known issue, that'd be neat to know about, too).
>
> HTH,
> Gabriel
>
>
>
> - --
> Gabriel Cain www.dialupusa.net
> Senior Systems Administrator gabriel at dialupusa.net
> PGP fingerprint: C0B4 C6BF 13F5 69D1 3E6B CD7C D4C8 2EA4 2B08 1C6D
>
> Technology for the sake of business.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD4DBQFAWMXa1MgupCsIHG0RAikhAJ9/fzW8lzsRvKcUq/DGcbA1U0SYuQCVHgaG
> InnZktBRcs5USw1N3Lf/yg==
> =odwT
> -----END PGP SIGNATURE-----
clogin, "show controllers" and ios 12.3 [ In reply to ]
David,

Thanks for the patch; I appreciate that. And I can see how setting
non-blocking IO in expect will solve that. :) That's good.

Thanks,
Gabriel


David Croft wrote:
> Hi Gabriel,
>
> I had this exact same problem. You will need the patch to "expect",
> which is on http://www.shrubbery.net/rancid/ (which seems to be down
> right now). Basically it adds a line to exp_chan.c:
>
> --- exp_chan.c.orig Thu Jul 31 14:35:07 2003
> +++ exp_chan.c Fri Mar 12 22:58:42 2004
> @@ -119,6 +119,7 @@
> * nonblocking, the read will never block.
> */
>
> + fcntl(esPtr->fdin, F_SETFL, O_NONBLOCK);
> bytesRead = read(esPtr->fdin, buf, (size_t) toRead);
> /*printf("ExpInputProc: read(%d,,) = %d\r\n",esPtr->fdin,bytesRead);*/
> if (bytesRead > -1) {
>
> and also rancid version 2.3 if you find it also loops repeatedly around
> looking for missing commands.
>
> David

--
Gabriel Cain www.dialupusa.net
Senior Systems Administrator gabriel at dialupusa.net
PGP fingerprint: C0B4 C6BF 13F5 69D1 3E6B CD7C D4C8 2EA4 2B08 1C6D

Technology for the sake of business.
clogin, "show controllers" and ios 12.3 [ In reply to ]
Thu, Mar 18, 2004 at 08:14:01PM -0500, David Croft:
> Hi Gabriel,
>
> I had this exact same problem. You will need the patch to "expect",
> which is on http://www.shrubbery.net/rancid/ (which seems to be down
> right now). Basically it adds a line to exp_chan.c:

Sorry, all...telco buggered both of my circuits.

> --- exp_chan.c.orig Thu Jul 31 14:35:07 2003
> +++ exp_chan.c Fri Mar 12 22:58:42 2004
> @@ -119,6 +119,7 @@
> * nonblocking, the read will never block.
> */
>
> + fcntl(esPtr->fdin, F_SETFL, O_NONBLOCK);
> bytesRead = read(esPtr->fdin, buf, (size_t) toRead);
> /*printf("ExpInputProc: read(%d,,) = %d\r\n",esPtr->fdin,bytesRead);*/
> if (bytesRead > -1) {
>
> and also rancid version 2.3 if you find it also loops repeatedly around
> looking for missing commands.
>
> David

Gabriel, let us know if this does not fix the problem.
clogin, "show controllers" and ios 12.3 [ In reply to ]
john heasley wrote:
>
>
> Gabriel, let us know if this does not fix the problem.

It seems to be the case that this has fixed my issue. It has been running
smoothly for the last several hours without hanging (I run it from cron
every half hour). So thanks very much for the help.

Gabriel


--
Gabriel Cain www.dialupusa.net
Senior Systems Administrator gabriel at dialupusa.net
PGP fingerprint: C0B4 C6BF 13F5 69D1 3E6B CD7C D4C8 2EA4 2B08 1C6D

Technology for the sake of business.