1AMQ(8) System Manager's Manual AMQ(8)
2
3
4
6 amq - automounter query tool
7
9 amq [ -fimpqsvwHTU ] [ -h hostname ] [ -l log_file ] [ -x log_options ]
10 [ -D debug_options ] [ -P program_number ] [[ -u ] directory ... ]
11
13 Amq provides a simple way of determining the current state of amd pro‐
14 gram. Communication is by RPC. Three modes of operation are supported
15 by the current protocol. By default a list of mount points and auto-
16 mounted filesystems is output. An alternative host can be specified
17 using the -h option.
18
19 If directory names are given, as output by default, then per-filesystem
20 information is displayed.
21
23 -f Ask the automounter to flush the internal caches and reload all
24 the maps.
25
26
27 -h hostname
28 Specify an alternate host to query. By default the local host
29 is used. In an HP-UX cluster, the root server is queried by
30 default, since that is the system on which the automounter is
31 normally run.
32
33
34 -i Print information about the mount maps.
35
36
37 -l log_file
38 Tell amd to use log_file as the log file name. For security
39 reasons, this must be the same log file which amd used when
40 started. This option is therefore only useful to refresh amd's
41 open file handle on the log file, so that it can be rotated and
42 compressed via daily cron jobs.
43
44
45 -m Ask the automounter to provide a list of mounted filesystems,
46 including the number of references to each filesystem and any
47 error which occurred while mounting.
48
49
50 -p Return the process ID of the remote or locally running amd.
51 Useful when you need to send a signal to the local amd process,
52 and would rather not have to search through the process table.
53 This option is used in the ctl-amd script.
54
55
56 -q Suppress error messages produced when attempting synchronous
57 unmounts with the -u option.
58
59
60 -s Ask the automounter to provide system-wide mount statistics.
61
62
63 -u Ask the automounter to unmount the filesystems named in direc‐
64 tory instead of providing information about them. Unmounts are
65 requested, not forced. They merely cause the mounted filesystem
66 to timeout, which will be picked up by amd's main scheduler thus
67 causing the normal timeout action to be taken. If the -u option
68 is repeated, amq will attempt to unmount the file system syn‐
69 chronously by waiting until the timeout action is taken and
70 returning an error if the unmount fails. Any error messages
71 produced may be suppressed with the -q option.
72
73
74 -v Ask the automounter for its version information. This is a sub‐
75 set of the information output by amd's -v option.
76
77
78 -w Translate a full pathname as returned by getcwd(3) into a short
79 Amd pathname that goes through its mount points. This option
80 requires that Amd is running.
81
82
83 -x log_options
84 Ask the automounter to use the logging options specified in
85 log_options from now on. Note that the "fatal" and "error"
86 options cannot be turned off.
87
88
89 -D debug_options
90 Ask the automounter to use the debugging options specified in
91 debug_options from now on.
92
93
94 -H Display short usage message.
95
96
97 -P program_number
98 Contact an alternate running amd that had registered itself on a
99 different RPC program_number and apply all other operations to
100 that instance of the automounter. This is useful when you run
101 multiple copies of amd, and need to manage each one separately.
102 If not specified, amq will use the default program number for
103 amd, 300019. For security reasons, the only alternate program
104 numbers amd can use range from 300019 to 300029, inclusive.
105
106
107 -T Contact amd using the TCP transport only. Normally amq will try
108 TCP, and if that failed, will try UDP.
109
110
111 -U Contact amd using UDP (connectionless) transport only. Normally
112 amq will try TCP, and if that failed, will try UDP.
113
114
116 amq.x RPC protocol description.
117
118
120 Amq uses a Sun registered RPC program number (300019 decimal) which may
121 not be in the /etc/rpc database.
122
123 If the TCP wrappers library is available, and the use_tcpwrappers
124 global amd.conf option is set to ``yes'', then amd will verify that the
125 host running amq is authorized to connect. The amd service name must
126 used in the /etc/hosts.allow and /etc/hosts.deny files. For example,
127 to allow only localhost to connect to amd, add this line to
128 /etc/hosts.allow:
129
130 amd: localhost
131
132 and this line to /etc/hosts.deny:
133
134 amd: ALL
135
136
138 amd(8), amd.conf(5), hosts_access(5).
139
140 ``am-utils'' info(1) entry.
141
142 Linux NFS and Automounter Administration by Erez Zadok, ISBN
143 0-7821-2739-8, (Sybex, 2001).
144
145 http://www.am-utils.org
146
147 Amd - The 4.4 BSD Automounter
148
149
151 Jan-Simon Pendry <jsp@doc.ic.ac.uk>, Department of Computing, Imperial
152 College, London, UK.
153
154 Erez Zadok <ezk@cs.sunysb.edu>, Computer Science Department, Stony
155 Brook University, Stony Brook, New York, USA.
156
157 Other authors and contributors to am-utils are listed in the AUTHORS
158 file distributed with am-utils.
159
160
161
162 15 September 2011 AMQ(8)