1832529 Members
7818 Online
110043 Solutions
New Discussion

remsh problem

 
Chamitha Wijesekera
Frequent Advisor

remsh problem

I'm new to HP-UX and have a problem executing remsh. When I type,

remsh uname

simply to list the OS type of the remote machine I get the message,

remsh: getservbyname

I have no idea what to do! By the way i'm trying the remsh command on my local machine for simplicity. ie if my local machine name is "wizard" i'm presently typing,

remsh wizard uname

6 REPLIES 6
Rodney Hills
Honored Contributor

Re: remsh problem

Sounds like your system is trying to use NIS to lookup the host name.

Edit /etc/nsswitch.conf to not include NIS in its search if you are not using NIS.

If you are using NIS, then their must be a problem in your NIS setup.

-- Rod Hills
There be dragons...
PIYUSH D. PATEL
Honored Contributor

Re: remsh problem

Hi,

Check your /etc/hosts file properly for the hostname.

What is the output of

#nslookup wizard

Piyush
Chamitha Wijesekera
Frequent Advisor

Re: remsh problem

yes i am using a nis account to login to my machine.

i tried including the machine name and account name to the .rhosts and hosts.equiv files on the machine i want to access (which is my local machine itself) however this did not help either
Chamitha Wijesekera
Frequent Advisor

Re: remsh problem

nsswitch wizard output is as follows

Name Server: sahara.vignette.com
Address: 10.18.0.103

Trying DNS
Trying NIS
looking up FILES
*** No address information is available for "wizard"
Wodisch
Honored Contributor

Re: remsh problem

Hi,

well include your system "wizard" into the NIS-server's master-map (or into the DNS-server's zone-files), or into your local "/etc/hosts".
In your "/etc/nsswitch.conf" should be a line like that:

hosts: files [NOTFOUND=continue] nis [NOTFOUND=continue] dns

Which means that your system will first search in your local "hosts" file, then ask a NIS-server and at last query the DNS-server. Use the order you want, of course.

Try a "rlogin wizard" first, and (if it works), execute "who -u" to see the name used, and put that into the system's "$HOME/.rhosts" (or "/etc/hosts.equiv").

Then try again.

HTH,
Wodisch
PIYUSH D. PATEL
Honored Contributor

Re: remsh problem

Hi,

change the order in your nsswitch.conf file

files nis dns

Piyush