Chapter Contents |
Previous |
Next |
SAS/C Cross-Platform Compiler and C++ Development System User's Guide, Release 6.50 |
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
SHOWMNT [-e] [-d] [-a] [host]
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.
SHOWMNT -e
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.
showmnt -e byrd.unx
Show mountable file systems on the byrd.unx NFS server.
showmnt byrd.unxShow the list of other hosts that have mounted the NFS file system from byrd.unx.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 1998 by SAS Institute Inc., Cary, NC, USA. All rights reserved.