Sponsored Content
Full Discussion: Issue with ftp hanging
Top Forums UNIX for Advanced & Expert Users Issue with ftp hanging Post 302948531 by edstevens on Tuesday 30th of June 2015 02:06:07 PM
Old 06-30-2015
Quote:
Originally Posted by hicksd8
@edstevens......We are discussing network performance here so, for the avoidance of doubt, there is no Windoze involved in this, is there? We are talking Oracle Linux here, yes?
No Windows at all (thankfully Smilie) Both servers are Oracle Linux.

---------- Post updated at 01:06 PM ---------- Previous update was at 08:09 AM ----------

Quote:
Originally Posted by hicksd8
Since the problem occurred after relocation I'd be inclined to suspect the network. I'd write a script to ping the target, say, every 10 seconds (to avoid too much artificial network traffic) and leave it running in front of me. When the ftp 'hangs' is the ping still fast????
Ok, here's what I did and what I found ..
First, a script to capture some good ping statistics

Code:
#!/bin/sh
rm edspingtest.log
echo starting first ping at `date`
ping -c 20 -i 10 myprodserver >> edspingtest.log
echo Starting ftp job at `date`
echo Starting ftp job at `date` >> edspingtest.log
nohup /u01/app/oracle/dba/eds_ftp_test > /backup/eds_ftp_test.log &
echo starting second ping at `date`
ping -c 20 -i 10 myprodserver >> edspingtest.log

The summary stats of the first 20 pings (before launching the ftp):

Code:
rtt min/avg/max/mdev = 0.155/0.595/4.702/1.036 ms

And the 20 pings during the ftp:

Code:
rtt min/avg/max/mdev = 0.157/2.266/16.610/4.356 ms

So there was a significant difference. Not sure what to do with that information.

By way of comparison, a simple 'ping -c 50' from the same test server to a different test server (same data center, so not using the link between DC's) yielded these stats:

Code:
rtt min/avg/max/mdev = 0.081/0.124/1.136/0.171 ms

So at "the end of the day", it's obvious that the data link between the two dC's is rather slow, and there's nothing I can do about that. I can (and probably should) get the files copied with scp instead of ftp. But I still find it puzzling that the ftp should completely hang the way it does.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

ftp issue

Hi all, I am trying to connect to ftp through the following shell script ip='172.12.40.45' user='oracele' pw='oracle@7Hills' ftp -n -i -v $ip<<EOF user $user $pw EOF But i am getting the following message $ /home/oracle/practice/ftptst Connected to 172.12.40.45. 220 (vsFTPd... (5 Replies)
Discussion started by: ravi raj kumar
5 Replies

2. Shell Programming and Scripting

ftp issue

I was changing a bit of the existing script and didnt comment the ftp part in it. So, the ftp step executed, but there was no input file. I got the message like this netout: write returned 0? 250 Transfer completed successfully. What does this mean?. Has the ftp replaced the existing... (1 Reply)
Discussion started by: dnat
1 Replies

3. Shell Programming and Scripting

FTP Issue-Help

Hi all, I am trying to transfer files from one server to another. Following is script i wrote for this purpose. It downloads the file to the server which the script is residing and uploads it to the remote server. Main Script #!/bin/bash -x ... (2 Replies)
Discussion started by: Tuxidow
2 Replies

4. Shell Programming and Scripting

FTP client is hanging very rarely!

Hi, I have a script in which I am using ftp to transfer some files from remote -> local and vice versa, this scripts is invoked by cron. for your reference I am sharing the function also : ============================================= fn_FileTransfer_LocalToRemote() { set -x... (1 Reply)
Discussion started by: anshuman0507
1 Replies

5. IP Networking

FTP issue

Hello all, FTP times out when I transfer large files. Small files get transffered fine. small files -------- -bash-3.1$ ftp -i cldevoradb01 Connected to cldevoradb01.enterprisenet.org. 220 (vsFTPd 2.0.5) 530 Please login with USER and PASS. 530 Please login with USER and PASS.... (4 Replies)
Discussion started by: luft
4 Replies

6. UNIX for Dummies Questions & Answers

FTP Issue

Hi all, iam trying to connect to a ftp site in putty by using the follwing command . ftp URLname. I get the below error ftp: usftp.ABC.com: unknown host. Iam able to connect to the same site through windows commandline. Can anyone put your thoughts on what might be the issue?. ... (2 Replies)
Discussion started by: swathich
2 Replies

7. Shell Programming and Scripting

ftp issue

Hi again, I'm using the following shell script via cron to upload the daily log files from my shell to the web server so we can view them online. But somehow logs get corrupted and i don't know what's issue. I would really appreciate for your help please. Shell Script: ftp.sh #!/bin/sh... (3 Replies)
Discussion started by: user`
3 Replies

8. UNIX for Advanced & Expert Users

Ftp issue

Hi we are facing an issue on our server our job connects to a target server and pulls the file from a location .But it is taking too much time to do this . Hwne i manully do the ftp it finished in few seconds .but when the jobs is pulling it is taking 30 to 40 min . please see the log... (1 Reply)
Discussion started by: ptappeta
1 Replies

9. Shell Programming and Scripting

Connecting to a server using FTP is hanging

Hi Friends I have created a shell script to connect to a windows server. But the problem is while trying to run the script I am not getting any output. After running the script it is hanged and the prompt is not showing until if I press the ctrl+Z to break the script. I also tried using the FTP... (2 Replies)
Discussion started by: Kannannair
2 Replies

10. Shell Programming and Scripting

Ftp issue

I have logged into ftp and unable to enter into the below directory. can anyone help me out to enter into the below directory. ftp> dir 200 Command PORT okay. 150 File status okay; about to open data connection. drwx------ 0 0 Dec 15 06:39 BANK ISI-Bas ftp> cd BANK... (5 Replies)
Discussion started by: ramkumar15
5 Replies
All times are GMT -4. The time now is 05:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy