AMQ(8)
π AMQ(8) β the automounter query tool, bestie edition π
okay so real talk: this is amq, from the System Manager's Manual, section 8 (that's the "admin commands" section, iykyk). If amd is the automounter doing all the work, amq is the little bestie you text when you wanna know what it's doing. π
β¨ NAME β¨
amq β automounter query tool π
πΈ SYNOPSIS πΈ
amq [ -fimpqsvwHTU ] [ -h hostname ] [ -l log_file ] [ -x log_options ]
[ -D debug_options ] [ -P program_number ] [[ -u ] directory ... ]
π¦ DESCRIPTION π¦
Amq is your lil' shortcut for finding out the current state of the amd program. No cap. The gossip travels by RPC (remote procedure call, the O.G. way to ask another process a question β¨).
The current protocol supports three modes of operation. By default you get a list of mount points and auto-mounted filesystems β like a little receipts dump of what's mounted π. And if you wanna interrogate a different machine, just point at it with the -h option.
And if you hand it directory names, like the default output gives you, then it flips to showing per-filesystem information for each one. Cute, right? π«Ά
π OPTIONS π
-fβ Ask the automounter to flush the internal caches and reload all the maps. It's giving "clear your cache, babe" π§Ήβ¨-hhostname β Specify an alternate host to query. By default it just asks the local host. But heads up: in an HP-UX cluster, the root server gets queried by default, because that's the system where the automounter is normally running. Lowkey important π-iβ Print information about the mount maps. πΊοΈ-llog_file β Tellamdto use log_file as the log file name. For security reasons, this must be the same log file whichamdused when started. So this option is really only good for refreshingamd's open file handle on the log file β that way it can be rotated and compressed via daily cron jobs. Rotation slay π-mβ Ask the automounter to hand over a list of mounted filesystems, including the number of references to each filesystem and any error which occurred while mounting. Receipts AND error receipts π-pβ Return the process ID of the remote or locally runningamd. Super useful when you need to send a signal to the localamdprocess and would rather not dig through the whole process table like it's a group chat you got added to π. This option is used in thectl-amdscript.-qβ Suppress error messages produced when attempting synchronous unmounts with the-uoption. Shhh, we're not doing that rn π€«-sβ Ask the automounter to provide system-wide mount statistics. Numbers! π-uβ Ask the automounter to unmount the filesystems named in directory instead of providing information about them. And no, these unmounts are requested, not forced β they merely cause the mounted filesystem to timeout, whichamd's main scheduler will pick up, thus causing the normal timeout action to be taken. If you repeat the-uoption,amqwill 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-qoption. Chill unmount, no violence ποΈ-vβ Ask the automounter for its version information. This is a subset of the information output byamd's-voption. Who are you,amd? πͺͺ-wβ Translate a full pathname as returned bygetcwd(3)into a short Amd pathname that goes through its mount points. β οΈ This option requires that Amd is running. (Obvi, but like, stated.)-xlog_options β Ask the automounter to use the logging options specified in log_options from now on. Note that the"fatal"and"error"options cannot be turned off. Those two stay on, periodt. π-Ddebug_options β Ask the automounter to use the debugging options specified in debug_options from now on. π-Hβ Display short usage message. Help, but make it brief β¨-Pprogram_number β Contact an alternate runningamdthat had registered itself on a different RPC program_number, and apply all other operations to that instance of the automounter. This is useful when you run multiple copies ofamdand need to manage each one separately. If not specified,amqwill use the default program number foramd,300019. For security reasons, the only alternate program numbersamdcan use range from300019to300029, inclusive. Multiple amds, multiple besties, one very specific number range π―-Tβ Contactamdusing the TCP transport only. Normallyamqwill try TCP, and if that failed, will try UDP. TCP girlies stand up π‘-Uβ Contactamdusing UDP (connectionless) transport only. Normallyamqwill try TCP, and if that failed, will try UDP. Connectionless and unbothered π¦
π 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. So don't come for it if it's not listed there, it's just like that π
If the TCP wrappers library is available, and the use_tcpwrappers global amd.conf option is set to `yes', then amd will verify that the host running amq is authorized to connect. The amd service name must used in the /etc/hosts.allow and /etc/hosts.deny files. For example, to allow only localhost to connect to amd, add this line to /etc/hosts.allow:
amd: localhost
and this line to /etc/hosts.deny:
amd: ALL
π Gatekeeping your automounter is valid actually. amd: ALL in the deny file is the "you're not on the list, sweetie" energy we respect.
π SEE ALSO π
amd(8),amd.conf(5),hosts_access(5).`am-utils'info(1)entry.- Linux NFS and Automounter Administration by Erez Zadok, ISBN
0-7821-2739-8, (Sybex, 2001). http://www.am-utils.org- Amd - The 4.4 BSD Automounter
π AUTHORS π
- 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
AUTHORSfile distributed with am-utils.
and that's the whole thing, bestie!! π«Ά This lil' page was living in the AMQ(8) slot of the System Manager's Manual, dated 15 September 2011 β shoutout to the am-utils era for this one π go query something, you got this β¨π
π¦ where this page comes from
- fedora 43: am-utils 5:6.2.0-61.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: am-utils 5:6.2.0-61.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: am-utils 5:6.2.0-63.fc44 Β· LicenseRef-Callaway-BSD
- fedora 44: am-utils 5:6.2.0-63.fc44 Β· LicenseRef-Callaway-BSD
- Copyright (c) 1997-2014 Erez Zadok
- Copyright (c) 1990 Jan-Simon Pendry
- Copyright (c) 1990 Imperial College of Science, Technology & Medicine
- Copyright (c) 1990 The Regents of the University of California
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms