linux - How to get the list of clients connected to an NFS server within a local network? -
i have nfs server folder permissions follows. there 50 clients need connect server within same network. know what's command lookup clients accessing server server.
nfs server configuration file looks this.
[root@server ~]# cat /etc/exports /home/guests *(rw,sync) /india *(rw,sync)
below list of shared folders
[root@server ~]# showmount -e export list server.sanith.com: /india * /home/guests *
for testing purpose have connected 1 client server. below output "client2" machine.
[root@client2 ~]# showmount -e 192.168.1.10 export list 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)
i tried using showmount -a
, showmount -d
not sure missing which's not list client machines connected.
[root@server ~]# showmount -a 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 ~]#
note : firewall disabled on server temporarily during testing. please advise.
i know question quite old on first page of google search , found answer. can find connected nfs clients running following on nfs server:
netstat -a | grep nfsd
Comments
Post a Comment