FTP failure due to network problem


 
Thread Tools Search this Thread
Special Forums IP Networking FTP failure due to network problem
# 1  
Old 07-19-2010
FTP failure due to network problem

Hi,

I've been searching through out this forum to find the exact message when during the on-going FTP, suddenly the network went down but i cannot find some. Could anyone provide me the exact return codes when FTP failed during FTP or prior to FTP the network went down and you still proceeded to FTP.

Below is the sample of a "successfull" FTP. I think the message after "Connection will close if idle more than 5 minutes." is what i need.

Code:
220-QTCP at test07.
220 Connection will close if idle more than 5 minutes.
331 Enter password.
230 PULSE logged on.
250  Now using naming format "1".
200 Representation type is binary IMAGE.
?Invalid command
?Invalid command
200 PORT subcommand request successful.
150 Retrieving file /xx/yyy/zzz/aaa/S0715-10
250 File transfer completed successfully.
2021 bytes received in 0.02369 seconds (83.29 Kbytes/s)
local: /home/xxx/S0715-10.txt remote: /xx/yyy/zzz/aaa/S0715-10.
txt
221 QUIT subcommand received.

Thanks

Last edited by vibora; 07-19-2010 at 06:26 AM..
# 2  
Old 07-19-2010
See List of FTP server return codes - Wikipedia, the free encyclopedia

In general the return n2n deals with the connection. You need to ascertain which codes you want to check. And AFAIK the message you cite is not a standard one. 4nn messages can be anything the ftp server code writers want it to be.
This User Gave Thanks to jim mcnamara For This Post:
# 3  
Old 07-21-2010
Thanks I think I found what I need, the return code "426". Just need to add "grep" to get only "426" and now I can have a log for FTP failure due to network problem.

Code:
426 	Connection closed; transfer aborted.

# 4  
Old 08-04-2010
FYI

1xx Positive Preliminary reply
The requested action is being initiated; expect another reply before proceeding with a new command. (The user-process sending another command before the completion reply would be in violation of protocol; but server-FTP processes should queue any commands that arrive while a preceding command is in progress.) This type of reply can be used to indicate that the command was accepted and the user-process may now pay attention to the data connections, for implementations where simultaneous monitoring is difficult. The server-FTP process may send at most, one 1xx reply per command.
2xx Positive Completion reply
The requested action has been successfully completed. A new request may be initiated.
3xx Positive Intermediate reply
The command has been accepted, but the requested action is being held in abeyance, pending receipt of further information. The user should send another command specifying this information. This reply is used in command sequence groups

Bryan
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

FTP failure

Hi, We have a external vendor (outside firewall), who used to connect our ftp server till 2 days back. I am not able to figure out, what was changed. Now he is not able to login. When I login to ftp server (from inside firewall), I am able to connect with credentials. When that vendor login... (4 Replies)
Discussion started by: solaris_1977
4 Replies

2. Ubuntu

What is solution for this error "tar: Exiting with failure status due to previous errors"?

Does anyone know what is solution for this error ?tar: Exiting with failure status due to previous errors from last 3 days I am trying to take backup of home/user directory getting again and again same error please anyone give me solution (8 Replies)
Discussion started by: Akshay Hegde
8 Replies

3. Red Hat

Problem in RedHat Cluster Node while network Failure or in Hang mode

Hi, We are having many RedHat linux Server with Cluster facility for availability of service like HTTPD / MySQL. We face some issue while some issue related to power disturbance / fluctuation or Network failure. There is two Cluster Node configured in... (0 Replies)
Discussion started by: hirenkmistry
0 Replies

4. Shell Programming and Scripting

FTP failure with different scenario

Hi Gurus the below FTP code works fine, but the issue is from past 1 week couldn't able to send the files to external system. #--------------------------------------------------------------------# #Start the ftp session #--------------------------------------------------------------------#... (3 Replies)
Discussion started by: SeenuGuddu
3 Replies

5. Shell Programming and Scripting

Retry upon FTP failure

I am using the following code in a C Shell script to transfer files to a remote server: ftp -n logxx.xxxx.xxx.xxx.com <<DO_FTP1 quote user $user_name quote pass $password ascii put $js_file_name bin put $FinalZipFile quit DO_FTP1 This code works great except on those rare occasions... (8 Replies)
Discussion started by: phudgens
8 Replies

6. UNIX for Advanced & Expert Users

Problem due to Fork Error

Hi, I have developed a datastage job...which has many process running in parallel..but because of Fork Error my job is not working:( Can any body help me out to solve this Fork error problem.:rolleyes: My Os is SUNOS. IS there any setting in Unix through admin where in if i set some paramter... (8 Replies)
Discussion started by: Amey Joshi
8 Replies

7. Shell Programming and Scripting

Script problem due to recursive directories Help please

Hello everyone , I am looking for a better solution then the one I have created for the my Task The task is: Create an automated script that will check for Uploads in a specified Directory and move them to another specified Directory if the files are completely uploaded. Files are FTP'd to... (2 Replies)
Discussion started by: robertmcol
2 Replies

8. Filesystems, Disks and Memory

ACL problem due to mv command used in solaris

Hi All, Is there any way to use mv command and that should apply ACL on the moved files that is already set in distination location This mv command is running in a solaris system. File system is NFS. Problem I am facing : Currently mv command removes ACL from moved files and also it... (0 Replies)
Discussion started by: Tlogine
0 Replies

9. UNIX for Dummies Questions & Answers

failure writing network systems-ftp error

Hi, I tried to do a ftp get process from linux server to a remote system.It was giving an error 'failure writing network systems'.I am trying to ftp two files,one among them is successful and this problem occurs only if i run the code through 'cron' ie,manual run ends successfully. Would... (0 Replies)
Discussion started by: DILEEP410
0 Replies

10. Shell Programming and Scripting

Determining the failure or success of FTP

Hi there, I am in the process of writing a shell script to transfer files to a remote directory. Is there a method to determine the success or the failure of the ftp process. Regards Jim (4 Replies)
Discussion started by: JimJim
4 Replies
Login or Register to Ask a Question