Operating System - HP-UX
1837897 Members
3307 Online
110123 Solutions
New Discussion

Re: rlogin/remsh to local host using MC/SG package

 
SOLVED
Go to solution
Genta Paola
New Member

rlogin/remsh to local host using MC/SG package

Hello,
I've a Service Guard clusterized environment on HPUX 11.0 nodes.
I need to use the remsh command in a package control script to start and stop a client server application. The server part of this application runs in this package, while the client part is a component of another package, whose primary node is another machine.
When the script run on its primary node, the command works fine:
This is packageA on nodeA
....
remsh PackageB -n "Command onto PackageB 1>&- 2>&- &"

PackageB runs on nodeB
PackageA at failover switches to nodeB, where it fails due to the following error:
remshd: Login incorrect.

Sorry for the long introduction :-))
The problem is simple:
when on nodeA I type
rlogin nodeA
it works fine, (doesn't prompt for password)
while if I type
rlogin packageA
it asks me the password. (where packageA is the name of a package running on nodeA)
The same if I type
rlogin Package IP address

I've already checked .rhosts (contents and permissions) inetd.conf, /etc/hosts (that resolves).

Can anyone help?

Thanks in advance
Paola
4 REPLIES 4
Prashant Zanwar_4
Respected Contributor

Re: rlogin/remsh to local host using MC/SG package

Hi,

It's a floating IP which you are using in my belief. While when you say IP of node, it's node IP.
Check your package IP in /etc/hosts file and also in DNS if you are using.
Similarly /etc/nodename file will matter in this case I believe.
Hope this helps
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Eduardo Dias_1
New Member
Solution

Re: rlogin/remsh to local host using MC/SG package

Paola,

I did a test on my cluster and worked fine.
Try to put into /.rhosts and /etc/hosts all IP addess (both packages IP and both systems IP address). Do it on both systems (A&B).
If you use DNS, make sure that DNS resolve the correct hostnames.

I use on my clusters, resolve the hostnames first using hosts and then if it fails use DNS. I put all systems and packages IP addres on /etc/hosts.
I put on /etc/nsswitch.conf the folowing line:
hosts: files [TRYAGAIN=continue NOTFOUND=continue] dns
The line above, change the resolver rule, and is 1 line.

Take a look on my test:
-take care to change the resolver rule, make sure if you can
/etc/nsswitch.conf -> system A & B
hosts: files [TRYAGAIN=continue NOTFOUND=continue] dns

/etc/hosts -> system A & B
IP systemA
IP systemB
IP packageA
IP packageB

/.rhosts -> system A & B
IP systemA
IP systemB
IP packageA
IP packageB

If you are using /etc/cmclnodelist and experience an error during the test, try to move the file /etc/cmclnodelist to other name and try the test again.

I hope this helps.

Regards,

Eduardo Dias
Genta Paola
New Member

Re: rlogin/remsh to local host using MC/SG package

Prashant, Eduardo,
thanks for your prompt reply!

I just added the IP package to the .rhost file and it works!!
(I had already added yesterday the package name and it wasn't enough)

As for the /etc/nsswitch.conf I had
hosts: files [NOTFOUND=continue] dns
and it was OK (TRYAGAIN is usefull only if source is busy and this was not my case)

As for the /etc/hosts
it is not mandatory to add package name and IP address in local hosts file: I have DNS on anonther box. I just made a test with another package and worked simply adding its IP address into .rhost user file

Thanks a lot again
Paola
Genta Paola
New Member

Re: rlogin/remsh to local host using MC/SG package

.