- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: rlogin/remsh to local host using MC/SG package
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2004 05:14 AM
09-28-2004 05:14 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2004 08:52 AM
09-28-2004 08:52 AM
Re: rlogin/remsh to local host using MC/SG package
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2004 01:10 PM
09-28-2004 01:10 PM
SolutionI 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2004 08:26 PM
09-28-2004 08:26 PM
Re: rlogin/remsh to local host using MC/SG package
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2004 08:35 PM
09-28-2004 08:35 PM