1833431 Members
3381 Online
110052 Solutions
New Discussion

Re: rcp not working....

 
boomer_2
Super Advisor

rcp not working....

Hi,
i have 2 hp servers in which rcp is not wrkng...

rx4640....
hpux 11i v2

2 ip,s 10.1.4.xxx and the other is in 10.1.1.xxx n/w


i get this error ;

root #/ >rlogin 10.1.1.4
rcmd_af: connect: 10.1.1.4: Network is unreachable
============================================

root #/ >rlogin 10.1.4.210
rcmd_af: connect: 10.1.4.210: Connection timed out



From 10.1.1.4 we have ;
gateway 10.1.1.1

root #/ >ping 10.1.4.1
PING 10.1.4.1: 64 byte packets
64 bytes from 10.1.4.1: icmp_seq=0. time=7. ms
64 bytes from 10.1.4.1: icmp_seq=1. time=6. ms
64 bytes from 10.1.4.1: icmp_seq=2. time=6. ms

----10.1.4.1 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 6/6/7

root #/ >cat .rhosts
cedge1 root
cedge2 root
10.1.1.4 root
10.1.4.210 root
10.1.4.211 root


From 10.1.4.210 we have :->

gateway 10.1.4.1


root #/ >ping 10.1.1.1
PING 10.1.1.1: 64 byte packets

----10.1.1.1 PING Statistics----
8 packets transmitted, 0 packets received, 100% packet loss


root #/ >cat .rhosts
cedge1 root
cedge2 root
10.1.1.4 root
10.1.4.210 root
10.1.4.211 root
23 REPLIES 23
Asif Sharif
Honored Contributor

Re: rcp not working....

Hi boomer,

It seems there is some routing issue.Kindly share output of "#netstat -rn" command.

Regards,
Asif Sharif
Regards,
Asif Sharif
boomer_2
Super Advisor

Re: rcp not working....

Hi Asif,


from 10.1.1.4 end :->
=======================

root #/ >netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
10.1.1.4 10.1.1.4 UH 0 lan0 4136
10.1.1.0 10.1.1.4 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 10.1.1.1 UG 0 lan0 0


=============================================

from 10.1.4.210 end :->
=======================


root #/ >netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
10.1.4.210 10.1.4.210 UH 0 lan0 4136
10.1.4.0 10.1.4.210 U 2 lan0 1500
default 10.1.4.1 UG 0 lan0 0

Asif Sharif
Honored Contributor

Re: rcp not working....

Hi Boomer,

Is there any router/firewall involve in this scenario, If yes, please ask you network team to check its routing.

Regards,
Asif Sharif
Regards,
Asif Sharif
Rajeev  Shukla
Honored Contributor

Re: rcp not working....

The rcp requires 2 way communication and from your pings there surely is issues with the communication between either the 2 servers or between the 2 vlans.
1. First confirm with the network team that the routing between the vlans is setup correctly.
2. confirm the you are using the right subnet mask in both the servers.
3. Try pinging someother machines/server from each servers.
can you also post the traceroute from both the servers to one another and also the ifconfig output of the interfaces.

Cheers
Raj
boomer_2
Super Advisor

Re: rcp not working....

Ok Asif,
There is nthg at 10.1.4.xx end but will chk wid my netwrkng team at 10.1.1.xx end....

thanks...
boomer_2
Super Advisor

Re: rcp not working....

hi Rajeev,

from 10.1.1.4 end :->
-=================


root #/ >ping 10.1.4.211
PING 10.1.4.211: 64 byte packets
64 bytes from 10.1.4.211: icmp_seq=0. time=6. ms
64 bytes from 10.1.4.211: icmp_seq=1. time=7. ms

----10.1.4.211 PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 6/7/7
root #/ >ping 10.1.4.18
PING 10.1.4.18: 64 byte packets
64 bytes from 10.1.4.18: icmp_seq=0. time=6. ms
64 bytes from 10.1.4.18: icmp_seq=1. time=6. ms
64 bytes from 10.1.4.18: icmp_seq=2. time=6. ms

----10.1.4.18 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 6/6/6
root #/ >ping 10.1.4.19
PING 10.1.4.19: 64 byte packets
64 bytes from 10.1.4.19: icmp_seq=0. time=6. ms
64 bytes from 10.1.4.19: icmp_seq=1. time=6. ms
64 bytes from 10.1.4.19: icmp_seq=2. time=6. ms

----10.1.4.19 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 6/6/6


root #/ >ping 10.1.4.210
PING 10.1.4.210: 64 byte packets

----10.1.4.210 PING Statistics----
12 packets transmitted, 0 packets received, 100% packet loss


===========================================


From 10.1.4.210 end :->
==========================


root #/ >ping 10.1.4.211
PING 10.1.4.211: 64 byte packets
64 bytes from 10.1.4.211: icmp_seq=0. time=0. ms
64 bytes from 10.1.4.211: icmp_seq=1. time=0. ms
64 bytes from 10.1.4.211: icmp_seq=2. time=0. ms

----10.1.4.211 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
root #/ >ping 10.1.4.18
PING 10.1.4.18: 64 byte packets
64 bytes from 10.1.4.18: icmp_seq=0. time=0. ms
64 bytes from 10.1.4.18: icmp_seq=1. time=0. ms
64 bytes from 10.1.4.18: icmp_seq=2. time=0. ms

----10.1.4.18 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
root #/ >ping 10.1.4.19
PING 10.1.4.19: 64 byte packets
64 bytes from 10.1.4.19: icmp_seq=0. time=0. ms
64 bytes from 10.1.4.19: icmp_seq=1. time=0. ms
64 bytes from 10.1.4.19: icmp_seq=2. time=0. ms

----10.1.4.19 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0


root #/ >ping 10.1.1.4
PING 10.1.1.4: 64 byte packets

----10.1.1.4 PING Statistics----
3 packets transmitted, 0 packets received, 100% packet loss
boomer_2
Super Advisor

Re: rcp not working....

Hi Rajeev,

from 10.1.1.4;;;;

root #/ >traceroute 10.1.4.210
traceroute to 10.1.4.210 (10.1.4.210), 30 hops max, 40 byte packets
1 10.1.1.1 (10.1.1.1) 0.835 ms 1.138 ms 0.800 ms
2 97.0.2.53 (97.0.2.53) 9.570 ms 8.352 ms 7.497 ms
3 * * *

ifconfig lan0;
>ifconfig lan0
lan0: flags=1843
inet 10.1.1.4 netmask ffffff00 broadcast 10.1.1.255



from 10.1.4.210;;;;


root #/ >ifconfig lan0
lan0: flags=1843
inet 10.1.4.210 netmask fffffe00 broadcast 10.1.5.255


root #/ >traceroute 10.1.1.4
traceroute to 10.1.1.4 (10.1.1.4), 30 hops max, 40 byte packets
1 cedge11 (10.1.4.210) 0.106 ms !N 0.059 ms !N 0.021 ms !N


Rajeev  Shukla
Honored Contributor

Re: rcp not working....

Your route and server 10.1.1.4 is correctly setup. From the other side i.e server 10.1.4.210 i would like you to ping servers in 10.1.1.x range.
1. Also send me the ifconfig lan0 output from both the servers please
2. run traceroute 10.1.1.4 from 10.1.4.210
Rajeev  Shukla
Honored Contributor

Re: rcp not working....

Thanks, you seemed to be quicker than me.
It looks like the default route on 10.1.4.210 is not setup correctly. It cant even reach the default route.
From what i think is you wont be able to ping 10.1.4.1 from 10.1.4.210.
Please check with the network team as what the default route and subnet mask should be for the vlan 10.1.4.x

Jeeshan
Honored Contributor

Re: rcp not working....

ping reply shows, you have connectivity.

is there any firewall applied?
a warrior never quits
boomer_2
Super Advisor

Re: rcp not working....

Hi Rajeev,Ahsan,

fine i will chk with my netwrk team and let u know asap....
boomer_2
Super Advisor

Re: rcp not working....

hi Rajeev,
I changed my ip from 10.1.4.210 to 10.1.4.176 ..
nw m able to rlogin from 10.1.4.176 tp 10.1.1.4...


but m not able to do rcp from my 10.1.4.xxx n/w to 10.1.1.4 n/w....from any of my servers...

root #/tmp >rcp Wednesday.txt 10.1.1.4:/tmp
remshd: Login incorrect.

m getting the above msg for all of my 4 servers in 10.1.4.xxxx n/w....

i have 4 servers in 10.1.4.xxx n/w.....
and 1 server in 10.1.1.4 n/w.....
Asif Sharif
Honored Contributor

Re: rcp not working....

To resolve remshd: Login incorrect error, modify the 'hosts.equiv' and the '.rhosts' files to include each system's fully qualified name.

or put "+" in .rhosts file.

Regards,
Asif Sharif
Regards,
Asif Sharif
boomer_2
Super Advisor

Re: rcp not working....

Hi Asif,

my .rhosts entry in 10.1.1.4 is as follows :->

root #/ >cat .rhosts
+ cedge1 root
+ cedge2 root
+ 10.1.1.4 root
+ 10.1.4.176 root
+ 10.1.4.211 root


still m getting d same error...
Asif Sharif
Honored Contributor

Re: rcp not working....

just put "+" only in .rhosts file.
its looks like this

#cat .rhosts
+
#

Regards,
Asif Sharif
Regards,
Asif Sharif
boomer_2
Super Advisor

Re: rcp not working....

hi Asif,
one more thing nw m able to do rcp from 10.1.1.4 to all the 4 servers....


i.e. from 10.1.1.xxxx n/w to 10.1.4.xxxx n/w....


BUT M NOT ABLE TO DO RCP FROM 10.1.4.xxxx n/w to 10.1.1.xxxx n/w
boomer_2
Super Advisor

Re: rcp not working....

Asif,
Its still not wrkng from 10.1.4.xxxx n/w....to 10.1.1.xxxxx n/w...
even after putting "+" in .rhosts file....
Asif Sharif
Honored Contributor

Re: rcp not working....

Boomer,

The error message is same?
remshd: Login incorrect

Regards,
Asif Sharif
Regards,
Asif Sharif
boomer_2
Super Advisor

Re: rcp not working....

Hi Asif,
its d same again ..

remshd: Login incorrect
Asif Sharif
Honored Contributor

Re: rcp not working....

boomer_2
Super Advisor

Re: rcp not working....

Asif,
m not able to go to the given url's...
Can u please post it agin...
Asif Sharif
Honored Contributor

Re: rcp not working....

Also please see the Technical knowledge base - document

http://www12.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01032593-2

Regards,
Asif Sharif
Regards,
Asif Sharif