2 .\" Copyright (c) 1997-1999 Erez Zadok
3 .\" Copyright (c) 1990 Jan-Simon Pendry
4 .\" Copyright (c) 1990 Imperial College of Science, Technology & Medicine
5 .\" Copyright (c) 1990 The Regents of the University of California.
6 .\" All rights reserved.
8 .\" This code is derived from software contributed to Berkeley by
9 .\" Jan-Simon Pendry at Imperial College, London.
11 .\" Redistribution and use in source and binary forms, with or without
12 .\" modification, are permitted provided that the following conditions
14 .\" 1. Redistributions of source code must retain the above copyright
15 .\" notice, this list of conditions and the following disclaimer.
16 .\" 2. Redistributions in binary form must reproduce the above copyright
17 .\" notice, this list of conditions and the following disclaimer in the
18 .\" documentation and/or other materials provided with the distribution.
19 .\" 3. All advertising materials mentioning features or use of this software
20 .\" must display the following acknowledgment:
21 .\" This product includes software developed by the University of
22 .\" California, Berkeley and its contributors.
23 .\" 4. Neither the name of the University nor the names of its contributors
24 .\" may be used to endorse or promote products derived from this software
25 .\" without specific prior written permission.
27 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
28 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
31 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
32 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 .\" %W% (Berkeley) %G%
41 .\" $Id: amq.8,v 1.2 1999/01/10 21:53:58 ezk Exp $
42 .\" $FreeBSD: src/contrib/amd/amq/amq.8,v 1.5.2.3 2001/08/16 10:53:40 ru Exp $
43 .\" $DragonFly: src/contrib/amd/amq/amq.8,v 1.2 2003/06/17 04:23:57 dillon Exp $
50 .Nd automounter query tool
56 .Op Fl x Ar log_options
57 .Op Fl D Ar debug_options
58 .Op Fl M Ar mountmap_entry
59 .Op Fl P Ar program_number
64 provides a simple way of determining the current state of the
69 Three modes of operation are supported by the current protocol.
70 By default a list of mount points and auto-mounted filesystems
72 An alternative host can be specified using the
76 If directory names are given, as output by default,
77 then per-filesystem information is displayed.
81 Request automounter to flush the internal caches.
85 By default the local host is used. In an
87 cluster, the root server is queried by default, since
88 that is the system on which the automounter is normally run.
93 For security reasons, this must be the same log file which
95 used when started. This option is therefore only useful to
98 open file handle on the log file, so that it can be rotated and compressed via
101 Request the automounter to provide a list of mounted filesystems,
102 including the number of references to each filesystem and any error
103 which occurred while mounting.
105 Return the process ID of the remote or locally running
107 Useful when you need to send a signal to the local
109 process, and would rather not have to search through the process table. This
110 option is used in the
114 Request the automounter to provide system-wide mount statistics.
116 Request the automounter to unmount the named filesystems
117 instead of providing information about them. Unmounts are requested,
118 not forced. They merely cause the mounted filesystem to timeout,
119 which will be picked up by
121 main scheduler thus causing the normal timeout action to be taken.
123 Request the automounter to provide version information. This is a subset
124 of the information provided by
127 .It Fl x Ar log_options
128 Ask the automounter to use the logging options specified in
131 .It Fl D Ar log_options
132 Ask the automounter to use the debugging options specified in
136 Pass a mount map entry to
138 and wait for it to be evaluated, possibly causing a mount.
139 This option is highly insecure.
145 It is necessary to configure
148 .Ar --enable-amq-mount
149 to enable this option.
150 .It Fl P Ar program_number
151 Contact an alternate running
153 that had registered itself on a different RPC
155 and apply all other operations to that instance of the automounter.
156 This is useful when running multiple copies of
158 and need to manage each one separately.
161 will use the default program number for
164 For security reasons, the only alternate program numbers
166 can use range from 300019 to 300029, inclusive.
170 using the TCP transport only.
173 will try TCP, and if that fails, will try UDP.
177 using UDP (connectionless) transport only.
180 will try TCP, and if that fails, will try UDP.
183 .Bl -tag -width amq.x -compact
186 protocol description.
190 uses a Sun registered
192 program number (300019 decimal) which may not
200 .An Jan-Simon Pendry Aq jsp@doc.ic.ac.uk ,
201 Department of Computing, Imperial College, London, UK.
203 .An Erez Zadok Aq ezk@cs.columbia.edu ,
204 Department of Computer Science, Columbia University, New York, USA.
206 .An Other authors and contributors to
210 file distributed with