IBM FTP Adapter manual Ftp Url -Url

Page 19

Chapter 3 - FTP Commands

List of Commands

FTP URL (-URL)

The FTP URL adapter command (-URL)is required for connection to an FTP

server. Specify the file name(s) to be retrieved (adapter source) or created/appended (adapter target).

-URL[FTP:[//]][ftp_user[:ftp_pass]@][ftp_host[:ftp_port]] [/[/]][dir/[dir/…]] [filename][;type=xfer_type[+]]

Option

Description

FTP:

Specify as a connection to an FTP server. If not

 

specified, FTP: is assumed, along with the //. Another

 

/ is required to separate the user and host parameters

 

from file and transfer type, if specified.

 

 

ftp_user

Specify the user name to connect to the FTP server.

 

Unless you are also specifying a password, this

 

parameter must be followed by @ if you specify

 

ftp_host.

 

 

:ftp_pass

ftp_host

:ftp_port

dir/

filename

;type=xfer_type

Specify the password that authenticates the user name. This parameter must be followed by @ if you are also

specifying ftp_host.

Specify the FTP server name or address to which to connect. If not specified, the default of localhost is assumed.

The port name or number to use for connection

Specify the directory path for the file. The ellipsis () indicates this field can repeat, depending on your directory structure.

Specify the name of the target file. This is required for an adapter target but optional for an adapter source. If not specified, all files in the path are retrieved.

Specify the transfer type or mode. The supported transfer types vary from server to server. Depending on the server, there may be additional or omitted transfer types. Valid transfer types are:

A[len][!] ASCII

len specifies the optional record length to which to pad or truncate the record.

!indicates no line terminator for the record(s).

F T P A d a p t e r R e f e r e n c e G u i d e

1 9

Image 19
Contents FTP Adapter Reference Guide Document History Part Product Version Published Number Contents Troubleshooting Related References About This DocumentOverview FTP AdapterSystem Requirements About Sockets Access to International VANsIAaliascardnum OAaliascardnum Command AliasList of Commands FTP CommandsLSsorttype Audit -A or -AUDIT Account -AC or -ACCTCertificate Authority -CA Client Certificate Password -CPASSClient Certificate -CERT Code Page Remote -CPR Code Page Local -CPLOpen Site Transparent User Userfw Userfwpass Firewall Connection Method URL -FW or -FIREWALLFtpuser, Pass ftppass Adapter Behavior when -FIREWALL Command PresentOpen Userlogon or User URL SyntaxTokens Replaced with FTP URL -URL Ftpext-m1st-02.txt Keep Server -KS Ignore -I or -IGNOREList Option -LS Port Mode -PT or -PORT Passive Mode -PV or -PASVMake Directory -MKD Private Key -PKEY Private Key Password -KPASSQuantity -QTY Number of files to be retrieved by the adapter Site -SITESSL Protocol -SPROTO SSL Encryption Strength -STRStage -STG or -STAGE WIN32 System -SYSTrace -T or -TRACE Data Sources Syntax SummaryData Targets URL Syntax Using FTP Adapter CommandsExamples Syntax Summary URL Syntax URL Encoding Adapter Audit Log TroubleshootingSample FTP Adapter Trace File Adapter Trace FileTroubleshooting Adapter Trace File Messages Appendix a Return Codes and Error MessagesAppendix a Return Codes and Error Messages Index Index