FTP connection closed by remote host

D

Dave C

From a DOS window (in Win 2000). I do a FTP site,
connect to an AS400 with no problem. I can site there
with no problems, however as soon as I execute a remote
command (quote rcmd dlyjob dly(180) for example) after
about 1 minute I get 'connection closed by remote host
'.

Called IBM and they said it's a Windows issue. Is there
some stay-alive or inactive time settings that I should
be setting on Windows 2000?

Thanks
Dave
 
R

Roland Hall

I believe timeouts are controlled by the server, not the client but then
it's easy to point to Microsoft when you're IBM. Have you tried using a
shell account instead of FTP or is that your only alternative? You can
always try a different FTP client too, like WS_FTP?
http://www.ipswitch.com/products/file-transfer.html


From a DOS window (in Win 2000). I do a FTP site,
connect to an AS400 with no problem. I can site there
with no problems, however as soon as I execute a remote
command (quote rcmd dlyjob dly(180) for example) after
about 1 minute I get 'connection closed by remote host
'.

Called IBM and they said it's a Windows issue. Is there
some stay-alive or inactive time settings that I should
be setting on Windows 2000?

Thanks
Dave
 
D

Dave

Thank you for your reply...

That's the strange thing. It does work on my Win2K PC
using WS_FTP Pro, but only when I increase the Server
timeout value. The help says it overrides the
Winsock.DLL settings, so I thought their would be a
configuration for that in Windows.

The users do not have access to WS_FTP, just the standard
FTP on their Win2K machines.

This type of problem seems to be very common on the
internet, but with no solutions which solves my problem
(i.e. QUOTE TIME 10000 10000 etc).

Thanks
Dave
 
R

Roland Hall

Dave...

It appears the users are just sitting there waiting to run a job. Is there
any reason why they cannot login to FTP and run the job and then exit until
the next time?

Thank you for your reply...

That's the strange thing. It does work on my Win2K PC
using WS_FTP Pro, but only when I increase the Server
timeout value. The help says it overrides the
Winsock.DLL settings, so I thought their would be a
configuration for that in Windows.

The users do not have access to WS_FTP, just the standard
FTP on their Win2K machines.

This type of problem seems to be very common on the
internet, but with no solutions which solves my problem
(i.e. QUOTE TIME 10000 10000 etc).

Thanks
Dave
 
R

Roland Hall

Dave...

If you can provide me with more information on how the user works with the
AS400, I think I can work out a solution for you with wsh.

Roland

Thank you for your reply...

That's the strange thing. It does work on my Win2K PC
using WS_FTP Pro, but only when I increase the Server
timeout value. The help says it overrides the
Winsock.DLL settings, so I thought their would be a
configuration for that in Windows.

The users do not have access to WS_FTP, just the standard
FTP on their Win2K machines.

This type of problem seems to be very common on the
internet, but with no solutions which solves my problem
(i.e. QUOTE TIME 10000 10000 etc).

Thanks
Dave
 
G

Guest

In this case, the user logs onto the AS400, executes a
program which creates a file in a library, the user then
downloads the file.

logon
QUOTE RCMD CALL LIBRARY/PROGRAM ('DIVISION')
GET ...

The process works great unless the program runs for more
than 1 minute, which it does for our larger divisions. I
may have to create the file as an overnight process and
have the user do a GET only. However they want up-to-
date information and there are many divisions.

I tested the above between our test AS400 and the target
AS400 and it works fine.

Unfortunately I have no control over the PC application,
which uses the FTP. The AS400 is my area of expertise.
Just trying to get this to work for them (I did write the
AS400 program).

Tried CHGFTPA (stop/start FTP), QUOTE TIME 3000 3000 in
FTP but with no luck.

Thanks for your help.
Dave
 
R

Roland Hall

Hi Dave. Thanks for responding.

Are you saying a PC program is required to execute FTP, create the report
and get [download] it when it's finished or can you possibly duplicate that
process since once you're in the FTP program, you're like you would be if
you called it directly?

If you want to speed this up you can contact me at
dontXspamXmeXyouXloserATy.a.h.o.oD0Tc.o.m
remove all X and all . change AT = @ and D0T = .

I can already connect with my script to an ftp server, login automatically,
issue any command, stay alive at any interval, upload, download and exit
without user input. I just need to know if your PC program is required
absolutely.

In this case, the user logs onto the AS400, executes a
program which creates a file in a library, the user then
downloads the file.

logon
QUOTE RCMD CALL LIBRARY/PROGRAM ('DIVISION')
GET ...

The process works great unless the program runs for more
than 1 minute, which it does for our larger divisions. I
may have to create the file as an overnight process and
have the user do a GET only. However they want up-to-
date information and there are many divisions.

I tested the above between our test AS400 and the target
AS400 and it works fine.

Unfortunately I have no control over the PC application,
which uses the FTP. The AS400 is my area of expertise.
Just trying to get this to work for them (I did write the
AS400 program).

Tried CHGFTPA (stop/start FTP), QUOTE TIME 3000 3000 in
FTP but with no luck.

Thanks for your help.
Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top