Chapter Contents

Previous

Next
Installing and Administering the NFS Client

NFS Administrator Commands

In addition to the commands described in Using the NFS Client, as an NFS administrator you should be familiar with the SHOWMNT and RPCINFO commands as they are described in the following section.


SHOWMNT

queries an NFS server for file system information

SYNOPSIS
SHOWMNT [-e] [-d] [-a] [host]

DESCRIPTION
The SHOWMNT command queries an NFS server for information about file systems that may be mounted by NFS.

host is the hostname of the NFS server. If you omit this parameter, SHOWMNT returns information about the NFS server on the local machine (if one is installed).

SHOWMNT handles two basic types of lists. The first is an exports list. The exports list tells you which file systems can be mounted. The second is a list describing which mounts have actually taken place. The form of the second list depends on the -d and -a options. The -e option requests the exports list. This includes information about which hosts are authorized to mount the listed file systems. This information may either be everyone, or a list of group names that represent a set of hosts. If it is authorized, a host may mount any of the listed file systems.

You can use the following command when you are trying to determine the name of a file system to mount:

SHOWMNT -e

Note:    You can often mount subdirectories of the listed file systems. Whether you can do this depends on whether the subdirectory is in the same physical file system on the server. Contact the server administrator or examine server configuration files to determine this.  [cautionend]

If the -e option is used in conjunction with other options, this exports list will be printed first, followed by the list describing actual mounts.

If you don't specify any options, SHOWMNT prints the list of actual mounts, showing only the names of the hosts that have a mount. The list is sorted by host name.

If you specify the -d option, SHOWMNT prints the list of actual mounts, showing only the names of directories that have been mounted. The list is sorted by directory name.

The -a option gives the most verbose format for the list of actual mounts. It indicates that the list should be printed as host:directory pairs. If you do not use the -d option, SHOWMNT sorts the list by host. If you do use the -d option, SHOWMNT sorts the list by directory.

INVOCATION SYNTAX
The syntax is generally identical to that shown above. Under OS/390, system administration considerations may require use of the TSO CALL command or other techniques.

EXAMPLES
showmnt -e byrd.unx

Show mountable file systems on the byrd.unx NFS server.

showmnt byrd.unx
Show the list of other hosts that have mounted the NFS file system from byrd.unx.


RPCINFO

queries the Portmapper

SYNOPSIS

DESCRIPTION
The RPCINFO command queries the portmapper on the designated host to determine the status of programs that are available as RPC servers. It can list all programs that are known to the portmapper, and it can test the program itself (as opposed to asking only the portmapper) for availability. To test for program availability, RPCINFO calls the null proceedure (procedure 0) of the program and waits for a response.

The -p option of RPCINFO is used to query the portmapper on the specific host for a list of all registered programs.

The -u and -t options test the programs themselves for availability. Use -u for UDP based services and -t for TCP based services. You can also use -n to specify a TCP or UDP port in the rare case that you want to query a program at a port different from the one known to the portmapper.

The -b option checks all hosts that can be reached with a broadcast from your local machine. This variant is often of limited utility because the set of hosts queried is dependent on the physical configuration of your network.

INVOCATION SYNTAX
The syntax is generally identical to that shown in the SYNOPSIS. On OS/390, system administration considerations may require use of the TSO CALL command or other techniques.

EXAMPLES

rpcinfo -p byrd.unx
Show all RPC servers that are registered on the host named byrd.unx.

rpcinfo -u byrd.unx nfs
Check the status of the NFS server on the host byrd.unx.

rpcinfo -u byrd.unx 100005
Check the status of the NFS mount server (program number 100005) on byrd.unx.


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.