2009-04-16 01:39 AM
I am trying to display the NFS client info by issuing the command "nfsstat -l", however it comes up with the usage as below:
fas3070-rtp3*> nfsstat -l
usage: nfsstat <interval> [ <count> ]
usage: vfiler run <vfname> nfsstat -h [ <hostname or ip address> ] [ <interval> ]
usage: vfiler run <vfname> nfsstat -l [ <count> ]
usage: nfsstat -z
usage: nfsstat -C
usage: nfsstat [ -c ] [ -t ]
How come it requires the vfiler to run? I tried to input the filer name as the vfname but doesn't work. This is only the normal filer. I have truned on the 'options nfs.per_client_stats.enable'. Is there another command to display the clinet information?
2016-04-21 05:42 AM
Hello Terrence !!
Just in case, whether nfsstat -l doesn't work, that because you're not pointing to the vfiler!!
Enable the NFS statics
options nfs.per_client_stats.enable on
Usually this options Should not remain ON , because causes an performance reduction, Please change it to OFF when you finish.
options nfs.per_client_stats.enable off
In order to reset counters:
houston>vfiler run vfiler0 nfsstat -Z
check the counters
houston>vfiler run vfiler0 nfsstat -l
10.10.39.112 <hostname unknown> NFSOPS = 3717911586 ( 3%)
10.10.39.111 <hostname unknown> NFSOPS = 3023359968 ( 3%)
10.10.75.17 <hostname unknown> NFSOPS = 3011651246 ( 3%)
10.10.39.127 <hostname unknown> NFSOPS = 2038641973 ( 2%)