HPlogo HP ARPA File Transfer Protocol User's Guide > Chapter 5 Using the FTP Server

More Information About FTP and MPE/iX

MPE documents

Complete PDF
Table of Contents
Index
Glossary

E0300 Edition 6 ♥
E1098 Edition 5

This section describes, in more detail, MPE/iX logon syntax and file system behavior when using FTP.

MPE/iX User Accounts


MPE/iX user logon accounts are in the form:

  ftp> USER sessname,username.acctname,groupname

The sessionname parameter (sessname) is optional. Passwords may be required for all three parts of the user account:

  userpass,accountpass,grouppass

You can enter the user logon account and passwords together as follows:

  ftp> USER session1,username/userpass.acctname/acctpass,
    groupname/grouppass

Press the return key when prompted for passwords.

The following example shows: no session, and a password for the account only:

  ftp> USER myname.myacct/acctpass
  331 Password required for MYNAME.MYACCT/ACCTPASS
    [userpass][,acctpass][,grouppass]
  Password:          (press return)
  230 USER LOGGED ON
  ftp> pwd
  257 "/MYACCT/PUB" is the current directory.
  257 ",MYNAME,MYACCT,PUB" is the current session


NOTE: Each password can only be entered once. For example, if you enter the account password as part of the USER string, you cannot re-enter it at the password prompt.

If you enter passwords as part of the logon string, they are displayed in the message text of the password prompt.

Groups

An MPE/iX user account can contain many groups, each containing files. A group is comparable to a directory, but only to one level. Unlike UNIX systems, the MPE/iX file system is not hierarchical.

The MPE/iX account manager can assign a default group for a user account. For example, the user account MYNAME.ARPACCT is assigned a default group PUB (with no group password). The user logon is as follows:

  ftp> USER MYNAME/userpw.ARPACCT/acctpw
  331 Password required for MYNAMEUSPERPW.ARPACCT/ACCTPW
    [userpass][,acctpass][,grouppass]
  Password:          (press return)
  230 USER LOGGED ON
  ftp> pwd
  257 "/ARPACCT/PUB" is the current directory.
  257 ",MYNAME,ARPACCT,PUB" is the current session

Changing Groups

The FTP CD command is supported on the MPE/iX FTP server as of release 4.5. To change groups you CD as follows:

  ftp> pwd
  257 "/MYACCT/GROUP1" is the current directory.
  257 ",MYNAME.MYACCT,GROUP1" is the current session.
  ftp> cd ../GROUP2
  250 CWD file action successful.
  ftp> pwd
  257 "/MYACCT/GROUP2" is the current directory.
  257 ",MYNAME.MYACCT,GROUP1" is the current session.

Notice that only the current directory changed and not the current session.

File Naming on MPE/iX


The MPE/iX file system is not case sensitive: file1 is the same file as FILE1.

A fully-qualified MPE/iX filename is in the form:

  filename.groupname.account

Each part, (filename, groupname, and account) is 1-8 alphanumeric characters, beginning with an alphabetic character. To avoid file naming problems, always explicitly specify resulting filenames in correct MPE/iX format.

Using Metacharacters


Be aware if you use metacharacters (wildcards) and specify a group and/or account with MGET, the resulting filenames will be fully qualified MPE/iX file names (filename.groupname.account), a maximum of 26 characters, including periods. If your system supports fewer characters than MPE/iX, the filenames may be truncated. Use the LS command to verify the set of files you are transferring.

Both * and @ can be used as wildcard characters with the LS and DIR commands.

Changing File Building Parameters


When transferring files from your system to MPE/iX, you can use file-building parameters following the PUT command string:

  ftp> PUT remotefile localfile;buildparms

The supported build parameters are:

  ;REC=[-rcsizebytes][,blkfactor[,[{F}][,{BINARY}]]]]
                                   {V}   {ASCII}
                                   {B}
  [;DEV=device]
  [;CODE=filecode]
  [;DISC=[numrec][,[numextents][,[initialloc]]]]

The parameter REC= can also be specified in words (two bytes per word) using a positive integer value. The default blkfactor size is one. For more information about the BUILD command, see the MPE/iX Commands Reference Manual.

The default MPE/iX file-transfer specifications for the PUT command in the form of file-building parameters are:

  ASCII: ;REC=-80,,F,ASCII;DISC=204800
  Binary: ;REC=-256,,F,BINARY;DISC=204800
  BYTESTREAM: ;REC=,,B;DISC=16384000

Examples

The following example shows how to transfer a file to MPE/iX with a record size of 150 bytes:

  ftp> PUT filex file2;REC=-150,,V,ASCII

In the following example, using only CODE=PROG defaults to a file of fixed binary, with records of 128 words (which are the BUILD command REC= defaults).

  ftp> PUT filex file2;CODE=PROG




Sample FTP Session: Accessing MPE/iX


Chapter 6 MPE/iX File System and Data Transfers