- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: FTP connection problems.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2004 07:14 AM
06-07-2004 07:14 AM
FTP connection problems.
A user has an application that establishes an FTP connection (from NT client) and sends/retrieves files from my server. He's designed it to never close the connection except if he receives an error. The program will run fine for about an hour (never the same period of time) sending and retrieving files (lots of them), then when he tries to send a file the server will boot him off and he gets the error "Can't build data connection: Connection timed out." He then re-establishes the connection, re-sends the file and the whole thing starts over.
I'm running ftpd with the -l -v -L flags and can't see anything in the syslog.log. There is nothing special about the files (all small), and no set time period for when he gets booted off; sometimes 20 minutes, sometimes several hours. There are no ftp timeouts on the network or the server. My tcp_keepalive_interval is 7200000 - 2 hours.
How can I find what is closing his session?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2004 07:19 AM
06-07-2004 07:19 AM
Re: FTP connection problems.
ehanced logging
inetd -l
take some snapshots of netstat -an and see if you can trap some unusual data.
The be honest this could be as simple as an unstable network connection or intermittant dsl drop.
Check the logs on the NT side, they might prove revealing.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2004 07:19 AM
06-07-2004 07:19 AM
Re: FTP connection problems.
From the man page of 'ftpd'.
-t timeout Causes ftpd to timeout inactive sessions after
timeout seconds. By default, ftpd terminates an
inactive session after 15 minutes.
It's 15 mins idle after ftpd will disconnect the client.
You can specify a timeout value with the ftpd specification in /etc/inetd.conf. But that will effect all the ftp sessions which you may not want.
So, I suggest your client to keep running commands like 'ls' etc., inside the ftp session.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2004 07:21 AM
06-07-2004 07:21 AM
Re: FTP connection problems.
Refer man ftpd for more info. on those options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2004 07:43 AM
06-07-2004 07:43 AM
Re: FTP connection problems.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2004 08:07 AM
06-07-2004 08:07 AM
Re: FTP connection problems.
Iâ ve turned on the logging for inetd and will monitor it.
The ftp session doesnâ t have much sustained idle time. Every minute it sends available files and picks up new files. So there is at least some file-list checking every 1 minute. Is there a parameter that would determine the maximum connection time (idle or busy)? How about a maximum number of files transferred of amount of data transferred?
Iâ ve been told by the network admin that there are no time restraints for ftp on the netw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2004 08:22 AM
06-07-2004 08:22 AM
Re: FTP connection problems.
is there any WAN connectivity in this picture, i.e., anything like a VPN tunnel over internet or a customer connection via an extranet etc.
if there is, all of the above goes down the drain as some congestion on the WAN link might be causing you this disconnect mishaps.
As far as I know there is no such thing as maximum transfer amount or maximum # of files transferred by default, if you are using the OS incorporated ftpd. And 1 minute is too short of a time slice to cause disconnects due to an idle connection. Default is about 15 min.s or 900 sec.s
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2004 09:05 AM
06-07-2004 09:05 AM
Re: FTP connection problems.
Regards,
Bharat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2004 01:56 AM
06-08-2004 01:56 AM
Re: FTP connection problems.
There is a free network trace utility called ethereal available from www.ethereal.com for both windows and hp-ux. The capabilities are similar to Netmon and other protocol analyzer products. Ethereal can also decode nettl traces from HP-UX.
What you need to do is capture a trace on the NT side with netmon or ethereal and on the HP side with either nettl or ethereal, and compare the two. FTP uses tcp ports 20 and 21, so you can use that and the server and client IP's to filter out uninteresting network traffic. If you want to use nettl on the HP side, the command to start tracing is:
nettl -tn pduin pduout -e ns_ls_ip -s 1024 -tm 99999 -f ftp
The traces go to ftp.TRC* files.
Given this, you can see 1) whether the network is passing everything necessary from one side to the other, or 2) which side is aborting the connection.