IBM AS/400e Computer Hardware User Manual


 
AS/400-to-OS/2
In this topic we see how to log on FTP to a PS/2 running OS/2 and how to use the
PUT subcommand with NAMEFMT 1.
It is only meaningful to transfer certain types of files to a PS/2. In this case, we
have transferred a batch file from one of the OS/2 system folders.
Logon:
When starting FTP, the user has to log on to the remote host. With OS/2,
this is no exception. The process is similar to other FTP server systems.
File Transfer Protocol
Previous FTP subcommands and messages:
Connecting to host name SYSNAMRS.SYSNAM123.IBM.COM at address 9.4.73.198 using
port 21.
220 sysnamrs.sysnam123.ibm.com FTP server (Version 4.9 Thu Sep 2 20:35:07 CDT
1993) ready.
> root
331 Password required for root.
230 User root logged in.
UNIX Type: L8 Version: BSD-44
> put ITSOLIB1/QCLSRC.memb1 /tmp/MEMB.TXT
200 PORT command successful.
150 Opening data connection for /tmp/MEMB.TXT.
226 Transfer complete.
13 bytes transferred in 0.214 seconds. Transfer rate 0.061 KB/sec.
Enter an FTP subcommand.
===> put ITSOLIB1/QCLSRC.memb1 /tmp/MEMB.TXT
F3=Exit F6=Print F9=Retrieve
F17=Top F18=Bottom F21=CL command line
Figure 165. AIX Put Operation
File Transfer Protocol
Previous FTP subcommands and messages:
> get /tmp/MEMB.TXT ITSOLIB1/QCLSRC.MEMB7
Member MEMB7 in file QCLSRC in library ITSOLIB1 already exists.
Specify REPLACE as a subcommand option.
> get /tmp/MEMB.TXT GERRYLIB/QCLSRC.MEMB7 (REPLACE
200 PORT command successful.
150 Opening data connection for /tmp/MEMB.TXT (11 bytes).
226 Transfer complete.
13 bytes transferred in 0.536 seconds. Transfer rate 0.024 KB/sec.
Enter an FTP subcommand.
===>
F3=Exit F6=Print F9=Retrieve
F17=Top F18=Bottom F21=CL command line
Figure 166. AIX Get Operation
256 OS/400 TCP/IP Configuration and Reference V4R4