AMQ(8) | MidnightBSD System Manager's Manual | AMQ(8) |
amq
— automounter
query tool
amq |
[-fimpqsvwHTU ] [-h
hostname] [-l
log_file] [-x
log_options] [-D
debug_options] [-P
program_number] [[-u ]
directory ...] |
The amq
utility provides a simple way of
determining the current state of the
amd(8) program.
Communication is by RPC. Three modes of operation are supported by the
current protocol. By default a list of mount points and auto-mounted file
systems is output. An alternative host can be specified using the
-h
option.
If directory names are given, as output by default, then per file system information is displayed.
-f
-h
hostname-i
-l
log_fileamd
's open file handle on the log file, so that it
can be rotated and compressed via daily cron jobs.-m
-p
-q
-s
-u
amd
's main scheduler thus causing the normal
timeout action to be taken. If the option is repeated, will attempt to
unmount the file system synchronously by waiting until the timeout action
is taken and returning an error if the unmount fails. Any error messages
produced may be suppressed with the option.-v
-v
option.-w
-x
log_options-D
debug_options-H
-P
program_numberamq
will
use the default program number for
amd(8), 300019. For
security reasons, the only alternate program numbers
amd(8) can use range from
300019 to 300029, inclusive.-T
amq
will try TCP, and
if that failed, will try UDP.-U
amq
will
try TCP, and if that failed, will try UDP.The amq
utility uses a Sun registered RPC
program number (300019 decimal) which may not be in the
rpc(5) database.
If the TCP wrappers library is available, and the
use_tcpwrappers global
amd.conf(5) option is
set to “yes
”, then
amd(8) will verify that the
host running amq
is authorized to connect. The
“amd
” service name must be used in the
/etc/hosts.allow and
/etc/hosts.deny files. For example, to allow only
localhost to connect to
amd(8), add this line to
/etc/hosts.allow:
amd: localhost
and this line to /etc/hosts.deny:
amd: ALL
amd.conf(5), hosts_access(5). amd(8),
“am-utils” info(1) entry.
Erez Zadok, Linux NFS and Automounter Administration, Sybex, 2001, ISBN 0-7821-2739-8.
http://www.am-utils.org/
Amd - The 4.4 BSD Automounter.
The amq
utility first appeared in
4.4BSD.
Jan-Simon Pendry ⟨jsp@doc.ic.ac.uk⟩, Department of Computing, Imperial College, London, UK.
Erez Zadok ⟨ezk@cs.sunysb.edu⟩, Computer
Science Department, Stony Brook University, Stony Brook, New York, USA.
Other authors and contributors to am-utils
are listed in the AUTHORS file distributed with
am-utils
.
August 31, 2016 | midnightbsd-3.1 |