The showmount command provides information on the names of those client computers which have mounted resources from the local or the specified computer. The information which is displayed by showmount is managed by the mountd daemon on the server computer and stored in the file /etc/rmtab.
If no options are specified, the names of those client computers are output which have mounted file systems that are made available by the local computer.
Syntax
showmount[ -a][ -d][ -e][ hostname] |
Outputs a list in the format: hostname:directory where hostname is the name of the client computer and directory is the name of the mounted resource. |
Outputs the names of all directories of the computer hostname which are mounted on client computers. The names of the client computers are not included in the output. |
The names of the directories which are made available by the computer hostname are output. |
Name of the computer about which the information is to be output. If hostname is not specified, the information is output for the local computer. |
If the session on a client computer which has mounted file systems from a server computer does not terminate normally, then the entry in the file /etc/rmtab is retained until the system is restarted and the command is umount -a executed.
Files
/etc/rmtab Table of mounted remote resources |
Examples
Example 1:
Your local computer is called london. You wish to ascertain which client computers have mounted resources from your computer.
$ showmount mountainview tokyo
The client computers mountainview and tokyo have mounted resources made available by the computer london.
Example 2:
You would like to know which resources from your local computer london are mounted onclients.
$ showmount -d /usr1/steven
Only the directory /usr1/steven, which is made available by your computer, is mounted on clients.
Example 3:
You would like to know which client computers have mounted which resources from your local computer london.
$ showmount -a mountainview:/usr1/steven tokyo:/usr1/steven
The directory /usr1/steven, which is made available by your computer, is mounted both on the client computer mountainview and also on the client computer tokyo.
Example 4:
You would like to know which directories from your local computer london have been made available for which client computers.
$ showmount -e export list for london: /usr1 (everyone) /usr windsor,stirling
The local computer london makes available the directory /usr1 for all clients (user group everyone) and the directory /usr for the client computers windsor and stirling.