HP ARPA File Transfer Protocol User's Guide
> Chapter 5 Using the FTP ServerSample FTP Session: Accessing MPE/iX |
||||||||||||||||||||||||
|
Start FTPStart FTP from your system. Connect to the Remote MPE/iX SystemTo open a connection to MPE/iX use the OPEN command followed by the internet protocol (IP) address for the MPE/iX system. For example: ftp> OPEN 123.50.43.21 220 MPE/iX File Transfer Protocol Server [A0002001] (C) Hewlett-Packard Co. 1990 Log on to MPE/iXSupply the MPE/iX logon account and password when prompted, or use the USER command. For example: ftp> USER sess1,user.myacct,mygroup 331 Password required for SESS1,USER.MYACCT,MYGROUP [userpass][,accountpass][,grouppass] Password: userpass,acctpass,grouppass (enter passwords) 230 User logged on. Anonymous FTPIf anonymous FTP is supported on the remote MPE FTP server, the user can login anonymously by giving the username as "anonymous" or "ftp". ftp> o 15.70.188.48 connected to 15.70.188.48. 220 HP ARPA FTP Server [A0008OZ3] (C) Hewlett-Packard Co. 1990 Name (15.70.188.48:rram): anonymous 331 Guest login ok, send ident as password. Password: 230 User logged on Remote system type is MPE/IX Check the Session and GroupCheck the session and group you are accessing. This example shows the user logged on with the working group, MYGROUP. ftp> pwd 257 "/MYACCT/MYGROUP" is the current directory. 257 "SESS1,USER.MYACCT,MYGROUP" is the current session. View Files in the Working GroupExamine the files in the working group using the FTP DIR command: ftp> DIR * 200 PORT command ok. 150 File LISTF opened; data connection will be opened ACCOUNT= MYACCT GROUP= MYGROUP FILENAME CODE ------------LOGICAL RECORD------- SIZE TYP EOF LIMIT NSCREEN1 256B FA 800 10000 NSCREEN2 80B FA 500 14000 NSPROGX PROG 1934W VB 4551 9480 PROGRAMX 256B FA 700 1350 256 Transfer complete nnn bytes received in n.nn seconds (n.nn Kbytes/sec) ftp> Transfer a File to Your SystemTransfer a remote MPE/iX file to your system using the GET command: ftp> GET nscreen1 200 PORT command ok. 150 File NSCREEN1 opened; data connection will be opened 226 Transfer complete nnn bytes received in n.nn seconds (n.nn Kbytes/sec) ftp>The file will be saved as nscreen1 on your system. View Files in a Different GroupExamine the files in another group using the LS command with the group name: ftp> LS @.group1 200 PORT command ok. 150 File LISTF opened; data connection will be opened AFILE.GROUP1 TSCREEN.GROUP1 TSCREEN2.GROUP1 NSPROG1.GROUP1 NSPROG2.GROUP1 NSPROG3.GROUP1 NPROGRAM.GROUP1 226 Transfer complete nnn bytes received in n.nn seconds (n.nn Kbytes/sec) ftp>Note that this display is different than using the LS command with no group name which displays only file names. Transfer a File from Another GroupTransfer a binary file from MPE/iX to your system from other than the current working group: ftp> BINARY 200 Type set to l. ftp> GET NPROGRAM.GROUP1The MPE/iX file will be saved as NPROGRAM.GROUP1 on your system. Transfer Multiple Files from MPE/iX to Your SystemTo transfer multiple files from MPE/iX to your system use the MGET command: ftp> MGET @All files in the working group will be transferred and have the same names as on MPE/iX (up to 8 alphanumeric characters, all capitals). Transfer multiple files from other than the working group on MPE/iX to your system: ftp> MGET N@.GROUP1The resulting file names are: NSPROG1.GROUP1 NSPROG2.GROUP1 NPROGRAM.GROUP1 Transfer a File from Your System to MPE/iXTransfer a local file to the MPE/iX working group using the PUT command. ftp> PUT yfile xfile Use File Building ParametersTransfer a local file to other than the MPE/iX working group, using MPE/iX file building parameters:ftp> PUT file2 newfile.group1;rec=-78,,f,ascii Transfer Multiple Files to MPE/iXTransfer multiple ASCII files to MPE/iX using the MPUT command: ftp> ASCII 200 Type set to A. ftp> MPUT A*If your system supports prompting, you are prompted whether or not (yes or no) to transfer each file in the selected group of files. Check that the files transferred: ftp> DIR A@ 200 PORT command ok. 150 File LISTF opened; data connection will be opened ACCOUNT= MYACCT GROUP= MYGROUP FILENAME CODE ------------LOGICAL RECORD------- SIZE TYP EOF LIMIT AFILE 80B FA 800 204800 AFILE123 80B FA 800 204800 AFILE124 80B FA 800 204800 AFILENAM 80B FA 800 204800 AFILEXX 80B FA 800 204800 256 Transfer complete nnn bytes received in n.nn seconds (n.nn Kbytes/sec) ftp>If the file names are longer than eight characters, the file transfer fails. Note that all files were saved with the default FTP ASCII file attributes: records of fixed length and 80 bytes.
|