1 .\" Copyright (c) 1983, 1991, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 4. Neither the name of the University nor the names of its contributors
13 .\" may be used to endorse or promote products derived from this software
14 .\" without specific prior written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" @(#)rwhod.8 8.2 (Berkeley) 12/11/93
36 .Nd system status server
43 .Sh DEPRECATION NOTICE
45 is deprecated and will be removed from future versions of the
50 is still required, it can be installed from ports or packages
55 utility is the server which maintains the database used by the
60 Its operation is predicated on the ability to
64 messages on a network.
68 utility operates as both a producer and consumer of status information,
71 (listen mode) option is specified, in which case
72 it acts as a consumer only.
73 As a producer of information it periodically
74 queries the state of the system and constructs
75 status messages which are broadcasted or multicasted on a network.
76 As a consumer of information, it listens for other
78 servers' status messages, validating them, then recording
79 them in a collection of files located in the directory
82 The following options are available:
83 .Bl -tag -width indent
85 Enable insecure mode, which causes
87 to ignore the source port on incoming packets.
92 This is useful if you do not wish to keep dial on demand
93 interfaces permanently active.
95 Enable listen mode, which causes
97 to not broadcast any information.
98 This allows you to monitor other machines'
100 information, without broadcasting your own.
104 to use IP multicast (instead of
105 broadcast) on all interfaces that have
106 the IFF_MULTICAST flag set in their "ifnet" structs
107 (excluding the loopback interface).
109 reports are sent with a time-to-live of 1, to prevent
110 forwarding beyond the directly-connected subnet(s).
114 argument is supplied with the
118 will send IP multicast datagrams with a
121 via a SINGLE interface rather
124 must be between 0 and
125 32 (or MAX_MULTICAST_SCOPE).
132 specifies transmission on one interface only.
138 argument, the program accepts multicast
140 reports from all multicast-capable interfaces.
143 argument is given, it accepts multicast reports from only one interface, the
144 one on which reports are sent (which may be controlled via the host's routing
148 option, the program accepts broadcast or
149 unicast reports from all interfaces.
150 Thus, this program will hear the
151 reports of old, non-multicasting
153 but, if multicasting is used,
156 will not hear the reports generated by this program.
159 The server transmits and receives messages at the port indicated
160 in the ``who'' service specification; see
162 The messages sent and received, are of the form:
163 .Bd -literal -offset indent
165 char out_line[8]; /* tty name */
166 char out_name[8]; /* user id */
167 long out_time; /* time on */
176 char wd_hostname[32];
180 struct outmp we_utmp;
182 } wd_we[1024 / sizeof (struct whoent)];
186 All fields are converted to network byte order prior to
188 The load averages are as calculated by the
190 program, and represent load averages over the 5, 10, and 15 minute
191 intervals prior to a server's transmission; they are multiplied by 100
192 for representation in an integer.
194 included is that returned by the
196 system call, with any trailing domain name omitted.
197 The array at the end of the message contains information about
198 the users logged in to the sending machine.
200 includes the contents of the entry from the user accounting database
201 for each non-idle terminal line and a value indicating the
202 time in seconds since a character was last received on the terminal line.
204 Messages received by the
206 server are discarded unless they originated at an
210 option was specified.
211 In addition, if the host's name, as specified
212 in the message, contains any unprintable
215 message is discarded.
216 Valid messages received by
218 are placed in files named
222 These files contain only the most recent message, in the
223 format described above.
225 Status messages are generated approximately once every
232 .Pa /boot/kernel/kernel
233 every 30 minutes to guard against
234 the possibility that this file is not the system
235 image currently operating.
245 Status information should be sent only upon request rather than continuously.
246 People often interpret the server dying
247 or network communication failures
248 as a machine going down.