IBM AS/400e Computer Hardware User Manual


 
When using FTP from or to the AS/400, both VAX and AIX users should be aware
of the AS/400 library/file.member structure and naming conventions when using
naming format 0.
Points to Note:
1. When starting FTP from the VAX or AIX, the user is prompted for a name. This
is actually the user ID for the AS/400.
2. The CD subcommand is used to change the current library on the AS/400. (This
is the equivalent to the AS/400 CHGCURLIB command.)
3. The DIR subcommand is used to display the contents of the current library.
This command may take some time to run if the current library contains a large
number of objects.
4. Some of the error messages returned may not be very clear. For example, if
you try to delete the current library, the message returned is “Unable to delete
library.”
5. If a file with a name but no type is put to the AS/400, a file and member of that
name will be created or replaced. For example:
PUT TEST
will create or replace a file named TEST with a member named TEST in the
current library.
6. The AIX operating system is case sensitive.
FTP Server NAMEFMT
When an FTP server session is started, NAMEFMT is set to the value specified by
the INLNAMFMT setting in the FTP configuration. You can change the NAMEFMT
value by using the SITE subcommand.
The server automatically switches from the default of NAMEFMT 0 to NAMEFMT 1
when the ‘first’ file or pathname parameter received in a subcommand either:
v Starts with a slash (/) or a tilde () character
or
v Is blank (except for the LIST and NLST subcommands).
Any subsequent server subcommands with a file or path name parameter will not
affect the NAMEFMT value. In addition to changing the NAMEFMT, the server reply
for the subcommand will include a statement saying that the NAMEFMT value has
been changed.
For example, the server NAMEFMT value will be changed to “1” if the first server
subcommand with a file or path name is:
CWD /DIR1/DIR2A
The server reply will be:
250-NAMEFMT set to 1.
250 Current directory changed to /DIR1/DIR2A.
Note: This capability enables the typical Web browser, which requires NAMEFMT
1, to interact with AS/400 FTP servers without issuing a SITE NAMEFMT 1
subcommand.
Chapter 8. File Transfer Protocol (FTP) Server 283
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|