[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 4

rwho Command

Purpose

Shows which users are logged in to hosts on the local network.

Syntax

rwho-a ]

Description

The /usr/bin/rwho command displays the user name, host name, and start date and time of each session for everyone on the local network who is currently logged in to a host running the rwhod daemon. If a workstation is inactive for at least 3 minutes, the rwho command reports the idle time as a number of minutes in the last column. After an hour of inactivity, a user is not included unless the -a flag is specified.

Note: Since this command displays a lot of output, use this command with caution if the local network has a large number of users.

Status information is broadcast once every 3 minutes by each network host running the rwhod daemon. Any activity (such as a user logging on or off) that takes place between broadcasts is not reflected until the next broadcast.

Flags

-a Includes all users. Without this flag, users whose sessions are idle an hour or more are not included in the report.

Example

To get a report of all users currently logged in to hosts on the local network, enter:

rwho

Information similar to the following is displayed:

bob     host2:pts5       Nov 17 06:30 :20
bob     host7:console    Nov 17 06:25 :25
fran    host1:pts0       Nov 17 11:20 :51
fran    host1:pts8       Nov 16 15:33 :42
fran    host4:console    Nov 17 16:32
server  host2:console    Nov 17 06:58 :20
alice   host2:pts6       Nov 17 09:22

Files

/var/spool/rwho/whod.* Indicates data files received from remote rwhod daemons.

Related Information

The ruptime command, rwho command, who command.

The gethostname subroutine.

The services file format.

Network Overview in AIX Version 4.3 System Management Guide: Communications and Networks.


[ Previous | Next | Contents | Glossary | Home | Search ]