2 .\" Copyright (c) 1997-2014 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. Neither the name of the University nor the names of its contributors
20 .\" may be used to endorse or promote products derived from this software
21 .\" without specific prior written permission.
23 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 .\" File: am-utils/amq/amq.8
44 .Nd automounter query tool
50 .Op Fl x Ar log_options
51 .Op Fl D Ar debug_options
52 .Op Fl P Ar program_number
53 .Op Oo Fl u Oc Ar directory ...
56 This command is obsolete.
57 Users are advised to use
65 provides a simple way of determining the current state of the
70 Three modes of operation are supported by the current protocol.
72 a list of mount points and auto-mounted file systems is output.
74 alternative host can be specified using the
80 names are given, as output by default, then per file system
81 information is displayed.
83 .Bl -tag -width indent
85 Ask the automounter to flush the internal caches and reload all the maps.
87 Specify an alternate host to query.
88 By default the local host is used.
92 cluster, the root server is queried by default, since that is the system on
93 which the automounter is normally run.
96 Print information about the mount maps.
103 as the log file name.
104 For security reasons, this must be the same log file
108 This option is therefore only useful to
111 open file handle on the log file, so that it can be rotated
112 and compressed via daily cron jobs.
114 Ask the automounter to provide a list of mounted file systems, including the
115 number of references to each file system and any error which occurred while
118 Return the process ID of the remote or locally running
121 need to send a signal to the local
123 process, and would rather not have to
124 search through the process table.
125 This option is used in the
130 Suppress error messages produced when attempting synchronous unmounts
136 Ask the automounter to provide system-wide mount statistics.
138 Ask the automounter to unmount the file systems named in
141 information about them.
142 Unmounts are requested, not forced.
144 cause the mounted file system to timeout, which will be picked up by
146 main scheduler thus causing the normal timeout action to be taken.
151 will attempt to unmount the file system synchronously by waiting until
152 the timeout action is taken and returning an error if the unmount
154 Any error messages produced may be suppressed with the
159 Ask the automounter for its version information. This is a subset of the
160 information output by
165 Translate a full pathname as returned by
169 pathname that goes through its mount points.
170 This option requires that
173 .It Fl x Ar log_options
174 Ask the automounter to use the logging options specified in
176 from now on. Note that the "fatal" and "error" options cannot be turned
178 .It Fl D Ar debug_options
179 .BI \-D " debug_options"
180 Ask the automounter to use the debugging options specified in
184 Display short usage message.
185 .It Fl P Ar program_number
186 Contact an alternate running
188 that had registered itself on a different
191 and apply all other operations to that instance of the automounter.
193 useful when you run multiple copies of
195 and need to manage each
199 will use the default program number for
202 For security reasons, the only alternate program numbers
204 can use range from 300019 to 300029, inclusive.
208 using the TCP transport only.
211 will try TCP, and if that failed, will try UDP.
215 using UDP (connectionless) transport only.
218 will try TCP, and if that failed, will try UDP.
221 .Bl -tag -width ".Pa amq.x" -compact
224 protocol description.
230 uses a Sun registered
232 program number (300019 decimal) which may not
237 If the TCP wrappers library is available, and the
245 will verify that the host running
247 is authorized to connect.
250 service name must be used in the
255 For example, to allow only localhost to connect to
258 .Pa /etc/hosts.allow :
263 .Pa /etc/hosts.deny :
278 .%B "Linux NFS and Automounter Administration"
279 .%O ISBN 0-7821-2739-8
284 .Pa http://www.am-utils.org/
286 .%T Amd \- The 4.4 BSD Automounter
295 .An Jan-Simon Pendry Aq jsp@doc.ic.ac.uk ,
296 Department of Computing, Imperial College, London, UK.
298 .An Erez Zadok Aq ezk@cs.sunysb.edu ,
299 Computer Science Department, Stony Brook
300 University, Stony Brook, New York, USA.
302 Other authors and contributors to
306 file distributed with