showmount
Command
Use the showmount
command to display the following information:
-
All clients that have remotely mounted file systems that are shared from an NFS server
-
Only the file systems that are mounted by clients
-
Shared file systems with client access information
Note:
Theshowmount
command shows only NFS Version 2 and Version 3 exports. This command does not show NFS Version 4 exports.
The command syntax is as follows:
showmount [-ade] [hostname]
-
-a
-
Prints a list of all the remote mounts. Each entry includes the client name and the directory.
-
-d
-
Prints a list of the directories that are remotely mounted by clients.
-
-e
-
Prints a list of the files that are shared or are exported.
- hostname
-
Selects the NFS server to gather the information from.
If hostname is not specified, the local host is queried.
The following example lists all clients and the local directories that the clients have mounted:
# showmount -a bee
lilac:/export/share/man
lilac:/usr/src
rose:/usr/src
tulip:/export/share/man
The following example lists the directories that have been mounted:
# showmount -d bee
/export/share/man
/usr/src
The following example lists file systems that have been shared:
# showmount -e bee
/usr/src (everyone)
/export/share/man eng
The nfs_props/showmount_info
property of the /network/nfs/server:default
service controls how much information is displayed to a client by the showmount
command. The default value is full
. If this value is set to none
then the client will see only those remote file systems on the server that the client can mount. No information about other clients is displayed. See Restricting File System Information Displayed to Clients for an example of how to change this property.