[BACK]Return to rusers.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / rusers

Annotation of src/usr.bin/rusers/rusers.1, Revision 1.15

1.15    ! tedu        1: .\"    $OpenBSD: rusers.1,v 1.14 2007/05/31 19:20:15 jmc Exp $
1.6       aaron       2: .\"
1.1       deraadt     3: .\" Copyright (c) 1983, 1990 The Regents of the University of California.
                      4: .\" All rights reserved.
                      5: .\"
                      6: .\" Redistribution and use in source and binary forms, with or without
                      7: .\" modification, are permitted provided that the following conditions
                      8: .\" are met:
                      9: .\" 1. Redistributions of source code must retain the above copyright
                     10: .\"    notice, this list of conditions and the following disclaimer.
                     11: .\" 2. Redistributions in binary form must reproduce the above copyright
                     12: .\"    notice, this list of conditions and the following disclaimer in the
                     13: .\"    documentation and/or other materials provided with the distribution.
1.13      millert    14: .\" 3. Neither the name of the University nor the names of its contributors
1.1       deraadt    15: .\"    may be used to endorse or promote products derived from this software
                     16: .\"    without specific prior written permission.
                     17: .\"
                     18: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     19: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     20: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     21: .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     22: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     23: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     24: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     25: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     26: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     27: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     28: .\" SUCH DAMAGE.
                     29: .\"
                     30: .\"     from: @(#)rusers.1     6.7 (Berkeley) 4/23/91
                     31: .\"
1.15    ! tedu       32: .Dd $Mdocdate: May 31 2007 $
1.1       deraadt    33: .Dt RUSERS 1
1.4       aaron      34: .Os
1.1       deraadt    35: .Sh NAME
                     36: .Nm rusers
                     37: .Nd who is logged in to machines on local network
                     38: .Sh SYNOPSIS
                     39: .Nm rusers
                     40: .Op Fl al
1.11      millert    41: .Op Fl h | Fl i | Fl u
                     42: .Op Ar hosts ...
1.1       deraadt    43: .Sh DESCRIPTION
                     44: The
1.6       aaron      45: .Nm
1.1       deraadt    46: command produces output similar to
1.3       aaron      47: .Xr who 1 ,
1.7       aaron      48: but for the list of hosts or all machines on the local network.
                     49: For each host responding to the rusers query,
1.1       deraadt    50: the hostname with the names of the users currently logged
1.7       aaron      51: on is printed on each line.
                     52: The
1.6       aaron      53: .Nm
1.10      millert    54: command will wait for 30 seconds to catch late responders.
1.1       deraadt    55: .Pp
1.5       aaron      56: The options are as follows:
1.9       aaron      57: .Bl -tag -width Ds
1.1       deraadt    58: .It Fl a
                     59: Print all machines responding even if no one is currently logged in.
1.11      millert    60: .It Fl h
                     61: Sort alphabetically by hostname.
                     62: .It Fl i
                     63: Sort by idle time in ascending order.
1.12      millert    64: Unlike other implementations, when the
                     65: .Fl i
                     66: and
                     67: .Fl l
                     68: flags are mixed the output is sorted by the idle time of each individual user.
                     69: If the
                     70: .Fl l
                     71: flag is not specified, the idle time for a machine is considered to be
                     72: the lowest idle time of a user on that host.
1.1       deraadt    73: .It Fl l
1.7       aaron      74: Print a long format listing.
                     75: This includes the user name, host name,
1.1       deraadt    76: tty that the user is logged in to, the date and time the user
                     77: logged in, the amount of time since the user typed on the keyboard,
                     78: and the remote host they logged in from (if applicable).
1.11      millert    79: .It Fl u
                     80: Sort by number of users logged in.
1.1       deraadt    81: .El
                     82: .Sh DIAGNOSTICS
                     83: .Bl -tag -width indent
                     84: .It rusers: RPC: Program not registered
                     85: The
                     86: .Xr rpc.rusersd 8
                     87: daemon has not been started on the remote host.
                     88: .It rusers: RPC: Timed out
1.6       aaron      89: A communication error occurred.
                     90: Either the network is excessively congested, or the
1.1       deraadt    91: .Xr rpc.rusersd 8
                     92: daemon has terminated on the remote host.
                     93: .It rusers: RPC: Port mapper failure - RPC: Timed out
                     94: The remote host is not running the portmapper (see
1.8       aaron      95: .Xr portmap 8 ) ,
1.6       aaron      96: and cannot accommodate any RPC-based services.
                     97: The host may be down.
1.1       deraadt    98: .El
                     99: .Sh SEE ALSO
                    100: .Xr users 1 ,
                    101: .Xr who 1 ,
                    102: .Xr portmap 8 ,
                    103: .Xr rpc.rusersd 8
                    104: .Sh HISTORY
                    105: The
1.6       aaron     106: .Nm
1.11      millert   107: command appeared in
1.1       deraadt   108: .Tn SunOS .