FTP send/receive Extended Passive Mode Errors

SENDEPSV: FTP send/receive Extended Passive Mode Errors


Scenario:

Trading partner recently upgraded to Windows FTP server and previous FTP receive script worked without any issues.

Issue:

iSeries is trying to invoke Extended Passive Mode. during any type of command such as ls and mget

EXTOL error message:


> open ftp.XXXXXX.com
Connecting to host ftp.XXXXXX.com at address xx.xxx.xxx.xx using port
21.
220 Microsoft FTP Service
Enter an FTP subcommand.
> user XXXXXXXX *****
331 Password required
230 User logged in.
Windows_NT
Enter an FTP subcommand.
> site system 4
500 'SITE': command not understood
Enter an FTP subcommand.
> SITE EDICRLF 1
500 'SITE': command not understood
Enter an FTP subcommand.
> namefmt 1
500 'SITE': command not understood
Client NAMEFMT is 1.
Enter an FTP subcommand.
> cd 210
250 CWD command successful.
Enter an FTP subcommand.
> lcd /extol/geis/ftpin
Local working directory is /extol/geis/ftpin
Enter an FTP subcommand.
> ls -l
229 Entering Extended Passive Mode (|||60757|)
150 Opening ASCII mode data connection.
Attempt to open connection failed.
550 Data channel timed out.
Enter an FTP subcommand.
> mget *.*
229 Entering Extended Passive Mode (|||60764|)
150 Opening ASCII mode data connection.
Attempt to open connection failed.
550 Data channel timed out.
Enter an FTP subcommand.
> mdel *.*
229 Entering Extended Passive Mode (|||60770|)
150 Opening ASCII mode data connection.
Attempt to open connection failed.
550 Data channel timed out.
Enter an FTP subcommand.
> quit
221 Goodbye.
Error occurred during processing of command.
Command prompt operation failed or abandoned
Exporting ended abnormally.


Resolution:

By adding the additional line of SENDEPSV 0 to the FTP receive script, we are able to avoid this error.






By: on
EXTOL Business Partner Logo

More EXTOL Examples

We have over 300+ examples of how EXTOL can be customized to meet your organization's needs

Each of our examples are free to review and use.