Figure 1 shows how to retrieve the necessary files
to install the client commands on workstations with AIX®, Sun
Solaris, or Linux. Use the "Make" section that is appropriate for
your platform and omit the others. Use MVSHOST1 as the name of the
z/OS host, and
smith is a z/OS user ID.
Note: The
compiler name can be changed to match the installed compiler name.
Figure 1. Retrieving the client
enabling commands for AIX, Sun Solaris, and Linux $ ftp mvshost1
Connected to mvshost1
220-FTPSERVE at MVSHOST1, 01:44:24 on 6/02/07
220 Connection closes if idle for more than 5 minutes.
Name (mvshost1:w42dept): smith
<Press ENTER key>
331 Send password please.
Password: password
230 smith is logged on.
ftp> bin
200 Representation type is IMAGE.
ftp> get 'prefix.nfstarb(gfsawaix)' client.tarbin
200 Port request OK.
125 Sending data set PREFIX.NFSTARB(GFSAWAIX)
250 Transfer completed successfully.
local: client.tarbin remote: 'prefix.nfstarb(gfsawaix)'
213504 bytes received in 2.4 seconds (87 Kbytes/s)
ftp> quit
221 Quit command received. Goodbye. $
$ mkdir mvsnfs.client
$ cd mvsnfs.client
$ tar -xvf ../client.tarbin
tar: record size = 20 blocks
x ./makefile, 8234 bytes, 17 tape blocks
x ./gfsawaxd.c, 13474 bytes, 27 tape blocks
⋮
$
$ touch *.*
(Following are Make sections for each supported platform - use the appropriate one
SUN:
$ make sun
gcc -D SUN -D _UTILS -D SOLARIS -lnsl -lsocket -o showattr gfsawsha.c gfsawaxd.c
gcc -D SUN -D _UTILS -D SOLARIS -lnsl -lsocket -o mvslogin gfsawlin.c gfsawmou.c
gcc -D SUN -D _UTILS -D SOLARIS -lnsl -lsocket -o mvslogout gfsawmou.c gfsawlou.c
Sun binaries for NFS Tools are made
LINUX:
make linux
gcc -D LINUX -D _UTILS -o showattr gfsawsha.c gfsawaxd.c
gcc -D LINUX -D _UTILS -o mvslogin gfsawlin.c gfsawmou.c
gcc -D LINUX -D _UTILS -o mvslogout gfsawmou.c gfsawlou.c
Linux binaries for NFS Tools are made
ZLINUX:
$ make zlinux
cc -D LINUX -D _UTILS -m31 -o showattr gfsawsha.c gfsawaxd.c
cc -D LINUX -D _UTILS -m31 -o mvslogin gfsawlin.c gfsawmou.c
cc -D LINUX -D _UTILS -m31 -o mvslogout gfsawmou.c gfsawlou.c
Binaries for zlinux NFS Tools are made
AIX:
$ make aix
gcc -D AIX -D _UTILS -D AIX_RT -o showattr gfsawsha.c gfsawaxd.c
gcc -D AIX -D _UTILS -D AIX_RT -o mvslogin gfsawlin.c gfsawmou.c
gcc -D AIX -D _UTILS -D AIX_RT -o mvslogout gfsawmou.c gfsawlou.c
AIX binaries for NFS Tools are made
$ ./mvslogin mvshost1 smith
(MVSNFS must be operational. Password Required on host side.)
GFSA988I Remote host does not have AF_INET6 interface.
GFSA973A Enter MVS password: password
GFSA955I smith logged in ok.
$
After retrieving the files of client enabling source code for the
AIX or UNIX environment, follow these steps as shown in Figure 1 to create the executable commands:
- To make sure the source files have the current date. Some platforms
do not have correct time stamps and cause make files to fail; issue
the following command.
touch *.*
- To create the executable commands mvslogin, mvslogout, and showattr, issue
one of these commands for the environment that IBM supports.
- make aix
- Creates executables for AIX.
- make sun
- Creates executables for Sun.
- make linux
- Creates executables for Linux.
- make zlinux
- Creates executables for zLinux.
Note: In order to build zLinux, you MUST have a 32-bit
build environment installed on your zLinux system. If a 32-bit
environment is not available, see
Porting on different compilers and operating systems for information
on building 64-bit versions of the Client enabling commands.