xref: /openbsd/usr.bin/nfsstat/nfsstat.1 (revision 17df1aa7)
1.\"	$OpenBSD: nfsstat.1,v 1.13 2007/05/31 19:20:14 jmc Exp $
2.\"	$NetBSD: nfsstat.1,v 1.8 1996/03/03 17:21:28 thorpej Exp $
3.\"
4.\" Copyright (c) 1989, 1990, 1993
5.\"	The Regents of the University of California.  All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions
9.\" are met:
10.\" 1. Redistributions of source code must retain the above copyright
11.\"    notice, this list of conditions and the following disclaimer.
12.\" 2. Redistributions in binary form must reproduce the above copyright
13.\"    notice, this list of conditions and the following disclaimer in the
14.\"    documentation and/or other materials provided with the distribution.
15.\" 3. Neither the name of the University nor the names of its contributors
16.\"    may be used to endorse or promote products derived from this software
17.\"    without specific prior written permission.
18.\"
19.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29.\" SUCH DAMAGE.
30.\"
31.\"     from: @(#)nfsstat.1	8.1 (Berkeley) 6/6/93
32.\"
33.Dd $Mdocdate: May 31 2007 $
34.Dt NFSSTAT 1
35.Os
36.Sh NAME
37.Nm nfsstat
38.Nd display
39.Tn NFS
40statistics
41.Sh SYNOPSIS
42.Nm nfsstat
43.Op Fl cs
44.Op Fl M Ar core
45.Op Fl N Ar system
46.Op Fl w Ar wait
47.Sh DESCRIPTION
48.Nm
49displays statistics kept about
50.Tn NFS
51client and server activity.
52If neither
53.Fl M
54nor
55.Fl N
56option was specified statics will be obtained from the running system
57by calling
58.Xr sysctl 3
59routine. Otherwise specified core and system will be used to fetch
60data by means of
61.Xr kvm 3 .
62.Pp
63The options are as follows:
64.Bl -tag -width Ds
65.It Fl c
66Display client statistics only.
67.It Fl M Ar core
68Extract values associated with the name list from the specified core
69instead of the default
70.Pa /dev/kmem .
71.It Fl N Ar system
72Extract the name list from the specified system instead of the default
73.Pa /bsd .
74.It Fl s
75Display server statistics only.
76.It Fl w Ar wait
77Display a shorter summary of
78.Tn NFS
79activity for both the client and server at
80.Ar wait
81second intervals.
82.El
83.Sh FILES
84.Bl -tag -width /dev/kmem -compact
85.It Pa /bsd
86default kernel namelist
87.It Pa /dev/kmem
88default memory file
89.El
90.Sh SEE ALSO
91.Xr fstat 1 ,
92.Xr netstat 1 ,
93.Xr ps 1 ,
94.Xr systat 1 ,
95.Xr kvm 3 ,
96.Xr sysctl 3 ,
97.Xr iostat 8 ,
98.Xr pstat 8 ,
99.Xr vmstat 8
100.Sh HISTORY
101The
102.Nm
103command appeared in
104.Bx 4.4 .
105