LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do I check if my client is connected to the NFS server? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-check-if-my-client-is-connected-to-the-nfs-server-4175622578/)

willc86 01-28-2018 09:46 AM

how do I check if my client is connected to the NFS server?
 
so I know how to check how many established connections are on the nfs servers,

but question is, say I have servera, serverb, serverc.

how do I check if they are connected to any of the NFS servers on our site? say we have over 30 NFS servers serverN1 serverN2...etc

can I log into servera and check if there is an established connection to a NFS server?

jlinkels 01-28-2018 02:22 PM

I tried this:
Code:

netstat -a | grep nfs
and that produced:
Code:

tcp  0  0 donald-pc.megaline.:798 homeservII.megaline:nfs ESTABLISHED
It is correct that I have a connection to homeservII. Two shares are connected. So it does give that there is an active connection to the server, but not on the share level.

jlinkels

MadeInGermany 01-28-2018 02:29 PM

The mount command shows the NFS mounts
Code:

mount | grep -w nfs
Another command is
Code:

nfsstat -m


All times are GMT -5. The time now is 04:55 PM.