By Bob Green
Starting with MPE/iX 6.0, it has been very easy to enable the File Transfer Protocol server on your HP 3000. Once enabled, the FTP server makes it possible for you to deliver output to your own PCs, Linux servers, MPE boxes or Unix boxes, even to servers across the world. These can be your servers in other parts of your company, or of your suppliers, or of your customers.
MPE File Attributes
When transferring files from one HP 3000 to another there is no need to specify the attributes of the file, such as
MPE keeps track of that for you. When transferring a file to an MPE system from a non-MPE system, or transferring through a non-MPE system, you will need to specify the file attributes on the target MPE system as in:
put mympefile myfile;rec=-80,1,f,ascii;disc=3000
The default file attributes can be specified for a file transferred to your MPE system by changing the corresponding line in the file BLDPARMS.ARPA.SYS which is shown below:
Only the first three lines are read; everything after is ignored.
You may modify the first three lines as long as you keep the same syntax, i.e., you may change the numbers, or F to V, but don’t add anything bizarre. Anything after a space is ignored, so don’t insert any spaces. If the file is missing (or any line in it), the old hard-coded defaults will be used as a backup. These are:
;REC=-80,,F,ASCII;DISC=204800 for ASCII mode,
;REC=-256,,V,BINARY;DISC=204800 for binary mode.
;REC=,,B;DISC=16384000 for byte stream mode.
Also, if either the REC= part or the DISC= part of either line has bad syntax, the default for that part will be reverted to.
Users may make local copies of this file and set their own defaults via a file equation:
You can execute commands on your local 3000 by putting a colon in front of your command such as:
ftp> :listf ,2
You can find out what commands you can do remotely with the remotehelp command:
Typically we just stream jobs on the remote system with FTP’s site command by doing the following in the FTP client:
ftp> site stream robelle.job.robelle
200 STREAM command ok.
Site is a standard FTP command, but what host commands the FTP server at the other end supports varies from server to server.
In fact the Qedit for Window Server installation has its own FTP client which FTPs the server and streams the “robelle” job to set the attributes of the Robelle account.
On MPE the default namespace for a given file is typically the MPE namespace. For example if you put a file to your MPE system with the following FTP command:
put myfile mympefile
The file will go to the group you are currently logged into.
If you want to put files into the HFS namespace then you can just specify using the typical Posix notation:
put myfile /MYACCOUNT/MYGROUP/mydirectory/myhfsfile