4 .\" Copyright (C) 1996-2005 Olaf Kirch <okir@suse.de>
5 .TH nfsstat 8 "7 Aug 2007"
7 nfsstat \- list NFS statistics
14 displays statistics kept about NFS client and server activity.
18 Print only server-side statistics. The default is to print both server and
22 Print only client-side statistics.
25 Print only NFS statistics. The default is to print both NFS and RPC
29 Print only NFS v2 statistics. The default is to only print information
30 about the versions of \fBNFS\fR that have non-zero counts.
33 Print only NFS v3 statistics. The default is to only print information
34 about the versions of \fBNFS\fR that have non-zero counts.
37 Print only NFS v4 statistics. The default is to only print information
38 about the versions of \fBNFS\fR that have non-zero counts.
41 Print information about each of the mounted \fBNFS\fR file systems.
43 If this option is used, all other options are ignored.
46 Print only RPC statistics.
49 Display statistics for the specified facility, which must be one of:
53 NFS protocol information, split up by RPC call.
56 General RPC information.
59 Network layer statistics, such as the number of received packets, number
60 of TCP connections, etc.
63 Usage information on the server's file handle cache, including the
64 total number of lookups, and the number of hits and misses.
67 Usage information on the server's request reply cache, including the
68 total number of lookups, and the number of hits and misses.
71 Display all of the above facilities.
75 This is equivalent to \fB\-o all\fR.
78 Print information in list form.
80 .BI "\-S, \-\-since " file
81 Instead of printing current statistics,
83 imports statistics from
85 and displays the difference between those and the current statistics.
87 .IR file "s may be in the form of "
91 (raw server stats), or saved output from
93 itself (client and/or server stats). Any statistics missing from a saved
97 are treated as zeroes.
99 .B \-Z[interval], \-\-sleep=[interval]
100 Instead of printing current statistics and immediately exiting,
102 takes a snapshot of the current statistics and pauses until it receives
106 at which point it takes another snapshot and displays the difference
108 If \fIinterval\fR is specified,
110 will print the number of \fBNFS\fR calls made since the previous report.
111 Stats will be printed repeatedly every \fIinterval\fR seconds.
112 .\" --------------------- EXAMPLES -------------------------------
115 .B nfsstat \-o all \-234
116 Show all information about all versions of \fBNFS\fR.
118 .B nfsstat \-\-verbose \-234
122 Show all information about active versions of \fBNFS\fR.
124 .B nfsstat \-\-nfs \-\-server \-3
125 Show statistics for \fBNFS\fR version 3 server.
128 Show information about mounted \fBNFS\fR filesystems.
129 .\" --------------------- DISPLAY --------------------------------
131 The \fBFlags\fR output from the \fB\-m\fR option is the same as the
132 flags give to the \fBmount\fR command.
133 .\" --------------------- FILES ----------------------------------
136 .B /proc/net/rpc/nfsd
138 interface to kernel NFS server statistics.
142 interface to kernel NFS client statistics.
146 interface to the mounted filesystems.
147 .\" -------------------- SEE ALSO --------------------------------
151 .\" ---------------------- BUGS ----------------------------------
153 The default output has been changed. To get the old default output you must run \fBnfsstat \-\-auto \-2\fR.
155 The function of the \fB\-v\fR and \fB\-a\fR options have changed. The \fB\-a\fR option
156 is now reserved for future use. The \fB\-v\fR does what the \fB\-a\fR option used to do,
157 and the new \fB\-[234]\fR options replace the \fB\-v\fR option.
159 The \fBDisplay\fR section should be more complete.
161 Further bugs can be found or reported at
162 .BR http://nfs.sf.net/ .
163 .\" -------------------- AUTHOR ----------------------------------
165 Olaf Kirch, <okir@suse.de>