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.
36 Print only NFS v4 statistics.
39 Print information about each of the mounted \fBNFS\fR file systems.
41 If this option is used, all other options are ignored.
44 Print only RPC statistics.
47 Display statistics for the specified facility, which must be one of:
51 NFS protocol information, split up by RPC call.
54 General RPC information.
57 Network layer statistics, such as the number of received packets, number
58 of TCP connections, etc.
61 Usage information on the server's file handle cache, including the
62 total number of lookups, and the number of hits and misses.
65 Usage information on the server's request reply cache, including the
66 total number of lookups, and the number of hits and misses.
69 Display all of the above facilities.
73 This is equivalent to \fB\-o all\fR.
76 Print information in list form.
78 .BI "\-S, \-\-since " file
79 Instead of printing current statistics,
81 imports statistics from
83 and displays the difference between those and the current statistics.
85 .IR file "s may be in the form of "
89 (raw server stats), or saved output from
91 itself (client and/or server stats). Any statistics missing from a saved
95 are treated as zeroes.
97 .B \-Z[interval], \-\-sleep=[interval]
98 Instead of printing current statistics and immediately exiting,
100 takes a snapshot of the current statistics and pauses until it receives
104 at which point it takes another snapshot and displays the difference
106 If \fIinterval\fR is specified,
108 will print the number of \fBNFS\fR calls made since the previous report.
109 Stats will be printed repeatedly every \fIinterval\fR seconds.
110 .\" --------------------- EXAMPLES -------------------------------
113 .B nfsstat \-o all \-234
114 Show all information about all versions of \fBNFS\fR.
116 .B nfsstat \-\-verbose \-234
120 Show all information about active versions of \fBNFS\fR.
122 .B nfsstat \-\-nfs \-\-server \-3
123 Show statistics for \fBNFS\fR version 3 server.
126 Show information about mounted \fBNFS\fR filesystems.
127 .\" --------------------- DISPLAY --------------------------------
129 The \fBFlags\fR output from the \fB\-m\fR option is the same as the
130 flags give to the \fBmount\fR command.
131 .\" --------------------- FILES ----------------------------------
134 .B /proc/net/rpc/nfsd
136 interface to kernel NFS server statistics.
140 interface to kernel NFS client statistics.
144 interface to the mounted filesystems.
145 .\" -------------------- SEE ALSO --------------------------------
149 .\" ---------------------- BUGS ----------------------------------
151 The default output has been changed. To get the old default output you must run \fBnfsstat \-\-auto \-2\fR.
153 The function of the \fB\-v\fR and \fB\-a\fR options have changed. The \fB\-a\fR option
154 is now reserved for future use. The \fB\-v\fR does what the \fB\-a\fR option used to do,
155 and the new \fB\-[234]\fR options replace the \fB\-v\fR option.
157 The \fBDisplay\fR section should be more complete.
159 Further bugs can be found or reported at
160 .BR http://nfs.sf.net/ .
161 .\" -------------------- AUTHOR ----------------------------------
163 Olaf Kirch, <okir@suse.de>