1 .\" $NetBSD: amq.8,v 1.1.1.2 2009/03/20 20:26:50 christos Exp $
4 .\" Copyright (c) 1997-2009 Erez Zadok
5 .\" Copyright (c) 1990 Jan-Simon Pendry
6 .\" Copyright (c) 1990 Imperial College of Science, Technology & Medicine
7 .\" Copyright (c) 1990 The Regents of the University of California.
8 .\" All rights reserved.
10 .\" This code is derived from software contributed to Berkeley by
11 .\" Jan-Simon Pendry at Imperial College, London.
13 .\" Redistribution and use in source and binary forms, with or without
14 .\" modification, are permitted provided that the following conditions
16 .\" 1. Redistributions of source code must retain the above copyright
17 .\" notice, this list of conditions and the following disclaimer.
18 .\" 2. Redistributions in binary form must reproduce the above copyright
19 .\" notice, this list of conditions and the following disclaimer in the
20 .\" documentation and/or other materials provided with the distribution.
21 .\" 3. All advertising materials mentioning features or use of this software
22 .\" must display the following acknowledgment:
23 .\" This product includes software developed by the University of
24 .\" California, Berkeley and its contributors.
25 .\" 4. Neither the name of the University nor the names of its contributors
26 .\" may be used to endorse or promote products derived from this software
27 .\" without specific prior written permission.
29 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
30 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
33 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
42 .\" File: am-utils/amq/amq.8
44 .TH AMQ 8 "25 April 1989"
46 amq \- automounter query tool
56 .BI \-x " log_options"
58 .BI \-D " debug_options"
60 .BI \-P " program_number"
68 provides a simple way of determining the current state of
73 Three modes of operation are supported by the current protocol. By default
74 a list of mount points and auto-mounted filesystems is output. An
75 alternative host can be specified using the
81 names are given, as output by default, then per-filesystem
82 information is displayed.
87 Ask the automounter to flush the internal caches and reload all the maps.
91 Specify an alternate host to query. By default the local host is used. In
94 cluster, the root server is queried by default, since that is the system on
95 which the automounter is normally run.
101 as the log file name. For security reasons, this must be the same log file
102 which amd used when started. This option is therefore only useful to
103 refresh amd's open file handle on the log file, so that it can be rotated
104 and compressed via daily cron jobs.
108 Ask the automounter to provide a list of mounted filesystems, including the
109 number of references to each filesystem and any error which occurred while
114 Return the process ID of the remote or locally running amd. Useful when you
115 need to send a signal to the local amd process, and would rather not have to
116 search through the process table. This option is used in the
122 Suppress error messages produced when attempting synchronous unmounts
129 Ask the automounter to provide system-wide mount statistics.
133 Ask the automounter to unmount the filesystems named in
136 information about them. Unmounts are requested, not forced. They merely
137 cause the mounted filesystem to timeout, which will be picked up by
139 main scheduler thus causing the normal timeout action to be taken.
144 will attempt to unmount the file system synchronously by waiting until
145 the timeout action is taken and returning an error if the unmount
147 Any error messages produced may be suppressed with the
153 Ask the automounter for its version information. This is a subset of the
154 information output by
161 Translate a full pathname as returned by
165 pathname that goes through its mount points. This option requires that
170 .BI \-x " log_options"
171 Ask the automounter to use the logging options specified in
173 from now on. Note that the "fatal" and "error" options cannot be turned
177 .BI \-D " debug_options"
178 Ask the automounter to use the debugging options specified in
184 Display short usage message.
187 .BI \-P " program_number"
188 Contact an alternate running amd that had registered itself on a different
191 and apply all other operations to that instance of the automounter. This is
192 useful when you run multiple copies of amd, and need to manage each
193 one separately. If not specified, amq will use the default program number
194 for amd, 300019. For security reasons, the only alternate program numbers
195 amd can use range from 300019 to 300029, inclusive.
201 using the TCP transport only. Normally
203 will try TCP, and if that failed, will try UDP.
209 using UDP (connectionless) transport only. Normally
211 will try TCP, and if that failed, will try UDP.
217 protocol description.
221 uses a Sun registered
223 program number (300019 decimal) which may not
224 be in the /etc/rpc database.
226 If the TCP wrappers library is available, and the
230 option is set to ``yes'', then
232 will verify that the host running
234 is authorized to connect. The
236 service name must used in the
240 files. For example, to allow only localhost to connect to
260 .BR hosts_access (5).
266 .I "Linux NFS and Automounter Administration"
267 by Erez Zadok, ISBN 0-7821-2739-8, (Sybex, 2001).
269 .I http://www.am-utils.org
271 .I "Amd \- The 4.4 BSD Automounter"
274 Jan-Simon Pendry <jsp@doc.ic.ac.uk>, Department of Computing, Imperial College, London, UK.
276 Erez Zadok <ezk@cs.sunysb.edu>, Computer Science Department, Stony Brook
277 University, Stony Brook, New York, USA.
279 Other authors and contributors to am-utils are listed in the
281 file distributed with am-utils.