xref: /openbsd/usr.bin/showmount/showmount.8 (revision d415bd75)
1.\"	$OpenBSD: showmount.8,v 1.14 2022/07/30 07:19:31 jsg Exp $
2.\"	$NetBSD: showmount.8,v 1.5 1995/08/31 22:26:07 jtc Exp $
3.\"
4.\" Copyright (c) 1989, 1991, 1993
5.\"	The Regents of the University of California.  All rights reserved.
6.\"
7.\" This code is derived from software contributed to Berkeley by
8.\" Rick Macklem at The University of Guelph.
9.\"
10.\" Redistribution and use in source and binary forms, with or without
11.\" modification, are permitted provided that the following conditions
12.\" are met:
13.\" 1. Redistributions of source code must retain the above copyright
14.\"    notice, this list of conditions and the following disclaimer.
15.\" 2. Redistributions in binary form must reproduce the above copyright
16.\"    notice, this list of conditions and the following disclaimer in the
17.\"    documentation and/or other materials provided with the distribution.
18.\" 3. Neither the name of the University nor the names of its contributors
19.\"    may be used to endorse or promote products derived from this software
20.\"    without specific prior written permission.
21.\"
22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
34.\"     @(#)showmount.8	8.3 (Berkeley) 3/29/95
35.\"
36.Dd $Mdocdate: July 30 2022 $
37.Dt SHOWMOUNT 8
38.Os
39.Sh NAME
40.Nm showmount
41.Nd show remote NFS mounts on host
42.Sh SYNOPSIS
43.Nm showmount
44.Op Fl 3ade
45.Op Ar host
46.Sh DESCRIPTION
47.Nm
48shows status information about the
49.Tn NFS
50server on
51.Ar host .
52By default it prints the names of all hosts that have
53.Tn NFS
54file systems mounted
55on the host.
56See
57.%T "NFS: Network File System Protocol Specification" ,
58RFC 1094,
59Appendix A,
60and
61.%T "NFS: Network File System Version 3 Protocol Specification" ,
62Appendix I,
63for a detailed description of the protocol.
64.Bl -tag -width Ds
65.It Fl 3
66Use mount protocol Version 3, compatible with NFS Version 3.
67.It Fl a
68List all mount points in the form:
69.Ar host : Ns Ar dirpath .
70.It Fl d
71List directory paths of mount points instead of hosts.
72.It Fl e
73Show the
74.Ar host Ns 's
75exports list.
76.El
77.Sh SEE ALSO
78.Xr mount 8 ,
79.Xr mountd 8
80.Sh HISTORY
81The
82.Nm
83utility first appeared in
84.Bx 4.3 Reno .
85.Sh BUGS
86The mount daemon running on the server only has an idea of the actual mounts,
87since the
88.Tn NFS
89server is stateless.
90.Nm
91will only display the information
92as accurately as the mount daemon reports it.
93