1*cd4e86f6Sbentley.\" $OpenBSD: amq.8,v 1.16 2019/06/02 06:53:11 bentley Exp $ 2df930be7Sderaadt.\" 3df930be7Sderaadt.\" Copyright (c) 1990 Jan-Simon Pendry 4df930be7Sderaadt.\" Copyright (c) 1990 Imperial College of Science, Technology & Medicine 5df930be7Sderaadt.\" Copyright (c) 1990, 1991, 1993 6df930be7Sderaadt.\" The Regents of the University of California. All rights reserved. 7df930be7Sderaadt.\" 8df930be7Sderaadt.\" This code is derived from software contributed to Berkeley by 9df930be7Sderaadt.\" Jan-Simon Pendry at Imperial College, London. 10df930be7Sderaadt.\" 11df930be7Sderaadt.\" Redistribution and use in source and binary forms, with or without 12df930be7Sderaadt.\" modification, are permitted provided that the following conditions 13df930be7Sderaadt.\" are met: 14df930be7Sderaadt.\" 1. Redistributions of source code must retain the above copyright 15df930be7Sderaadt.\" notice, this list of conditions and the following disclaimer. 16df930be7Sderaadt.\" 2. Redistributions in binary form must reproduce the above copyright 17df930be7Sderaadt.\" notice, this list of conditions and the following disclaimer in the 18df930be7Sderaadt.\" documentation and/or other materials provided with the distribution. 1929295d1cSmillert.\" 3. Neither the name of the University nor the names of its contributors 20df930be7Sderaadt.\" may be used to endorse or promote products derived from this software 21df930be7Sderaadt.\" without specific prior written permission. 22df930be7Sderaadt.\" 23df930be7Sderaadt.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 24df930be7Sderaadt.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25df930be7Sderaadt.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26df930be7Sderaadt.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 27df930be7Sderaadt.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28df930be7Sderaadt.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29df930be7Sderaadt.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30df930be7Sderaadt.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31df930be7Sderaadt.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32df930be7Sderaadt.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33df930be7Sderaadt.\" SUCH DAMAGE. 34df930be7Sderaadt.\" 35df930be7Sderaadt.\" from: @(#)amq.8 8.3 (Berkeley) 4/18/94 36df930be7Sderaadt.\" 37*cd4e86f6Sbentley.Dd $Mdocdate: June 2 2019 $ 38df930be7Sderaadt.Dt AMQ 8 39df930be7Sderaadt.Os 40df930be7Sderaadt.Sh NAME 41df930be7Sderaadt.Nm amq 42df930be7Sderaadt.Nd automounter query tool 43df930be7Sderaadt.Sh SYNOPSIS 44df930be7Sderaadt.Nm amq 4597452568Sjmc.Op Fl fmsuv 46df930be7Sderaadt.Op Fl h Ar hostname 47f431a64bSmillert.\".Op Fl M Ar mountmap_entry 4897452568Sjmc.Op Ar directory ... 49df930be7Sderaadt.Sh DESCRIPTION 506f10db5aSaaron.Nm amq 51df930be7Sderaadtprovides a simple way of determining the current state of the 52df930be7Sderaadt.Xr amd 8 53df930be7Sderaadtprogram. 54c27dbf23SschwarzeCommunication is by RPC. 55df930be7SderaadtThree modes of operation are supported by the current protocol. 56df930be7SderaadtBy default a list of mount points and auto-mounted filesystems 57df930be7Sderaadtis output. 58df930be7SderaadtAn alternative host can be specified using the 59df930be7Sderaadt.Fl h 60df930be7Sderaadtoption. 61df930be7Sderaadt.Pp 62df930be7SderaadtIf directory names are given, as output by default, 63df930be7Sderaadtthen per-filesystem information is displayed. 6438a123d1Saaron.Pp 6538a123d1SaaronThe options are as follows: 66df930be7Sderaadt.Bl -tag -width Ds 67df930be7Sderaadt.It Fl f 68df930be7SderaadtRequest automounter to flush the internal caches. 69df930be7Sderaadt.It Fl h Ar hostname 70df930be7SderaadtQuery alternate host 71df930be7Sderaadt.Ar hostname . 72cdbdb68aSaaronBy default the local host is used. 73c27dbf23SschwarzeIn an HP-UX cluster, the root server is queried by default, since 74df930be7Sderaadtthat is the system on which the automounter is normally run. 75df930be7Sderaadt.It Fl m 76df930be7SderaadtRequest the automounter to provide a list of mounted filesystems, 77df930be7Sderaadtincluding the number of references to each filesystem and any error 78df930be7Sderaadtwhich occurred while mounting. 79df930be7Sderaadt.It Fl s 80df930be7SderaadtRequest the automounter to provide system-wide mount statistics. 81df930be7Sderaadt.It Fl u 82df930be7SderaadtRequest the automounter to unmount the named filesystems 83cdbdb68aSaaroninstead of providing information about them. 84cdbdb68aSaaronUnmounts are requested, not forced. 85cdbdb68aSaaronThey merely cause the mounted filesystem to timeout, 86df930be7Sderaadtwhich will be picked up by 87*cd4e86f6Sbentley.Xr amd 8 Ns 's 88df930be7Sderaadtmain scheduler thus causing the normal timeout action to be taken. 89df930be7Sderaadt.It Fl v 90cdbdb68aSaaronRequest the automounter to provide version information. 91cdbdb68aSaaronThis is a subset of the information provided by 92*cd4e86f6Sbentley.Xr amd 8 Ns 's Fl v 93df930be7Sderaadtoption. 94f431a64bSmillert.\".It Fl M 95f431a64bSmillert.\"Request automounter to add the given map entry to the root map and then 96f431a64bSmillert.\"trigger a mount request for it. 97df930be7Sderaadt.El 98df930be7Sderaadt.Sh FILES 99df930be7Sderaadt.Bl -tag -width amq.xxxxx -compact 100df930be7Sderaadt.It Pa amq.x 101c27dbf23SschwarzeRPC protocol description 102df930be7Sderaadt.El 103df930be7Sderaadt.Sh SEE ALSO 104df930be7Sderaadt.Xr amd 8 105b5667098Smpech.Sh AUTHORS 10644e68d47Sschwarze.An Jan-Simon Pendry Aq Mt jsp@doc.ic.ac.uk , 1079d0b46bcSjmcDepartment of Computing, Imperial College, London, UK. 108df930be7Sderaadt.\" .Sh HISTORY 1096f10db5aSaaron.\" .Nm amq 110df930be7Sderaadt.\" .At 11138a123d1Saaron.Sh CAVEATS 11238a123d1Saaron.Nm amq 113c27dbf23Sschwarzeuses a Sun registered RPC program number (300019 decimal) which may not 11438a123d1Saaronbe in the 11538a123d1Saaron.Pa /etc/rpc 11638a123d1Saarondatabase. 117