HP ARPA File Transfer Protocol User's Guide
> Chapter 5 Using the FTP ServerMore Information About FTP and MPE/iX |
||||||||||||||||||||||||||
|
MPE/iX User AccountsMPE/iX user logon accounts are in the form: ftp> USER sessname,username.acctname,groupnameThe sessionname parameter (sessname) is optional. Passwords may be required for all three parts of the user account: userpass,accountpass,grouppassYou can enter the user logon account and passwords together as follows: ftp> USER session1,username/userpass.acctname/acctpass, groupname/grouppassPress 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
GroupsAn 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 GroupsThe 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/iXThe 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.accountEach 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 MetacharactersBe 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 ParametersWhen transferring files from your system to MPE/iX, you can use file-building parameters following the PUT command string: ftp> PUT remotefile localfile;buildparmsThe 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 ExamplesThe 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,ASCIIIn 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
|