System Administration Guide: Resource Management and Network Services

showmount

This command displays one of the following:

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.

Using the showmount Command

This command 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

This command lists the directories that have been mounted.


# showmount -d bee
/export/share/man
/usr/src

This command lists file systems that have been shared.


# showmount -e bee
/usr/src								(everyone)
/export/share/man					eng