rwho(1) rwho(1)
NAME
rwho - display active users in the network
SYNOPSIS
rwho[ -a]
DESCRIPTION
rwho allows you to obtain information about the users that are logged
in on the hosts in the local network.
The output contains the following information for each user:
- the login name under which he/she logged in
- the name of the host at which the user is working
- the name of the terminal
- the date and time at which the user logged in
- the time elapsed since the user's last input.
An example of the use of this command is if you want to send a message
to other users in the network and need to know whether the users are
active.
The rwho command can only supply information about users logged in at
hosts for which there is a host status file in the directory
/var/spool/rwho.
Remote hosts can supply a status report only if the in.rwhod daemon is
active on the remote host. Similarly, the local host can only receive
status reports if the in.rwhod daemon is also active on it. rwho does
not work through gateways.
OPTIONS
No option specified
All active login names are displayed.
-a Must be specified if you want the display to include the login
names of users who are logged in but who have not entered any
input at their terminals for over an hour.
Page 1 Reliant UNIX 5.44 Printed 11/98
rwho(1) rwho(1)
Functionality
The information that is output by the rwho command is compiled from
the status lines stored in the host status files in /usr/spool/rwho.
The status lines are compiled from packets broadcast by each host once
a minute.
Hosts from which no status report has been received for five minutes
are reported as being down.
If a user has not entered any input for a minute or more, the time
elapsed since the user's last input is also displayed in the status
line.
In large networks, the activities of the in.rwhod daemon could result
in an excessive load on the system, since a status report is received
from each host once a minute, and these reports must be saved to disk.
In such cases, it is advisable to terminate the daemon with the kill
command and reset the RWHOD variable in the file /etc/inet/rc.inet.
This is because in.rwhod is only started is RWHOD is set.
EXAMPLES
You would like to know which users are active at the hosts in the net-
work.
$ rwho
admin seattle:tty00 Oct 28 10:47
admin nantucket:tty00 Oct 28 10:33 :14
and boston:tty04 Oct 28 08:11
anne dayton:ttyp2 Oct 28 10:54 :02
anne newport:console Oct 28 08:48 :29
barbara newport:tty03 Oct 28 09:08 :18
bob detroit:console Oct 28 07:54
chris chicago:ttypa Oct 27 10:50
chris chicago:ttypc Oct 27 10:51
chris madison:ttyp0 Oct 28 16:06 :43
daemon malibu:ttyp0 Oct 28 08:47 :29
guest miami:console Oct 26 23:46 :03
julia malibu:tty04 Oct 28 11:18 :30
root anaheim:ttyh5 Oct 28 09:02 :02
root carmel:tty00 Oct 28 10:37
steve portland:ttyp0 Oct 28 09:04
The first field contains the login name.
The second field contains the name of the host followed by a colon and
the name of the terminal.
Page 2 Reliant UNIX 5.44 Printed 11/98
rwho(1) rwho(1)
The third field contains the date and time at which the user logged
in.
The fourth field indicates the time elapsed since the last input was
made at the terminal by the user. This value is expressed in minutes.
FILES
/var/spool/rwho/whod.*
Host status files. These contain the data examined by rwho.
SEE ALSO
finger(1), ruptime(1), rusers(1), rwhod(1M).
Page 3 Reliant UNIX 5.44 Printed 11/98