Hi all,
I've got a bunch of NFS clients (v3 and v4) accessing an NFS server and I want to know what files they are opening.
Is there a way I can log NFS file opens (or whatever the call is) and IP address of the client?
I've searched for a DTrace probe/dwatch without luck.
Thanks
/usr/sbin/dtrace -s /tmp/nfs.dtrace | perl -nle '($f,$uid)=($1,$2)if/:entry (.*) \[uid=(\d)\]/;if(not $seen{"$f$uid"}){print"$f $uid";$seen{"$f$uid"}=1}'
I'm also surprised that NFSD doesn't have a debug or logging option.