File Transfer Protocol server subcommands

These subcommands represent communication between the client and server. This topic includes descriptions for iSeries™ CL-equivalent subcommands that are unique to iSeries FTP server.

This topic describes FTP server subcommands. The FTP client communicates with the server using server subcommands. This topic provides the server subcommands, descriptions of what they do, their syntax conventions, and FTP reply status messages.

iSeries FTP server uses the subcommands listed in the following table.

Subcommand What it does
ABOR Cancels the previous subcommand
ADDM Adds a member to a physical file
ADDV Adds a member to a variable-length member to a physical file
APPE Appends data to a specified file
AUTH Defines the authentication mechanism used for the current FTP session
CDUP Changes directory to the parent directory
CRTL Creates a library
CRTP Creates a physical file
CRTS Creates a source physical file
CWD Changes the working directory or library
DBUG Starts or ends a server trace
DELE Deletes a file, a member, or a document
DLTF Deletes a file
DLTL Deletes a library
HELP Gets information about FTP server subcommands
LIST Lists files or directory entries
MKD Makes a directory
MODE Specifies a format for data transmission
NLST Lists the names of files or directories
NOOP Checks if server is responding
PASS Sends a password to the server
PASV Tells the server to passively open the next data connection
PBSZ Defines the largest buffer protection buffer size to be used for application-level encoded data sent or received on the data connection
PORT Identifies the data port on which the client will listen for a connection
PROT Defines the protection used for FTP data connections
PWD Displays the current working directory
QUIT Logs off the user; closes the connection
RCMD Sends a CL command to an FTP server
REIN Re-starts a session on a server
RETR Retrieves data from a server
RMD Removes a directory
RNFR Specifies a file to be renamed
RNTO Specifies a new file name
SITE Sends information for a server to use
STAT Gets status information from a server
STOR Saves data on a server and replaces an existing file
STOU Saves data on a server but does not replace an existing file
STRU Specifies the structure of a file
SYST Prints the name of the OS on the server
TIME Sets the time-Out value for the FTP server
TYPE Specifies the file transfer type
USER Sends a user logon ID to the server
XCUP Changes to the parent directory
XCWD Changes to the working directory
XMKD Creates a directory
XPWD Displays the current directory or library
XRMD Removes a directory

Subcommands unique to iSeries FTP server

iSeries FTP server subcommands include a special set of commands that are abbreviated names of equivalent, but longer, iSeries CL commands.

The names of these special server subcommands must be four characters in length to comply with the FTP limits. When the iSeries server receives these subcommands, the name are interpreted in this way:

In addition to these specific subcommands, you can use the FTP server subcommand RCMD to send any CL command to the server.

Related reference
File Transfer Protocol server syntax conventions
File Transfer Protocol server reply status messages
File Transfer Protocol client subcommands