System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.
Avinash20
Honored Contributor

Re: I do a rcp on HPUX and receive error

Please change nsswitch.conf on both the hosts as

hosts: files [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue]
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Avinash20
Honored Contributor

Re: I do a rcp on HPUX and receive error

I am telling you to do above setting to look to the /etc/hosts first and then go for DNS

You could also check that on the DNS server, an alias is also added

hostname.domainname hostname

The above three should be there
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
bright image
Frequent Advisor

Re: I do a rcp on HPUX and receive error

I think the problem maybe the reverse lookup of the sending server on the destination server. This is used when checking if the server is allowsd to remsh / rcp (in .rhosts) The reverse lookup must match and entry in this file on the destination.
Barbara Kramer
Frequent Advisor

Re: I do a rcp on HPUX and receive error

sorry, I have to catch my plane now and wil be back to service the hpboxes on monday

Pleeeeeeeeease do not be upset. It is an issue that has to wait until monday
thanks
Barbara
live is great !!
Avinash20
Honored Contributor

Re: I do a rcp on HPUX and receive error

Happy Journey :)
"Light travels faster than sound. That's why some people appear bright until you hear them speak."