xref: /openbsd-src/usr.bin/nfsstat/nfsstat.1 (revision 6db3e3d75c144c229ff6f1bc9aade65a2297b7f7)
1.\"	$OpenBSD: nfsstat.1,v 1.19 2022/07/30 07:19:31 jsg 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: July 30 2022 $
34.Dt NFSSTAT 1
35.Os
36.Sh NAME
37.Nm nfsstat
38.Nd display NFS statistics
39.Sh SYNOPSIS
40.Nm nfsstat
41.Op Fl cs
42.Op Fl M Ar core
43.Op Fl N Ar system
44.Op Fl w Ar wait
45.Sh DESCRIPTION
46.Nm
47displays statistics kept about NFS client and server activity.
48If neither
49.Fl M
50nor
51.Fl N
52option was specified, statistics will be obtained from the running system
53by calling
54.Xr sysctl 2 .
55Otherwise the specified core and system will be used to fetch
56data by means of
57.Xr kvm 3 .
58.Pp
59The options are as follows:
60.Bl -tag -width Ds
61.It Fl c
62Display client statistics only.
63.It Fl M Ar core
64Extract values associated with the name list from the specified core
65instead of the default
66.Pa /dev/kmem .
67.It Fl N Ar system
68Extract the name list from the specified system instead of the default
69.Pa /bsd .
70.It Fl s
71Display server statistics only.
72.It Fl w Ar wait
73Display a shorter summary of NFS
74activity for both the client and server at
75.Ar wait
76second intervals.
77.El
78.Sh FILES
79.Bl -tag -width /dev/kmem -compact
80.It Pa /bsd
81default kernel namelist
82.It Pa /dev/kmem
83default memory file
84.El
85.Sh SEE ALSO
86.Xr fstat 1 ,
87.Xr netstat 1 ,
88.Xr ps 1 ,
89.Xr systat 1 ,
90.Xr sysctl 2 ,
91.Xr kvm 3 ,
92.Xr iostat 8 ,
93.Xr pstat 8 ,
94.Xr vmstat 8
95.Sh HISTORY
96The
97.Nm
98command appeared in
99.Bx 4.3 Reno .
100