HP 3000 Manuals

More Information About FTP and MPE XL [ HP ARPA File Transfer Protocol User's Guide ] MPE/iX 5.0 Documentation


HP ARPA File Transfer Protocol User's Guide

More Information About FTP and MPE XL 

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

MPE XL User Accounts 

MPE XL 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 
     251 ",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 XL 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 XL file system is not hierarchical. The MPE XL 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 MYNAME/USERPW.ARPACCT/ACCTPW [userpass][,acctpass][,grouppass] Password: (press return) 230 USER LOGGED ON ftp> PWD 251 ",MYNAME.ARPACCT,PUB" is the current session. Changing Groups. The FTP CD command is not supported by the MPE XL FTP server. To change groups you can log on again with a different group name, or specify the group name in the file transfer or directory commands you are using. For example: ftp> GET TSCREEN.GROUP1 fscreen1 File Naming on MPE XL The MPE XL file system is not case sensitive: file1 is the same file as FILE1. A fully-qualified MPE XL 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 XL 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 XL file names (filename.groupname.account), a maximum of 26 characters, including periods. If your system supports fewer characters than MPE XL, 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 XL, you can use file-building parameters following the PUT command string: ftp> PUT localfile remotefile; buildparms The supported build parameters are: ;REC=[-recsizebytes][,blkfactor[,[{F}][,{BINARY}] ] ] ] {V} {ASCII} [;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 XL Commands Reference Manual. The default MPE XL file-transfer specifications for the PUT command in the form of file-building parameters are: ASCII: REC=-80,,F,ASCII;DISC=104800 Binary: REC=-252,,V,BINARY;DISC=104800 Examples. The following example shows how to transfer a file to MPE XL 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 Supported MPE XL File Types FTP only supports binary and ASCII file transfers, variable or fixed record lengths, and Standard (STD) file type.


MPE/iX 5.0 Documentation