1824955 Members
3610 Online
109678 Solutions
New Discussion юеВ

FTP Service

 
Narayan Alawandi
New Member

FTP Service

Hi There,

I am using FTP commands in the schedule task batch file to login and transfer the file between one of the mailbox and my Client's server.

FTP works fine for 2 or 3 days and suddenly stops working, i mean FTP does not close its session even after the file transfer(task manager shows the open FTP session). And this stops the next file transfer.

I have attached the logfile which shows 3 sessions.

Session 1 and 2-- Successful
Session 3 -- Unsuccessful

After 3nd session ftp session does not close.

any ideas will be much appriciated,

Regards,

Narayan
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: FTP Service

Shalom,

1) What is the Linux distribution and version number.
2) What is the ftp server being used? rpm -qa | grep ftp
3) What is the client for ftp?

Suggestions,

1) Try sftp public key encryption exchanged.
2) Check /var/log/messages for networking issues at the time of failure.
3) Check the remote system log
4) Check the network infrastructure for corresponding problems at time of failure.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
timmy2006
Advisor

Re: FTP Service

I suppose we talking about win32 machine? (U wrote "... task manager shows ...")

1. From what to what platform you are connecting? (try 'telnet FTP_SEVER 21' - perhaps SERVER will show it's name)
2. Turn on Debug Mode on SERVER.
3. use tcpdump to port 20 and port 21.
if your ftp task is sheduled - run tcpdump before ftp session and make it write data to file - dont forget to limit number of packets in tcpdump call)
4. check if there IIS or IPFW|IPTABLES somwhere between client and server.
5. R U connecting directly? (client and server in the same network)
Alpha977
Valued Contributor

Re: FTP Service

Install Ethereal on the windows machine and use tcpdump to linux machine.

Then open the tcpdump file with ethereal and "Follow the tcp stream".

Make the same with windows machine.