rcp gets hung for long time


 
Thread Tools Search this Thread
Operating Systems AIX rcp gets hung for long time
# 1  
Old 01-09-2008
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, I notice that this command takes quite longer than normal days and when I go to another machine - I am allowed to login, But when I give 'ls -l /data/appl/prod' nothing comes and looks like session on both windows kinda hung state. Then I press ctrl C on production.

Then next morning 'ls -l /data/appl/prod' command also works fine on another machine and I see that backup is copied (not fully, the byte difference is there) of around 2 hours later time stamp. And I tried rcping a 0 byte from production to another machine also works fine. Only problem comes during evening when I rcp the backup.

Do you know what might be going wrong and where can I find such logs on AIX machines?

Please advice / Thank you.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

First script in a long time

I was wondering if I could get some feedback on my script to grab time from our MDM... I blocked out all of the important stuff. I really appreciate any guidance, since I am long out of practice. #!/bin/bash serial=$1 # get last seen value of ipad lastseen=$(curl -s -X "GET"... (11 Replies)
Discussion started by: andysensible
11 Replies

2. UNIX for Dummies Questions & Answers

ls is taking long time to list

Hi, All the data are kept on Netapp using NFS. some directories are so fast when doing ls but few of them are slow. After doing few times, it becomes fast. Then again after few minutes, it becomes slow again. Can you advise what's going on? This one directory I am very interested is giving... (3 Replies)
Discussion started by: samnyc
3 Replies

3. Shell Programming and Scripting

How long ago since time - Using perl

echo "1337124526" | perl -pe 's/(\d+)/easttime($1)/e' the above gives a date and time. how can i subtract the date and time given by this command, from the current present date? can this be a one liner or as close to a one-liner as possible? (1 Reply)
Discussion started by: SkySmart
1 Replies

4. Shell Programming and Scripting

sort takes a long time

Dear experts I have a 200MG text file in this format: text \tab number I try to sort using options -fd and it takes very long! is that normal or I can speed it up in some ways? I dont want to split the file since this one is already splitted. I use this command: sort -fd file >... (12 Replies)
Discussion started by: voolek
12 Replies

5. UNIX for Dummies Questions & Answers

Job is taking long time

Hi , We have 20 jobs are scheduled. In that one of our job is taking long time ,it's not completing. If we are not terminating it's running infinity time actually the job completion time is 5 minutes. The job is deleting some records from the table and two insert statements and one select... (7 Replies)
Discussion started by: ajaykumarkona
7 Replies

6. HP-UX

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... (6 Replies)
Discussion started by: jrowland
6 Replies

7. HP-UX

ssh session getting hung (smilar to hpux telnet session is getting hung after about 15 minutes)

Our network administrators implemented some sort of check to kill idle sessions and now burden is on us to run some sort of keep alive. Client based keep alive doesn't do a very good job. I have same issue with ssh. Does solution 2 provided above apply for ssh sessions also? (1 Reply)
Discussion started by: yoda9691
1 Replies

8. Shell Programming and Scripting

help - exec time too long

Dear everyone... thanks to this forum I am able to do everyday more and more complex scripts...but now I come up with problem with optimisation.. problem 1 - optimise: here is my code: while read number do nawk -F "|" -v... (8 Replies)
Discussion started by: abdulaziz
8 Replies

9. Solaris

ssh Long time to return prompt.

Hi All, I was installed new server M5000 on solaris10. I'am try to connect to server by ssh client (putty) after type user name and password the server take long time to return prompt to me about 30-60 second. any body can suggess me how to do it. (8 Replies)
Discussion started by: cesmk
8 Replies

10. Programming

Debug env for long time use

Hi, I'm pritty new to C, but a recent bug in a program i've been using has forced me to debug it. But I am unable to find a debugger that can act as a layer between the OS and the program to see whats going on.. The problem is that this piece of software makes a connection through localhost... (2 Replies)
Discussion started by: nephilimbe
2 Replies
Login or Register to Ask a Question
LCP(1)							    BSD General Commands Manual 						    LCP(1)

NAME
lcp -- Secure remote file copy SYNOPSIS
lcp [-fvn] [[user@]host1:]file1 [[user@]host2:]file2 DESCRIPTION
lcp is a program that securely copies files between two hosts on a network. This is intended as a secure replacement for rcp(1). Note that both the source and the destination can be on remote machines. OPTIONS
Available options: --help Show summary of options. -f, --force Overwrite existing files. -v, --version Display commands before they are executed. -n, --dry-run Don't execute any commands. Implies -v. ENVIRONMENT
LSFTP_RSH The program to use for the SSH tunnel. If the variable is not set, lcp defaults to using lsh. REPORTING BUGS
Report bugs to <bug-lsh@gnu.org>. AUTHOR
The lsh program suite is written mainly by Niels Moller <nisse@lysator.liu.se>. This man-page was written for the Debian GNU/Linux system by Charles Fry <debian@frogcircus.org>. SEE ALSO
rcp(1), scp(1), lsftp(1), lsh(1), lshd(8) BSD
November 8, 2005 BSD