1*334bfb30Swiz.\" $NetBSD: rpc.statd.8,v 1.6 2003/04/07 07:05:21 wiz Exp $ 224ce527bSscottr.\" 324ce527bSscottr.\" Copyright (c) 1995 A.R.Gordon, andrew.gordon@net-tel.co.uk 424ce527bSscottr.\" All rights reserved. 524ce527bSscottr.\" 624ce527bSscottr.\" Redistribution and use in source and binary forms, with or without 724ce527bSscottr.\" modification, are permitted provided that the following conditions 824ce527bSscottr.\" are met: 924ce527bSscottr.\" 1. Redistributions of source code must retain the above copyright 1024ce527bSscottr.\" notice, this list of conditions and the following disclaimer. 1124ce527bSscottr.\" 2. Redistributions in binary form must reproduce the above copyright 1224ce527bSscottr.\" notice, this list of conditions and the following disclaimer in the 1324ce527bSscottr.\" documentation and/or other materials provided with the distribution. 1424ce527bSscottr.\" 3. All advertising materials mentioning features or use of this software 1524ce527bSscottr.\" must display the following acknowledgement: 1624ce527bSscottr.\" This product includes software developed by the University of 1724ce527bSscottr.\" California, Berkeley and its contributors. 1824ce527bSscottr.\" 4. Neither the name of the University nor the names of its contributors 1924ce527bSscottr.\" may be used to endorse or promote products derived from this software 2024ce527bSscottr.\" without specific prior written permission. 2124ce527bSscottr.\" 2224ce527bSscottr.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 2324ce527bSscottr.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2424ce527bSscottr.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2524ce527bSscottr.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2624ce527bSscottr.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2724ce527bSscottr.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2824ce527bSscottr.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2924ce527bSscottr.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3024ce527bSscottr.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3124ce527bSscottr.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3224ce527bSscottr.\" SUCH DAMAGE. 3324ce527bSscottr.\" 3424ce527bSscottr.\" 3524ce527bSscottr.Dd September 19, 1995 3624ce527bSscottr.Dt RPC.STATD 8 3724ce527bSscottr.Os 3824ce527bSscottr.Sh NAME 3924ce527bSscottr.Nm rpc.statd 4024ce527bSscottr.Nd host status monitoring daemon 4124ce527bSscottr.Sh SYNOPSIS 4224ce527bSscottr.Nm 4324ce527bSscottr.Op Fl d 4424ce527bSscottr.Sh DESCRIPTION 4524ce527bSscottr.Nm 4624ce527bSscottris a daemon which co-operates with rpc.statd daemons on other hosts to provide 4724ce527bSscottra status monitoring service. The daemon accepts requests from 4824ce527bSscottrprograms running on the local host (typically, 4924ce527bSscottr.Xr rpc.lockd 8 , 5024ce527bSscottrthe NFS file locking daemon) to monitor the status of specified 5124ce527bSscottrhosts. If a monitored host crashes and restarts, the remote daemon will 5224ce527bSscottrnotify the local daemon, which in turn will notify the local program(s) 5324ce527bSscottrwhich requested the monitoring service. Conversely, if this host crashes 5424ce527bSscottrand restarts, when 5524ce527bSscottr.Nm 5624ce527bSscottrrestarts, it will notify all of the hosts which were being monitored 5724ce527bSscottrat the time of the crash. 5824ce527bSscottr.Pp 5924ce527bSscottrOptions and operands available for 6024ce527bSscottr.Nm 6124ce527bSscottr: 6224ce527bSscottr.Bl -tag -width Ds 6324ce527bSscottr.It Fl d 6424ce527bSscottrThe 6524ce527bSscottr.Fl d 6624ce527bSscottroption causes debugging information to be written to syslog, recording 6772963228Sperryall RPC transactions to the daemon. These messages are logged with level 6824ce527bSscottrLOG_DEBUG and facility LOG_DAEMON. Error conditions are logged irrespective 6924ce527bSscottrof this option, using level LOG_ERR. 7024ce527bSscottr.El 7124ce527bSscottr.Pp 7224ce527bSscottrThe 7324ce527bSscottr.Nm 7424ce527bSscottrdaemon must NOT be invoked by 7524ce527bSscottr.Xr inetd 8 7624ce527bSscottrbecause the protocol assumes that the daemon will run from system start time. 7724ce527bSscottrInstead, it should be configured in 7824ce527bSscottr.Xr rc.conf 5 7924ce527bSscottrto run at system startup. 8024ce527bSscottr.Sh FILES 8124ce527bSscottr.Bl -tag -width /usr/include/rpcsvc/sm_inter.x -compact 8224ce527bSscottr.It Pa /var/db/statd.status 8324ce527bSscottrnon-volatile record of currently monitored hosts. 8424ce527bSscottr.It Pa /usr/include/rpcsvc/sm_inter.x 8524ce527bSscottrRPC protocol specification used by local applications to register monitoring requests. 8624ce527bSscottr.El 8724ce527bSscottr.Sh SEE ALSO 8824ce527bSscottr.Xr syslog 3 , 8924ce527bSscottr.Xr rc.conf 5 , 9024ce527bSscottr.Xr rpc.lockd 8 91146392e1Swiz.Sh STANDARDS 92146392e1SwizThe implementation is based on the specification in X/Open CAE Specification 93146392e1SwizC218, "Protocols for X/Open PC Interworking: XNFS, Issue 4", ISBN 1 872630 66 9 94146392e1Swiz.Sh HISTORY 95146392e1SwizA version of 96146392e1Swiz.Nm 97146392e1Swizappeared in 98146392e1Swiz.Tn SunOS 4 . 9924ce527bSscottr.Sh BUGS 10024ce527bSscottrThere is no means for the daemon to tell when a monitored host has 101*334bfb30Swizdisappeared permanently (e.g., catastrophic hardware failure), as opposed 10224ce527bSscottrto transient failure of the host or an intermediate router. At present, 10324ce527bSscottrit will retry notification attempts at frequent intervals for 10 minutes, 10424ce527bSscottrthen hourly, and finally gives up after 24 hours. 10524ce527bSscottr.Pp 10624ce527bSscottrThe protocol requires that symmetric monitor requests are made to both 10724ce527bSscottrthe local and remote daemon in order to establish a monitored relationship. 10824ce527bSscottrThis is convenient for the NFS locking protocol, but probably reduces the 10924ce527bSscottrusefulness of the monitoring system for other applications. 11024ce527bSscottr.Pp 11124ce527bSscottrThe current implementation uses more than 1Kbyte per monitored host in 11224ce527bSscottrthe status file (and also in VM). This may be inefficient for NFS servers 11324ce527bSscottrwith large numbers of clients. 114