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 command, which is described in SHOWMNT.


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 on 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 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 flags.

The -e flag 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 or not 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 -e is used in conjunction with other flags, this exports list will be printed first, followed by the list describing actual mounts.

If you don't specify any flags, 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 -d , 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 flag 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 -d , SHOWMNT sorts the list by host. If you do use -d , SHOWMNT sorts the list by directory.

INVOCATION SYNTAX

The syntax is generally identical to that shown above. On MVS, 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.


Chapter Contents

Previous

Next

Top of Page

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