Sorin Srbu
2009-Feb-20 10:36 UTC
[CentOS] Getting "poll: protocol failure in circuit setup" from rsh
Hi all, I inherited a cpu-stats script from the previous *nixadmin at our department. This script relies on a rsh-command to get the vmstats from the remote machines and then using a perl script to push it to a web server. Now I''ve just added a new machine running CentOS 5.2 x64 to the script and I get the error message in the subject line; "poll: protocol failure in circuit setup". What I''ve done so far is to check whether the command "rsh mach218 uptime" from m2 works with and w/o iptables running on mach218, checking that m2 is allowed to rlogin in m218 hosts.allow, hosts is properly setup, xinetd rsh and rlogin services are on and started AFAICT. In neither case does rsh work when run against m218, I still get the protocol failure-message. I have another machine, m14, that also runs CentOS 5.2 but the x86-flavour, and here rsh works. As far as I can tell, the machines are identically setup with respect to iptables, hosts and hosts.allow. Also the /etc/xinetd.conf are identical on both m14 and m218. Feels like I''m missing something obvious... Can you guys help? Thx. -- BW, Sorin ----------------------------------------------------------- # Sorin Srbu [Sysadmin, Systems Engineer] # Dept of Medicinal Chemistry, Phone: +46 (0)18-4714482 >3 signals> GSM # Div of Org Pharm Chem, Mobile: +46 (0)701-718023 # Box 574, Uppsala University, Fax: +46 (0)18-4714482 # SE-751 23 Uppsala, Sweden Visit: BMC, Husargatan 3, D5:512b # Web: http://www.orgfarm.uu.se ----------------------------------------------------------- # () ASCII ribbon campaign - Against html E-mail # /\ # # MotD follows: # If it wasn''t backed-up, then it wasn''t important. -The sysadmin''s motto. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5106 bytes Desc: not available Url : http://lists.centos.org/pipermail/centos/attachments/20090220/23ef3c39/attachment.bin
Sorin Srbu
2009-Mar-12 13:46 UTC
[CentOS] Getting "poll: protocol failure in circuit setup" from rsh - solved
>-----Original Message----- >From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] OnBehalf>Of Sorin Srbu >Sent: Friday, February 20, 2009 11:36 AM >To: 'CentOS mailing list' >Subject: [CentOS] Getting "poll: protocol failure in circuit setup" fromrsh> > I inherited a cpu-stats script from the previous *nixadmin at our > department. This script relies on a rsh-command to get the vmstats fromthe> remote machines and then using a perl script to push it to a web server. > >Now I've just added a new machine running CentOS 5.2 x64 to the script andI>get the error message in the subject line; "poll: protocol failure in >circuit setup".Replying on my own post for archival reasons: The error was in /etc/hosts.allow. I forgot to add a line "in.rshd: FQDN" in hosts.allow on the machine I imaged and then used to install to a bunch of other machines. Easy to miss though, there are a dozen or so other lines in there allowing other daemons and stuff. Fixing that, now "rsh remote-machine vmstat" works as expected. -- /Sorin -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5106 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20090312/64f3dd9d/attachment-0003.bin>