LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (http://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   finding nfs clients connected to nfs server (http://www.linuxquestions.org/questions/linux-enterprise-47/finding-nfs-clients-connected-to-nfs-server-4175440984/)

manoj.linux 12-11-2012 10:36 AM

finding nfs clients connected to nfs server
 
Hi,

I would like to what is command which will display nfs clients connect to nfs server?

custangro 12-11-2012 02:45 PM

On what OS?


Usually you can do...

Code:

showmount -a

manoj.linux 12-11-2012 10:00 PM

Thanks Custangro.

bala.linuxtech 12-12-2012 05:38 AM

Quote:

Originally Posted by manoj.linux (Post 4847066)
Hi,

I would like to what is command which will display nfs clients connect to nfs server?

Hi manoj

use #nfsstat command..

It will displays all statistics about NFS ..

Hope it will helps you

Bala.Linuxtech

ramanarora 03-19-2014 03:42 PM

Hello custangro, manoj and bala.linuxtech...

"showmount -a" won't hold true every time, specially in case of NFSv4 since NFSv4 has stopped using rpc.mountd daemon. rpc.mountd is the one which puts in the information regarding the mounts in "/var/lib/nfs/rmtab" (in case of fedora and rhel) and showmount uses "/var/lib/nfs/rmtab" to fetch it's output.

"netstat -an | grep <nfs-server-ip>:2049"

The above netstat command will also not help in this case as the nfs clients which haven't been active for sometime won't be shown in the netstat output.

I am still looking for the alternative for this.. if you guys find anything, do post it here :)


All times are GMT -5. The time now is 11:22 PM.