Operating System - HP-UX
1820291 Members
3023 Online
109622 Solutions
New Discussion юеВ

How to setup timeout parameter for a ftp session ?

 
SOLVED
Go to solution
Deepu Chakravarty
Regular Advisor

How to setup timeout parameter for a ftp session ?

I need to setup timeout parameter for a ftp session. So that it does not timedout for that period or unlimited connectivity time.
7 REPLIES 7
Ralph Grothe
Honored Contributor

Re: How to setup timeout parameter for a ftp session ?

Hm, is it a single client's session that you want to timeout?

Otherwise I'd suggest to have a look at man ftpd.

On start of the FTP server you can pass the daemon a timout through -t
(if unset it defaults to 15 mins.)
Since ftpd is usually spawned through inetd you would have to add an apropiate argument in /etc/inetd.conf and send inetd a SIGHUP,
or execute /sbin/inetd -c
Madness, thy name is system administration
Joseph Loo
Honored Contributor

Re: How to setup timeout parameter for a ftp session ?

hi,

to change the default 15 minutes timeout, edit the system-wide /etc/inetd.conf resource file to start the ftpd with the -t 600 (for 600 seconds) option:

FROM:

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

TO:

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -t 600

to use this new value, restart Internet services daemon:

# /sbin/init.d/inetd -c



regards.
what you do not see does not mean you should not believe
vinod_25
Valued Contributor

Re: How to setup timeout parameter for a ftp session ?

Hi deepu

Option 1:

Instead of adjusting timeout variables, just enter hash at the ftp
prompt.
ftp> hash
then get your file
ftp> get

the hash # will keep the ftp session alive as a # is transmitted every 10k of data transfer...
and this is a client side solution and will work any where for any user...

Option 2:

If variable need to be tuned then tune using nettune -s, tcp_keepfreq and tcp_keepstop values... as u hav not mentioned the OS version , iam putting the command syntax ...

For 10.x
nettune -s tcp_keepfreq 1000
nettune -s tcp_keepstop 1000
for 11.0
ndd -set tcp_keepfreq
Use the netune -h command to print to standard output all variables that
are defined by nettune on your system.

So to academically incorporate the set_fin_time script to execute at boot-up,
you should create a compliant HP-UX 10.X start-up script.

Regards

Vinod K
Ralph Grothe
Honored Contributor

Re: How to setup timeout parameter for a ftp session ?

Sorry a few flaws.

1st the correct path is

/usr/sbin/inetd

2nd rather set -T of ftpd

and set an "idle" timer in your FTP client.
Madness, thy name is system administration
Deepu Chakravarty
Regular Advisor

Re: How to setup timeout parameter for a ftp session ?

Thanks for the replies. But what to set for unlimited timeout session.
Joseph Loo
Honored Contributor
Solution

Re: How to setup timeout parameter for a ftp session ?

hi,

if u mean disabling the timeout, set the -t option to 0 (numerical zero).

regards.
(p.s. please remember to assign points.)
what you do not see does not mean you should not believe
Yogeeraj_1
Honored Contributor

Re: How to setup timeout parameter for a ftp session ?

hi deepu,

if you do man ftpd, you will get the whole syntax details


-t timeout Causes ftpd to timeout inactive sessions after timeout seconds. By default, ftpd terminates an inactive session after 15 minutes.


regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)