cancel
Showing results for 
Search instead for 
Did you mean: 

rlogin to package name

 
SOLVED
Go to solution

rlogin to package name

Hi,

I have defined .rhosts files with the hostnames on which the MC/SG package runs and also the package e.g.
hostA root
hostB root
pack1 root


If the package runs on hostA, I can perform "rlogin pack1" from hostB successfully.

But with package running on hostA, if I login to hostA and perform "rlogin pack1" it fails !

Any idea what is the issue?

br
Manminder
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: rlogin to package name

Shalom,

You don't log into package names.

Your network is not set up to resolve package names. Its set up to resolve ip addresses and if DNS or /etc/hosts is set a name to an ip address.

If you have set up a floating ip address in the package control script pack1 then you can set up /etc/hosts or your DNS server to resolve that name to the numeric ip address of the floating ip address of the package.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: rlogin to package name

To add more details:
1. /etc/hosts entry has been created for the package name
2. I can successfully ping the package name
3. the rlogin asks me for passwd when doing it from the same machine where the pacakge is running. but if i do it from the other machine where it is not running it allows me to login without asking for the passwd.
4. I have the same entry in both /.rhosts

br
Manminder
rayche
Frequent Advisor

Re: rlogin to package name

Service name is different with Host name,you do not need write service name to .rhosts file, just host name. Could u check the configuration of your MC/SG ?

Re: rlogin to package name

Hi,

This is nothing to do with service name. The package is starting up some applications which need to do rcp/remsh etc. I am using the package name as the target. e.g. rcp Pack1:/tmp/1 /var/tmp/1

Now if the command is run on the as to where Pack1 is running it is not ok, but from a different host then it is ok.

I hope I am getting the issue through, or perhaps I need to reword?

br
Manminder
Highlighted
Rajesh SB
Esteemed Contributor
Solution

Re: rlogin to package name

Hi Manminder,

It sounds like host resolution issue.
Make an following enty in the .rhosts file and try.

IP-Address-of-pack1 root

Cheers,
Rajesh SB

Re: rlogin to package name

Hi Rajesh,

Worked :-)

Had to put in the root.

br
Manminder
Carlos M.J.
Frequent Advisor

Re: rlogin to package name


This is a name resolution issue.

Include your "IP package_name" pair on your /etc/hosts file for every package on every host.

X.X.X.X package1
X.X.X.Y package2

Check /etc/nsswitch.conf to resolve hosts by files (and something else, like DNS).

for example:
...
hosts: files [NOTFOUND=continue] dns
...

rlogin as usual.