1nfsstat(8) System Manager's Manual nfsstat(8)
2
3
4
6 nfsstat - list NFS statistics
7
9 nfsstat [OPTION]...
10
12 The nfsstat displays statistics kept about NFS client and server activ‐
13 ity.
14
16 -s, --server
17 Print only server-side statistics. The default is to print both
18 server and client statistics.
19
20 -c, --client
21 Print only client-side statistics.
22
23 -n, --nfs
24 Print only NFS statistics. The default is to print both NFS and
25 RPC information.
26
27 -2 Print only NFS v2 statistics. The default is to only print
28 information about the versions of NFS that have non-zero counts.
29
30 -3 Print only NFS v3 statistics. The default is to only print
31 information about the versions of NFS that have non-zero counts.
32
33 -4 Print only NFS v4 statistics. The default is to only print
34 information about the versions of NFS that have non-zero counts.
35
36 -m, --mounts
37 Print information about each of the mounted NFS file systems.
38
39 If this option is used, all other options are ignored.
40
41 -r, --rpc
42 Print only RPC statistics.
43
44 -o facility
45 Display statistics for the specified facility, which must be one
46 of:
47
48 nfs NFS protocol information, split up by RPC call.
49
50 rpc General RPC information.
51
52 net Network layer statistics, such as the number of received
53 packets, number of TCP connections, etc.
54
55 fh Usage information on the server's file handle cache,
56 including the total number of lookups, and the number of
57 hits and misses.
58
59 rc Usage information on the server's request reply cache,
60 including the total number of lookups, and the number of
61 hits and misses.
62
63 all Display all of the above facilities.
64
65 -v, --verbose
66 This is equivalent to -o all.
67
68 -l, --list
69 Print information in list form.
70
71 -S, --since file
72 Instead of printing current statistics, nfsstat imports statis‐
73 tics from file and displays the difference between those and the
74 current statistics. Valid input files may be in the form of
75 /proc/net/rpc/nfs (raw client stats), /proc/net/rpc/nfsd (raw
76 server stats), or saved output from nfsstat itself (client
77 and/or server stats). Any statistics missing from a saved nfs‐
78 stat output file are treated as zeroes.
79
80 -Z[interval], --sleep=[interval]
81 Instead of printing current statistics and immediately exiting,
82 nfsstat takes a snapshot of the current statistics and pauses
83 until it receives SIGINT (typically from Ctrl-C), at which point
84 it takes another snapshot and displays the difference between
85 the two. If interval is specified, nfsstat will print the num‐
86 ber of NFS calls made since the previous report. Stats will be
87 printed repeatedly every interval seconds.
88
90 nfsstat -o all -234
91 Show all information about all versions of NFS.
92
93 nfsstat --verbose -234
94 Same as above.
95
96 nfsstat -o all
97 Show all information about active versions of NFS.
98
99 nfsstat --nfs --server -3
100 Show statistics for NFS version 3 server.
101
102 nfsstat -m
103 Show information about mounted NFS filesystems.
104
106 The Flags output from the -m option is the same as the flags give to
107 the mount command.
108
110 /proc/net/rpc/nfsd
111 procfs-based interface to kernel NFS server statistics.
112
113 /proc/net/rpc/nfs
114 procfs-based interface to kernel NFS client statistics.
115
116 /proc/mounts
117 procfs-based interface to the mounted filesystems.
118
120 rpc.nfsd(8). nfs(5).
121
123 The default output has been changed. To get the old default output you
124 must run nfsstat --auto -2.
125
126 The function of the -v and -a options have changed. The -a option is
127 now reserved for future use. The -v does what the -a option used to do,
128 and the new -[234] options replace the -v option.
129
130 The Display section should be more complete.
131
132 Further bugs can be found or reported at http://nfs.sf.net/.
133
135 Olaf Kirch, <okir@suse.de>
136
137
138
139 7 Aug 2007 nfsstat(8)