Discussion:
[rancid] Rancid Hung
Ho Siew Fah
2007-07-03 01:43:21 UTC
Permalink
Hi,

I encountered rancid hung after running the following command. I need to
kill the rancid process in order to exit from this process.
When I put this switch in router.db, I received many rancid hung emails from
rancid. Upon checking, I found that the process of this switch hanged which
caused my rancid could not be processed properly. I have to remove a lock
file from /tmp folder and also this switch from router.db in order not to
cause any processing problem for other routers.

I am using expect-5.43.0_3 and rancid-2.3.1_2.

Can anybody advise how to stop this process for being hung? I think this
process should abort if there is any problem instead of hanging there.

Thank you.

[***@rcd ~]$ /usr/local/libexec/rancid/xrancid -d sngc3-as2.com
executing clogin -t 90 -c "show version;show memory;show diag;show
switch;show slot;show configuration detail;show configuration" sngc3-as2.com

sngc3-as2.com clogin error: Error: TIMEOUT reached
sngc3-as2.com clogin error: Error: TIMEOUT reached
can not find channel named "exp4"
while executing
"close"
("foreach" body line 117)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
send_user "$router\n"

# Figure out prompt.
# Since autoena..."
(file "/usr/sbin/clogin" line 616)

^Csngc3-as2.com <http://csngc3-as2.com/>: missed cmd(s): show configuration
detail,show slot,show configuration,show version,show diag,show memory,show
switch
sngc3-as2.com : missed cmd(s): show configuration detail,show slot,show
configuration,show version,show diag,show memory,show switch
sngc3-as2.com: End of run not found
sngc3-as2.com: End of run not found
Austin Schutz
2007-07-03 07:42:42 UTC
Permalink
Post by Ho Siew Fah
Hi,
I encountered rancid hung after running the following command. I need to
kill the rancid process in order to exit from this process.
When I put this switch in router.db, I received many rancid hung emails from
rancid. Upon checking, I found that the process of this switch hanged which
caused my rancid could not be processed properly. I have to remove a lock
file from /tmp folder and also this switch from router.db in order not to
cause any processing problem for other routers.
I am using expect-5.43.0_3 and rancid-2.3.1_2.
Can anybody advise how to stop this process for being hung? I think this
process should abort if there is any problem instead of hanging there.
Thank you.
You are running into the expect bug, and need to patch expect:

http://www.shrubbery.net/rancid/#osystems

Austin

Loading...