Operating System - HP-UX
1833966 Members
1749 Online
110063 Solutions
New Discussion

FTP fails after 40 files ftped

 
la_cool
Occasional Advisor

FTP fails after 40 files ftped

I'm trying to fTP 50 files from HP Unix to Sun
For some reason it stops after 40 files and then it loses connection.

Can anyone help me with this ....

7 REPLIES 7
RAC_1
Honored Contributor

Re: FTP fails after 40 files ftped

What does ftp log, syslog says??

Anil
There is no substitute to HARDWORK
Sanjay_6
Honored Contributor

Re: FTP fails after 40 files ftped

Hi,

Is there a firewall in between the two. Could be the firewall has a timeout. Are you getting anything in the logs.

Hope this helps.

Regds
la_cool
Occasional Advisor

Re: FTP fails after 40 files ftped

Log says unsucessful.
I dont think timeout is problem .
No idea why it stops suddenly in between .

Is there a way within FTP utility,
no. of file transferrd can be controlled ..

Stephen Badgett
Regular Advisor

Re: FTP fails after 40 files ftped

I know that in ftp I can set idle seconds.

Ours is set to ...
ftp> idle
200 Current IDLE time limit is 900 seconds; max 7200


hope this helps

Steve
Not as is, is now
Sundar_7
Honored Contributor

Re: FTP fails after 40 files ftped

Is there a firewall between the client and the server ?

FTP uses two ports 20 and 21 for communication.

20 is uses for COMMANDS and 21 is used for DATA.

If you are tranferring BIG files, port 20 will be idle till the time next command is issued. Some firewalls will consider as an idle connection and will RST the connection.

Is this like an intermittent problem or something that can be reproduced ?
Learn What to do ,How to do and more importantly When to do ?
rick jones
Honored Contributor

Re: FTP fails after 40 files ftped

Does it always stop after the same file, or can a different file be the 40th file and it still stop?

Which version of HP-UX? Which version of Sun?

What is the value of maxfiles on both the HP-UX and the Sun side? At some points in the past, the default was 60 and while that would seem to allow a file descritpor leak to go beyond 40 files transfered (each file transfered will be a separate FTP data connection) who knows. You migth try to tusc on the HP side and truss on the Sun side and see what is happening with the file descriptors as things progress. Perhaps one side is forgetting to call close().

FWIW, I can do an mget/mput on 60 files without trouble over loopback on an 11.11 system.
there is no rest for the wicked yet the virtuous have no pillows
Matthew Hollier
Occasional Advisor

Re: FTP fails after 40 files ftped

You can enable logging for the ftp processes on the HP-UX side. I believe these are just for incoming ftp's but there is probably something similar under Sun.

You enable ftp logging under HP-Ux as follows: -

1) vi /etc/inetd.conf

2) Find the line: -
"ftp stream tcp nowait /usr/lbin/ftpd ftpd"

change "ftpd" to "ftpd -l"

(-l enables logging).

3)Save file and exit vi.

4) inetd -c
5) ftp connection logging will go to /var/adm/syslog/syslog.log as default.