Network Storage Protocols Discussions

nfsstat -l

tatlee

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

Hmm, works perfectly fine here.

Which firmware are you running?

tatlee

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

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public