Operating System - HP-UX
1748336 Members
4008 Online
108762 Solutions
New Discussion юеВ

Re: I do a rcp on HPUX and receive error

 
Barbara Kramer
Frequent Advisor

I do a rcp on HPUX and receive error

Hi,
I do a rcp file servername:/dest.

Just to receive the following answer:
remshd: Couldn't look up address for your host
the /etc/hosts does include the host
the /etc/services does include shell 514/tcp cmd # remote command, no passwd used
can you help me?
thanks Barbara
live is great !!
14 REPLIES 14
Pete Randall
Outstanding Contributor

Re: I do a rcp on HPUX and receive error

On the remote or destination server (servername), place an entry in the /etc/hosts file which identifies your source server.


Pete

Pete
bright image
Frequent Advisor

Re: I do a rcp on HPUX and receive error

Please check the permissions on /etc/hosts.

Is is world readable? (should be 644 -rw-r--r--).
Barbara Kramer
Frequent Advisor

Re: I do a rcp on HPUX and receive error

Hi,
thanks for your help.
On both system - both are of same typ, same OS - HPUX 11.11, the /etc/hosts is readable for the whole world and the entries are the same ....
any other idea ?
thanks Barbara
live is great !!
Frank de Vries
Respected Contributor

Re: I do a rcp on HPUX and receive error

If it isn't permissions on the local host file it maybe an issue with domain suffix.

do a forward and reverse nslookup.
and see if it is consistent.
- you may have multiple names attached to
single ip, which causes round robin or
other sympt like that.

and check your /etc/resolv.conf
(for correct domain search list)

and /etc/nsswitch.conf
(to look at /etc/host first)

Look before you leap
bright image
Frequent Advisor

Re: I do a rcp on HPUX and receive error

Can you ping servername?
Avinash20
Honored Contributor

Re: I do a rcp on HPUX and receive error

Hi,

Try to rlogin to the hosts
Execute the following command

# who -ru

You could find the server from which you were logged.

Add the same server name in /.rhosts file

# cat /.rhosts
root

Then check in /etc/nsswitch.conf file

hosts: files dns nis

If above files doesn't exist, then copy

cp /etc/nsswitch.files /etc/nsswitch.conf

Then try to do rcp

PS: Please assign point if you find your answers
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Barbara Kramer
Frequent Advisor

Re: I do a rcp on HPUX and receive error

Hi,
again thanks for responding so fast
well,
I do a nslookup servername
it comes back right of way
I do a nslookup serverip
it comes back right of way
I check the /etc/hosts
host and domain are there
I check the /etc/resolv.conf - it shows the right domain
I check the /etc/nsswitch.conf, it holds the following:
hosts: dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] files [N
OTFOUND=return UNAVAIL=continue TRYAGAIN=return]

which is okay to me
any other ideas ??
live is great !!
OldSchool
Honored Contributor

Re: I do a rcp on HPUX and receive error

did you do the nslookups on *both* servers, using *both* server names / ips?
Md. Farhan A Azam
Trusted Contributor

Re: I do a rcp on HPUX and receive error

Hi,

can u post the output commands (both server):-

#more /etc/hosts
#more .rhosts
#more /etc/hosts.equiv
#more /etc/passwd
#id
#hostname
#ping response

and through which user you want to do rcp.

User name should be same in source and remote server.