IBM AS/400e Computer Hardware User Manual


 
As is shown in Figure 150, the FTP server sends replies that are preceded by a
three-digit numeric code to the client host as a response to each subcommand. For
example, a 331 response may be sent to request a password when the user ID is
entered, and a 230 response is sent after a successful logon.
If the server is an AS/400, the server replies show the current library (directory) and
the file name format in use on the server.
When the logon process has completed, you can enter the FTP subcommands that
are described in this chapter.
Connecting to Another Server without Ending the FTP Session
The CLOSE subcommand can also be used to close the connection with the
remote server. This subcommand does not end the FTP client session. The OPEN
subcommand can then establish a connection with another server. For example, the
following opens a connection to SYSNAM01:
OPEN SYSNAM01
When the OPEN is successful, the FTP client prompts for a user ID, as it does at
FTP startup.
Ending the FTP Client Session
The FTP session is ended with the QUIT subcommand. The QUIT subcommand
closes the connection with the remote host and ends the FTP session on the
AS/400 system. Alternatively, you can press F3 (Exit) and then confirm to end the
FTP client session.
File Transfer Protocol
Previous FTP subcommands and messages:
Connecting to host name SYSNAM08 at address 9.125.87.146 using port 21.
220-QTCP at sysnam08.endicott.ibm.com.
220 Connection will close if idle more than 5 minutes.
>
331 Enter password.
230 ITSO logged on.
OS/400 is the remote operating system. The TCP/IP version is "V3R1M0".
250 Now using naming format "0".
257 "QGPL" is current library.
Enter password:
===>
F3=Exit F6=Print F9=Retrieve
F17=Top F18=Bottom F21=CL command line
Figure 150. Successful Logon to FTP Session
240 OS/400 TCP/IP Configuration and Reference V4R4