[Next] [Previous] [Up] [Top] [Contents] [Index]

Chapter 10: Accessing Software Products

10.4 Using Anonymous ftp to Download a Product

UPS products are also available via anonymous ftp from the host FTP.FNAL.GOV. We recommend that after copying over the product tar file using ftp you use UPD to install the product.

If you have a local UPS database, we recommend distributing via UPD because it provides a better interface for declaring products once the tar file is copied. You can always invoke UPD to do this after downloading via ftp, of course.

10.4.1 Access Anonymous ftp

To access anonymous ftp, enter the command:

% ftp ftp.fnal.gov

You will get a response similar to the following, to which you enter anonymous at the Name prompt:

Connected to fsui01.fnal.gov.

220 fsui01 FTP server (Version wu-2.4(2) Thu Jul 20 12:03:52 CDT 1995) ready.

Name (ftp.fnal.gov:your_username): anonymous

Once that is accepted, you will be prompted to enter your email address as a password (e.g., qjones@fnal.gov), which is not echoed to the screen:

331 Guest login ok, send your complete e-mail address as password.

Password:

The screen will then display the following information[50]:

230-This is the FTP service for FTP.FNAL.GOV. Use of this

230-service is for authorized usage only.

230-

230-The purpose of this service is to provide access to the

230-following categories of files:

230- - The FermiTools area: publicly available software under the

230- /pub directory (all users). Files available listed in ls-lR.Z.

230- - The UNIX KITS area: This provides alternate access to files

230- normally accessed via the upd program. (registered users)

230- Files available listed in index.

230-

230-This server allows for on-the-fly compression and uncompression

230-of files retrieved. It also allows you to tar up entire directory

230-structures.

230-

230-You are registered to retrieve files from the UNIX kits area.

230-

230-Please read the file readme

230- it was last modified on Wed Sep 27 16:47:32 1995 - 415 days ago

230 Guest login ok, access restrictions apply.

In the top level directory a readme file is provided that discusses some of the available tools and features.

[Missing image]If you are on an off-site node, it must be registered with Fermilab in order to use anonymous ftp to obtain tar files[51] from the KITS area. If you need to register, use the UNIX Product Distribution Registration Form in the top level directory under the filename registration. All machines in the fnal.gov domain are automatically registered.

Here is a top-level directory listing for reference:

ftp> dir

200 PORT command successful.

150 Opening ASCII mode data connection for /bin/ls.

total 66

dr-xr-xr-x 8 ftp root 1024 Nov 19 22:00 .

dr-xr-xr-x 8 ftp root 1024 Nov 19 22:00 ..

drwxrwxr-x 7 ftp 995 512 Oct 31 11:21 .incoming

drwxr-xr-x 20 kits sys 1024 Nov 19 22:00 KITS

lrwxrwxrwx 1 root other 7 Jul 27 1995 bin -> usr/bin

dr-xr-xr-x 2 root other 512 Jul 27 1995 dev

dr-xr-xr-x 2 root other 512 Apr 24 1996 etc

drwx------ 2 root root 8192 Jul 27 1995 lost+found

-rw-r--r-- 1 root other 11824 Nov 19 22:00 ls-lR.Z

lrwxrwxrwx 1 root other 8 Sep 15 1995 pub -> KITS/pub

-rw-r--r-- 1 root other 1566 Sep 27 1995 readme

-rw-r--r-- 1 root other 1937 Mar 26 1996 registration

dr-xr-xr-x 5 root other 512 Apr 24 1996 usr

226 Transfer complete.

827 bytes received in 0.17 seconds (4.6 Kbytes/s)

Most UPS products can be found under the KITS directory. Access to this directory is restricted to registered users. Directly under KITS is a directory for each supported OS type, under which the product instance tar files appropriate to each one are maintained. The declared directory containing the product declaration files is also available under KITS. The public ftp area KITS/pub, available to all (registered and nonregistered) users, includes the Fermilab Software Tools (FermiTools). This collection of software is intended to provide the internet community with many of the Fermilab-developed software packages that we believe have general value to other application domains.

To see the contents of KITS, run the following (the output has been abbreviated for this manual):

ftp> cd KITS

250 CWD command successful.

ftp> dir

drwxr-xr-x 102 kits sys 2048 Oct 29 17:31 AIX

drwxr-xr-x 53 kits sys 1024 Nov 19 10:53 GENERIC_UNIX

drwxr-xr-x 25 kits sys 512 Aug 15 13:57 HP-UX

drwxr-xr-x 153 kits upd 2560 Oct 29 17:38 IRIX

drwxr-xr-x 2 kits sys 512 Aug 27 14:47 LINUX

drwxr-xr-x 84 kits upd 1536 Nov 6 13:29 OSF1

drwxr-xr-x 111 kits sys 2048 Oct 29 17:46 SunOS

drwxr-xr-x 41 kits sys 1024 Aug 15 13:56 ULTRIX

drwxr-xr-x 2 kits sys 3584 Nov 19 12:08 declared

drwxrwsr-x 22 bin frmtools 512 Nov 14 22:29 pub

10.4.2 Select a Product Instance Tar File

From the root directory (/), cd to the appropriate OS type subdirectory under KITS (SunOS is used as an example here). You'll need to "get" the index file since you can't list a remote file from ftp. Since index is an ASCII file, make sure you set the mode to ASCII first, as shown below:

ftp> cd KITS/SunOS

250-A complete listing of files available under this directory

250-structure is available in the index file.

250-

250 CWD command successful.

ftp> ascii

200 Type set to A.

ftp> get

(remote-file) index

(local-file) index_SunOS

200 PORT command successful.

150 Opening ASCII mode data connection for index (74193 bytes).

226 Transfer complete.

local: index_SunOS remote: index

76388 bytes received in 0.89 seconds (84 Kbytes/s)

Now you have a local (renamed) copy. Use the ftp command ! to run less as a shell command to list the file contents:

ftp> !less index_SunOS

You'll find that the file lists everything under KITS; all directories, subdirectories and tar files.

10.4.3 Copy the Tar File

Any file that is not a straight text file must be transferred in binary mode. Set the mode to binary (bin) and then use the standard ftp get function to copy the tar file. Refer to section 13.1.1 for information on standard ftp commands.

After the tar file is downloaded, use UPD to unwind it into the appropriate location on your system and declare it, as described in section 10.3.1.


[50] The "last modified" information will change, of course.
[51] Note, the FermiTools products are not subject to this restriction; you do not need to register your node to obtain tar files from the FermiTools /pub area.

UNIX at Fermilab - 10 Apr 1998

[Next] [Previous] [Up] [Top] [Contents] [Index]