13.3 The NIM Command

13.4 The showmount Command

The showmount command displays a list of all clients that have remotely mounted a file system from a specified machine in the Host parameter. This information is maintained by the mountd daemon on the Host parameter. This information is saved in the /etc/rmtab file in case the server abnormally terminates. The default value for the Host parameter is the value returned by the hostname command.

The showmount command syntax:

showmount [ -a ] [ -d ] [ -e ] [ Host ]

The Flags for the showmount command are described in Table 21.


Table 21: Flags for the showmount Command

To check which filesystems are allowed to be exported type:


# lsfs      
Name            Nodename   Mount Pt               VFS   Size    Options    Auto
Accounting
/dev/hd4        --         /                      jfs   24576   --         yes
no
/dev/hd1        --         /home                  jfs   360448  --         yes
no
/dev/hd2        --         /usr                   jfs   663552  --         yes
no
/dev/hd9var     --         /var                   jfs   401408  --         yes
no
/dev/hd3        --         /tmp                   jfs   65536   --         yes
no
/dev/lv00       --         /export/lpp_source     jfs   884736  rw         yes
no
/dev/lv01       --         /export/spot           jfs   442368  rw         yes
no

Run the showmount command to display a list of all clients that have remotely mounted a file system.

# showmount
raven.itsc.austin.ibm.com

Run showmount -a to see which directories have been remotely mounted with the host details.

# showmount -a
raven.itsc.austin.ibm.com:/export/spot/aix432spot/usr

The showmount -d command is similar to the showmount -a command except it does not show the host details.

# showmount -d
/export/spot/aix432spot/usr

The showmount -e command displays a list of exported directories:

# showmount -e
export list for aix4xdev:
/richfs          raven.itsc.austin.ibm.com
/export/redbooks (everyone)

The showmount -e raven command displays a list of exported directories on the remote host.

# showmount -e raven
export list for raven:
/elaine (everyone)

13.5 Quiz