[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: FTP_API Extened passive mode



Yes there is. IBM introduced this as the default at v6r1, however there are systems around that still do not support it. You can disable extended passive for a session or change your system's default. Here is what IBM has to say:

http://www-01.ibm.com/support/docview.wss?uid=nas8N1013732

At R610, the iSeries FTP client supports the EPASV (Extended Passive, EPSV) command and EPORT (Extended Port, EPRT). The FTP client defaults to this and, if the server we are connecting to does not, the FTP client will fail over to Passive mode FTP.

229 Entering Extended Passive Mode

In these cases, the EPASV/EPORT commands must be disabled.

The FTP client attempts data connections in the following manner:

Extended Passive
Passive
Extended Port
Port

As a result, if PORT mode is needed, the three preceding data connection types must first be toggled off. This can be done in one of two ways:

1. On a connection-by-connection basis using FTP client subcommands:

o SENDEPSV - Toggles Extended passive
o SENDPASV - Toggles Passive mode
o SENDEPRT - Toggles Extended Port

Note: The data connection type can also be set (regardless of what the default behavior is) by using the 0 or 1 switches with the above 3 commands. For instance:

SENDEPSV 1 - would toggle extended passive on
SENDEPSV 0 - would toggle extended passive off

2. On a system-wide basis with the use of data areas:

o CRTDTAARA DTAARA(QUSRSYS/QTMFTPEPSV) TYPE(*LGL) AUT(*USE) - disables EPASV
o CRTDTAARA DTAARA(QUSRSYS/QTMFTPPASV) TYPE(*LGL) AUT(*USE) - disables PASV
o CRTDTAARA DTAARA(QUSRSYS/QTMFTPEPRT) TYPE(*LGL) AUT(*USE) - disables EPORT with PTF SI33243 applied to the system - no ptf is needed for releases after R610.

Regards
Colin


Colin Grierson | Development Consultant
Systems Advisory Services Ltd
520 Great South Road, Greenlane, Auckland, New Zealand | PO Box 17-268 Greenlane
Phone +64 9 525 7353 | DDI +64 9 580 8745 | Email Colin.Grierson@xxxxxxxxxxx
We integrate, develop, manage and maintain mission critical systems

________________________________________
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] on behalf of Venter.Derick@xxxxxxxxxxxxxx [Venter.Derick@xxxxxxxxxxxxxx]
Sent: Friday, 24 April 2015 10:51 p.m.
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: FTP_API Extened passive mode

Hello everyone

Hope you can help me.

I can connect to a remote ftp server using FTP_conn. When i try to list a
directory it hangs.
I can however use the normal IBM FTP command and do a directory
listing.(Looks like its going into "extented passive mode").
I am using FTP_Passiv(*ON); just before i try to list the directory. Is
there a extended passive mode function.

Any ideas


Derick Venter
Applications Developer IV

Systems Integration
Tel: +27 (13) 247 2816 Fax: +27 (0) 86 573 2274
Cell: +27 (0) 83 458 6599
Email: derick.venter@xxxxxxxxxx
www.gijima.com
-------------------------------------------------------------------------------------
This e-mail is subject to the Columbus Stainless [Pty] Ltd Email Legal Notices available at: http://www.columbus.co.za/EmailLegalNotice.htm.
-------------------------------------------------------------------------------------

This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal
-------------------------------------------------------------------------------------

#####################################################################################
Scanned by MailMarshal - Marshal8e6's comprehensive email content security solution. 
#####################################################################################
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------