Sample FTP Session: Accessing MPE XL [ HP ARPA File Transfer Protocol User's Guide ] MPE/iX 5.0 Documentation
HP ARPA File Transfer Protocol User's Guide
Sample FTP Session: Accessing MPE XL
The purpose of this sample session is to provide help for a remote user
accessing the MPE XL FTP server. More detailed information about FTP
behavior follows the sample.
In order to follow the same steps as the sample on your system, you must
obtain the following from your network administrator:
* Internet Protocol (IP) address of the MPE XL system
* MPE XL logon account and passwords
* Names of the groups in the logon account containing the files you
want to access.
Start FTP
Start FTP from your system.
Connect to the Remote MPE XL System
To open a connection to MPE XL use the OPEN command followed by the
internet protocol (IP) address for the MPE XL system. For example:
ftp> OPEN 192.50.43.21
220 MPE/XL File Transfer Protocol Server [A0002001] (C) Hewlett-Packard Co. 1990
Log on to MPE XL
Supply the MPE XL 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.
Check the Session and Group
Check the session and group you are accessing. This example shows the
user logged on with the working group, MYGROUP.
ftp> PWD
251 "SESS1,USER.MYACCT,MYGROUP" is the current session.
View Files in the Working Group
Examine 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 256W FB 700 1350
226 Transfer complete
nnn bytes received in n.nn seconds (n.nn Kbytes/sec)
ftp>
Transfer a File to Your System
Transfer a remote MPE XL 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 Group
Examine 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 Group
Transfer a binary file from MPE XL to your system from other than the
current working group:
ftp> BINARY
200 Type set to I.
ftp> GET NPROGRAM.GROUP1
The MPE XL file will be saved as NPROGRAM.GROUP1 on your system.
Transfer Multiple Files from MPE XL to Your System
To transfer multiple files from MPE XL 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 XL (up to 8 alphanumeric characters, all capitals).
Transfer multiple files from other than the working group on MPE XL to
your system:
ftp> MGET N@.GROUP1
The resulting file names are:
NSPROG1.GROUP1
NSPROG2.GROUP1
NPROGRAM.GROUP1
Transfer a File from Your System to MPE XL
Transfer a local file to the MPE XL working group using the PUT command:
ftp> PUT yfile XLFILE
Use File Building Parameters.
Transfer a local file to other than the MPE XL working group, using MPE
XL file building parameters:
ftp> PUT file2 newfile.group1;rec=-78,,f,ascii
Transfer Multiple Files to MPE XL
Transfer multiple ASCII files to MPE XL 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 104800
AFILE123 80B FA 800 104800
AFILE124 80B FA 800 104800
AFILENAM 80B FA 800 104800
AFILEXX 80B FA 800 104800
226 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.
MPE/iX 5.0 Documentation