Strange- RCP command works every other time


 
Thread Tools Search this Thread
Operating Systems HP-UX Strange- RCP command works every other time
# 1  
Old 03-04-2010
Question Strange- RCP command works every other time

This just started happening.
I use the rcp command to copy a file from one server to another.

Now when I use the command, every other time I execute the exact same command I get the error: remshd: login correct

Example:

1. rcp testfile server2:/db/tmp (Work ok, verified file was copied to server2: /db/tmp

2. Next time I execute the command
rcp testfile server2:/db/tmp I get the error: remshd: login incorrect

3. Next time I execute the command:
rcp testfile server2:/db/tmp (Works ok)

4. Next time I execute the command
rcp testfile server2:/db/tmp I get the error: remshd: login incorrect

......... etc
# 2  
Old 03-04-2010
Since its remshd complaining, start by checking what going on by :
Code:
remsh server2
exit

and again to see if you fall in the same situation as rcp
# 3  
Old 03-04-2010
Data Every other try still giving a error

I ran the following command twice

remsh server2 cat testfile.txt > /db/tmp/filetest.txt

and again every other time get:
remshd: Login incorrect
# 4  
Old 03-04-2010
The point is you didnt do what was asked...
Go on to server2 using remsh then exit and start again, for if something is wrong it will ask you for your password...Thinking of it I saw something similar once... Are you on a cluster?
# 5  
Old 03-04-2010
Duplicate IP address?
# 6  
Old 03-05-2010
Hi methyl,
I saw 2 types of almost similar behaviour, issues due as you cited duplicate IP, the other one is with servers (in clusters or not) with many nic ( and so IPs) attached...
# 7  
Old 03-06-2010
Try "ping" with a couple of packets and see how many you get back. Assuming that UDP is allowed a 200% success would suggest a duplicate IP address.


Slightly off topic because the symptoms do not match.
I too have seen strange issues with servers with multiple NICs each with their own IP address. We totally failed to make a server reply from the same IP address that it received the message - it always replied from the primary IP address and cause authentication, routing and firewall issues. Because security was paramount the solution was to install a bank of relay servers to isolate each IP address. Expensive but it worked very well.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl error in batch command but works one at a time

In the below perl executes if one file is processed perfect. However, when multiple files are processed in batch which is preferred I get the below error that I can not seem to fix it as the '' necessary for the command to execute, but seem to only work for one -arg option. Thank you :). ... (2 Replies)
Discussion started by: cmccabe
2 Replies

2. Shell Programming and Scripting

Script in bash that works only some of the time

I ran this script yesterday (in the background) /usr/bin/nohup myfilelocation/myscriptname.sh & the script worked perfectly. i ran it today (also in the background) and just sat there. So i killed it and ran it normally and it worked perfectly. Anyone suggest why it just sat there and... (8 Replies)
Discussion started by: twinion
8 Replies

3. Red Hat

Problems with rcp command

I have two servers A and B; A has redhat 5 and B has Suse10. Both of them has rhost file configuration. When i try to copy file from A to B that is OK but when try to copy from B to A i have an error: connection refused. I installed rsh and rsh-server on server A and stop iptables service. I need... (2 Replies)
Discussion started by: robinsonusp2014
2 Replies

4. Shell Programming and Scripting

Ftp script hangs for first time,but works every second time

Hi I have an ftp script which works fine when i execute through a test scheduler(UC4), but when i run it through the prod scheduler(UC4), it hungs indefinetely, when we cancel the job and re-run it it works perfectly fine. here is the code,, any idea why this is happening ???? ... (1 Reply)
Discussion started by: selvankj
1 Replies

5. UNIX for Dummies Questions & Answers

RCP command

hi, When i use RCP command to copy filr from a different servers, it is showing as connection refused??? ca anyone help me out??? thanks, Arun Manas:b: (2 Replies)
Discussion started by: arunmanas
2 Replies

6. Solaris

RCP command timed out

I HAVE A PERL SCRIPT WHICH RCP files from one server to another. The script is not having any issues for years and it is running for more than 3 years . Last week it had failed with error "Command timed out " error. Please help me out (3 Replies)
Discussion started by: praviper
3 Replies

7. Shell Programming and Scripting

rcp command

Hi friends, Am trying to push a file on a remote server to my local host but getting "permission denied." error. Please let me know the basic steps that i need to have a look at in order to let the "rcp" command work successfully. Pl. Note: Both the servers belong to Sun Solaris 10... (5 Replies)
Discussion started by: Srinivas_Hari
5 Replies

8. Shell Programming and Scripting

using rcp command

Hi All, I am writing a shell script which will copy binaries from one remote server to local server. I am using "rcp command". But "rcp" command asks for the login password when copying to local server. Can anybody tell me how to pass the password through the shell script? Thanks ... (2 Replies)
Discussion started by: amitrajvarma
2 Replies

9. AIX

rcp gets hung for long time

Every evening I run a script in AIX production box, which executes below command: rcp prod_bkup.tar prodapp@IP:/data/appl/prod This will rcp a backup of around 11 GB from production to another machine (runs every evening so overwrites previous one). Just to keep the backup safe. Since 2-3 days,... (0 Replies)
Discussion started by: panchpan
0 Replies

10. HP-UX

rcp command

Hi, Good day to you all. I am trying to use rcp command to transfer some files on the remote machine. I have already setup .rhosts on my server and on the remote machine. When I do rcp I get this error message rcmd_af: Lost connection Is anybody familiar with this one? Thanks in advance. ... (3 Replies)
Discussion started by: sodapop
3 Replies
Login or Register to Ask a Question