Doesnt Timeout?
Seth Martin
SMartin at sourceinterlink.com
Thu Feb 23 21:44:46 UTC 2006
debian:~$ bin/clogin 192.168.15.145
192.168.15.145
spawn telnet 192.168.15.145
Trying 192.168.15.145...
Error: TIMEOUT reached
debian:~$
That actually works which is fine, but now if I do a:
debian:~$ bin/rancid-run
it just hangs and never returns me to the prompt, I've let this run for
up to 15 minutes (I timed it and gave up after 15)
if I check the processes while its hanging I can see the following:
debian:~$ ps -ux
Warning: bad syntax, perhaps a bogus '-'? See
http://procps.sf.net/faq.html
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
rancid 20000 0.0 0.4 2988 1636 pts/0 S 16:38 0:00 sh
rancid 20018 0.0 0.3 2708 1296 pts/0 S+ 16:40 0:00 /bin/sh
bin/rancid-run
rancid 20019 0.0 0.3 2708 1296 pts/0 S+ 16:40 0:00 /bin/sh
bin/rancid-run
rancid 20023 0.0 0.3 2728 1316 pts/0 S+ 16:40 0:00 /bin/sh
/usr/local/rancid//bin/control_rancid networking
rancid 20066 0.2 0.4 2972 1580 pts/2 S 16:41 0:00 sh
rancid 20071 1.0 0.4 3848 1848 pts/0 S+ 16:41 0:00
/usr/bin/perl /usr/local/rancid//bin/par -q -n 5 -c rancid-fe \{}
/usr/local/rancid//var/netwo
rancid 20072 1.0 0.3 2688 1196 pts/0 S+ 16:41 0:00 sh -c
(rancid-fe \192.168.15.145:cisco)
rancid 20073 3.0 0.6 4776 2680 pts/0 S+ 16:41 0:00
/usr/bin/perl /usr/local/rancid//bin/rancid 192.168.15.145
rancid 20074 0.5 0.3 2716 1244 pts/0 S+ 16:41 0:00 sh -c
clogin -t 90 -c "admin show version;show version;show redundancy
secondary;show idprom b
rancid 20075 0.5 0.4 2988 1672 pts/0 S+ 16:41 0:00
/usr/local/bin/expect -- /usr/local/rancid//bin/clogin -t 90 -c admin
show version;show versio
rancid 20076 0.5 0.3 3460 1328 pts/1 Ss+ 16:41 0:00 telnet
192.168.15.145
rancid 20079 0.0 0.2 2480 860 pts/2 R+ 16:41 0:00 ps -ux
debian:~$
Is there anyway to see a more verbose output so I can see where its
stuff?
Seth Martin
-Desk: 239-949-4450 x6705
-----Original Message-----
From: john heasley [mailto:heas at shrubbery.net]
Sent: Thursday, February 23, 2006 4:35 PM
To: Seth Martin
Cc: rancid-discuss at shrubbery.net
Subject: Re: Doesnt Timeout?
Thu, Feb 23, 2006 at 04:03:29PM -0500, Seth Martin:
> I've Installed RANCID on a fresh install of Debian. It runs just
fine,
> I setup a spare cisco 2600 router and I am able to log the config,
> changes to the router get reported just fine. However if the device
> goes down (I turn itoff) and do a rancid-run it just hangs, and hangs,
> and after about 15 minutes I kill the process. I am using the TCL
and
> expect packages from the rancid ftp server. Any idea why this would
> happen? Is it maybe because I have only 1 device? When the device is
> down the clogin does timeout.
That is odd. The connection should timeout (telnet or ssh) or expect
should timeout waiting for either of them. Please send a transcript of
an interactive login attempt ("clogin device") while it is off or
disconnected. eg:
% jlogin jnx
jnx
spawn telnet jnx
Trying 198.58.5.26...
telnet: Unable to connect to remote host: No route to host
Error: Couldn't login
More information about the Rancid-discuss
mailing list