Network and Storage Protocols

nfsstat -l

tatlee
6,595 Views

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?

Regards,

Terrence

3 REPLIES 3

timohofmann
6,595 Views

Hmm, works perfectly fine here.

Which firmware are you running?

tatlee
6,595 Views

Hi Timo,

I have found out the answer already.

check this kb: https://now.netapp.com/Knowledgebase/solutionarea.asp?id=ntapcs9078

anyway, thanks for your help.

Regards,

Terrence

Damian_Bento
5,237 Views

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

 

NOTE:

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

===== vfiler0
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%)

 

Regards

Public