How to get the list of clients connected to an NFS server within a local network?
<p>I have an NFS server with folder permissions as follows. There are 50 clients which need to connect to this server within the same network. I would like to know what's the command to lookup which are the clients accessing this server from the server.</p>

<p>NFS Server configuration file looks like this.</p>

<pre><code>[root@server ~]# cat /etc/exports
/home/guests    *(rw,sync)
/india          *(rw,sync)
</code></pre>

<p>Below are the  list of shared folders</p>

<pre><code>[root@server ~]# showmount -e
Export list for server.sanith.com:
/india       *
/home/guests *
</code></pre>

<p>For testing purpose I have now connected one client to the server. Below output is from the "client2" machine.</p>

<pre><code>[root@client2 ~]# showmount -e 192.168.1.10
Export list for 192.168.1.10:
/india       *
/home/guests *
[root@client2 ~]# mount -t nfs 192.168.1.10:/india /test
[root@client2 ~]# mount
/dev/sda2 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda1 on /boot type ext4 (rw)
/dev/sda3 on /home type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
192.168.1.10:/india on /test type nfs (rw,vers=4,addr=192.168.1.10,clientaddr=192.168.1.12)
</code></pre>

<p>I tried using <code>showmount -a</code> and <code>showmount -d</code> but not sure what am missing which's not list the client machines connected. </p>

<pre><code>[root@server ~]# showmount -a
All mount points on server.sanith.com:
[root@server ~]# man showmount
[root@server ~]# showmount -d
Directories on server.sanith.com:
[root@server ~]# netstat -an | grep 192.168.1.10:2048
[root@server ~]# netstat -an | grep 192.168.1.10:2049
[root@server ~]# cat /var/lib/nfs/rmtab
[root@server ~]#
</code></pre>

<p>Note : The firewall is disabled on the server temporarily during this testing.
Please advise.</p>