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

Sample FTP Session: Accessing MPE/iX

MPE documents

Complete PDF
Table of Contents
Index
Glossary

E0300 Edition 6 ♥
E1098 Edition 5

The purpose of this sample session is to provide help for a remote user accessing the MPE/iX 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/iX system

  • MPE/iX 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/iX System


To 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/iX


Supply 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 FTP


If 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 Group


Check 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 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          256B  FA         700       1350

  256 Transfer complete
  nnn bytes received in n.nn seconds (n.nn Kbytes/sec)
  ftp>

Transfer a File to Your System


Transfer 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 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/iX to your system from other than the current working group:

  ftp> BINARY
  200 Type set to l.
  ftp> GET NPROGRAM.GROUP1

The MPE/iX file will be saved as NPROGRAM.GROUP1 on your system.

Transfer Multiple Files from MPE/iX to Your System


To 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@.GROUP1

The resulting file names are:

  NSPROG1.GROUP1
  NSPROG2.GROUP1
  NPROGRAM.GROUP1

Transfer a File from Your System to MPE/iX


Transfer a local file to the MPE/iX working group using the PUT command.

  ftp> PUT yfile xfile

Use File Building Parameters

Transfer 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/iX


Transfer 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.




Chapter 5 Using the FTP Server


More Information About FTP and MPE/iX