HPlogo Installing and Managing HP ARPA File Transfer Protocol Network Manager's Guide: HP 3000 MPE/iX Computer Systems > Appendix B Using the FTP Server

Start FTP

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Glossary

 » Index

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 192.50.43.21
		220 MPE/iX File Transfer Protocol Server [A00020001] (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 logon 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
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                       		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/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 you 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<R> 		AFILE.GROUP1
		TSCREEN.GROUP1
		TSCREEN2.GROUP1
		NSPROG1.GROUP1
		NSPROG2.GROUP1
		NSPROG3.GROUP1
		NSPROGRAM.GROUP1
		226 Transfer complete
		nnn bytes sent 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 I.
		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 iXFILE

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 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 *
		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
AFILE1234                      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.

More Information About FTP and MPE/iX

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

MPE/iX User Accounts

MPE/iX 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]						                                        [,accountpass][,grouppass]
Password:                                   (press return)
230 USER LOGON ON.
ftp> pwd
257 "MYACCT/MYPUB" is the current directory.
257 ",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/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 MYNAME/USERPW.ARPACCT/ACCTPW [userpass]						                                        [,accountpass][,grouppass]
Password:                                   (press return)
230 USER LOGON ON.
ftp> PWD
257 "MYACCT/MYGROUP" is the current directory.
257 ",MYNAME.ARPACCT,PUB" is the current session.

Changing Groups

To change groups you CD as follows:

ftp> PWD
257 "MYACCT/MYGROUP1" 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
Feedback to webmaster