1AMQ(8)                      System Manager's Manual                     AMQ(8)
2
3
4

NAME

6       amq - automounter query tool
7

SYNOPSIS

9       amq [ -fmpsvwHTU ] [ -h hostname ] [ -l log_file ] [ -x log_options ] [
10       -D debug_options ] [ -P program_number ] [[ -u ] directory ...  ]
11

DESCRIPTION

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

OPTIONS

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       -l log_file
35              Tell  amd  to  use  log_file as the log file name.  For security
36              reasons, this must be the same log  file  which  amd  used  when
37              started.   This option is therefore only useful to refresh amd's
38              open file handle on the log file, so that it can be rotated  and
39              compressed via daily cron jobs.
40
41
42       -m     Ask  the  automounter  to provide a list of mounted filesystems,
43              including the number of references to each  filesystem  and  any
44              error which occurred while mounting.
45
46
47       -p     Return  the  process  ID  of  the remote or locally running amd.
48              Useful when you need to send a signal to the local amd  process,
49              and  would  rather not have to search through the process table.
50              This option is used in the ctl-amd script.
51
52
53       -s     Ask the automounter to provide system-wide mount statistics.
54
55
56       -u     Ask the automounter to unmount the filesystems named  in  direc‐
57              tory  instead of providing information about them.  Unmounts are
58              requested, not forced.  They merely cause the mounted filesystem
59              to timeout, which will be picked up by amd's main scheduler thus
60              causing the normal timeout action to be taken.
61
62
63       -v     Ask the automounter for its version information.  This is a sub‐
64              set of the information output by amd's -v option.
65
66
67       -w     Translate  a full pathname as returned by getpwd(3) into a short
68              Amd pathname that goes through its mount points.    This  option
69              requires that Amd is running.
70
71
72       -x log_options
73              Ask  the  automounter  to  use  the logging options specified in
74              log_options from now on.
75
76
77       -D log_options
78              Ask the automounter to use the debugging  options  specified  in
79              debug_options from now on.
80
81
82       -H     Display short usage message.
83
84
85       -P program_number
86              Contact an alternate running amd that had registered itself on a
87              different RPC program_number and apply all other  operations  to
88              that  instance  of the automounter.  This is useful when you run
89              multiple copies of amd, and need to manage each one  separately.
90              If  not  specified,  amq will use the default program number for
91              amd, 300019.  For security reasons, the only  alternate  program
92              numbers amd can use range from 300019 to 300029, inclusive.
93
94
95       -T     Contact amd using the TCP transport only.  Normally amq will try
96              TCP, and if that failed, will try UDP.
97
98
99       -U     Contact amd using UDP (connectionless) transport only.  Normally
100              amq will try TCP, and if that failed, will try UDP.
101
102

FILES

104       amq.x               RPC protocol description.
105
106

CAVEATS

108       Amq uses a Sun registered RPC program number (300019 decimal) which may
109       not be in the /etc/rpc database.
110
111       If the TCP wrappers  library  is  available,  and  the  use_tcpwrappers
112       global amd.conf option is set to ``yes'', then amd will verify that the
113       host running amq is authorized to connect.  The amd service  name  must
114       used  in  the /etc/hosts.allow and /etc/hosts.deny files.  For example,
115       to  allow  only  localhost  to  connect  to  amd,  add  this  line   to
116       /etc/hosts.allow:
117
118              amd: localhost
119
120       and this line to /etc/hosts.deny:
121
122              amd: ALL
123
124

SEE ALSO

126       amd(8), ctl-amd(8), amd.conf(5), hosts_access(5).
127
128       ``am-utils'' info(1) entry.
129
130       Linux   NFS   and   Automounter  Administration  by  Erez  Zadok,  ISBN
131       0-7821-2739-8, (Sybex, 2001).
132
133       http://www.am-utils.org
134
135       Amd - The 4.4 BSD Automounter
136
137

AUTHORS

139       Jan-Simon Pendry <jsp@doc.ic.ac.uk>, Department of Computing,  Imperial
140       College, London, UK.
141
142       Erez  Zadok  <ezk@cs.sunysb.edu>,  Computer  Science  Department, Stony
143       Brook University, Stony Brook, New York, USA.
144
145       Other authors and contributors to am-utils are listed  in  the  AUTHORS
146       file distributed with am-utils.
147
148
149
150                                 25 April 1989                          AMQ(8)
Impressum