Subscribe

NFS access report

[ Edited ]

I have already done some search on this and found below topic which is pretty close to my requirement, but there was no real solution available and the discussion was pretty old:

 

https://community.netapp.com/t5/Network-Storage-Protocols-Discussions/Reports-from-netgroup-exports/m-p/50752/thread-id/4651

 

My question is:

 

I have a NFS export on OnTap 7-mode as below:

 

/vol/test_vol     -sec=sys,rw,root=172.17.39.74

 

I want to know which hosts have accessed it over NFS in say last 1 month.

 

Is it possible at all? If yes, how?

 

My apologies if this question has been already asked and answered.

Re: NFS access report

as far as i know, there is no way to get the last 1month record but current mount status can be recorded with the command "nfsstat -l".

It's similar to the cifs sessions which will give the current statistics report.

Re: NFS access report

[ Edited ]

Thank you so much SYNTAXERROR and satishkumar for taking time to respond. The thread you suggested above is really on the same topic, but the issue is that the "nfsstat -l" command provides below output which doesn't tell me anything about a particular volume/qtree/export:

 

===== vfiler0
10.10.39.94    <hostname unknown>              NFSOPS = 7619495490 ( 6%)
10.10.39.87    <hostname unknown>              NFSOPS = 6584754022 ( 6%)
10.10.39.132   <hostname unknown>              NFSOPS = 6237180171 ( 5%)
10.10.39.133   <hostname unknown>              NFSOPS = 6042870027 ( 5%)

 

What I need is who has mounted a particular volume/qtree/export.

 

"showmount -a <filername>" does work, but it also throws up lot of stale data. Hence the output isn't reliable unless validated otherwise.

 

Or are you talking about some other solution provided in that thread?