amq(8)

amq8

Automounter query tool

Usage

amq [-fmsuv] [-h hostname] [directory ...]

Overview

amq 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 filesystems is output. An alternative host can be specified using the -h option.

If directory names are given, as output by default, then per-filesystem information is displayed.

The options are as follows:

-f

Request automounter to flush the internal caches.

-h hostname

Query alternate host hostname. By default the local host is used. In an HP-UX cluster, the root server is queried by default, since that is the system on which the automounter is normally run.

-m

Request the automounter to provide a list of mounted filesystems, including the number of references to each filesystem and any error which occurred while mounting.

-s

Request the automounter to provide system-wide mount statistics.

-u

Request the automounter to unmount the named filesystems instead of providing information about them. Unmounts are requested, not forced. They merely cause the mounted filesystem to timeout, which will be picked up by amd(8)'s main scheduler thus causing the normal timeout action to be taken.

-v

Request the automounter to provide version information. This is a subset of the information provided by amd(8)'s -v option.

Files

amq.x

RPC protocol description

Caveats

amq uses a Sun registered RPC program number (300019 decimal) which may not be in the /etc/rpc database.

Releases

61 releases since OpenBSD 2.1; the text changed 12 times.

  1. 2.1–2.4
  2. 2.5
  3. 2.6
  4. 2.7–2.8
  5. 2.9
  6. 3.0–3.3
  7. 3.4–4.0
  8. 4.1
  9. 4.2–5.3
  10. 5.4
  11. 5.5–6.1
  12. 6.2–6.5
  13. 6.6–8.0

-M until OpenBSD 2.5.

Authors

Jan-Simon Pendry ⟨[email protected]⟩, Department of Computing, Imperial College, London, UK.

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.