rusers(1) General Commands Manual rusers(1)NAME
rusers - determine who is logged in on machines on local network
SYNOPSIS
[host ...]
DESCRIPTION
produces output similar to the "quick" option of who(1), but for remote machines. It broadcasts on the local network and prints the
responses it receives. Though the listing is normally in the order that responses are received, the order can be changed by specifying a
command-line option. The broadcast process takes about two minutes.
When host arguments are given, instead of broadcasting, only queries the list of specified hosts.
For each machine, the default is to print a line listing the host name and all users on that host. When the option is given, uses an out-
put format similar to rwho(1). If a user has not typed on the system for a minute or more, the idle time is reported.
A remote host only responds if it is running the rusersd(1M) daemon.
Options
recognizes the following command-line options:
Give a report for a machine even if no users are logged in on it.
Sort alphabetically by host name.
Sort by idle time.
Give a longer listing in the style of
(see who(1)).
Sort by number of users.
RETURN VALUE
returns exit code zero if no errors are encountered; otherwise it returns the number of errors found.
AUTHOR
was developed by Sun Microsystems, Inc.
WARNINGS
Broadcasting does not work through gateways; therefore, does not report information about machines that are reached only through gateways.
FILES SEE ALSO rwho(1), who(1), inetd(1M), rusersd(1M).
rusers(1)
Check Out this Related Man Page
rusers(3RPC) RPC Library Functions rusers(3RPC)NAME
rusers, rnusers - return information about users on remote machines
SYNOPSIS
cc [ flag ... ] file ... -lrpcsvc [ library ... ]
#include <rpc/rpc.h>
#include <rpcsvc/rusers.h>
enum clnt_stat rusers(char *host, struct utmpidlearr *up);
int rnusers(char *host);
PROTOCOL
/usr/include/rpcsvc/rusers.x
DESCRIPTION
These routines require that the rpc.rusersd(1M) daemon be configured and available on the remote system indicated by host. The rusers()
protocol is used to retrieve information about users logged in on the remote system.
rusers() fills the utmpidlearr structure with data about host, and returns 0 if successful. up must point to an allocated utmpidlearr
structure. If rusers() returns successful it will have allocated data structures within the up structure, which should be freed with
xdr_free(3NSL) when you no longer need them:
xdr_free(xdr_utimpidlearr, up);
On error, the returned value can be interpreted as an enum clnt_stat and can be displayed with clnt_perror(3NSL) or clnt_sperrno(3NSL).
See the header <rpcsvc/rusers.h> for a definition of struct utmpidlearr.
rnusers() returns the number of users logged on to host (-1 if it cannot determine that number).
The following XDR routines are available in librpcsvc:
xdr_utmpidlearr
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO rusers(1), rpc.rusersd(1M), rpc_clnt_calls(3NSL), xdr_free(3NSL), attributes(5)SunOS 5.10 30 Dec 1996 rusers(3RPC)
On my network I have three win 2k and 4 unix machines(sun 7). At on time I could print from the unix machines but now all I can print from is the windows machines. The print server is on a window machine. When I boot the unix machine it show's the printer is recognized. when I ping the printer it... (1 Reply)
Hi ppl,
We are using Sun OS and recently, encountered this strange problem.
When issuing the "w" or "who" command, the system produce no listing. See screen shot below.
-----------------------
$ w
2:56pm up 2 day(s), 21:10, 0 users, load average: 1.03, 0.75, 0.69
User tty ... (6 Replies)
RH 7.2
I'm trying to list the users & groups on my machine. I found the lsuser & lsgroup commands but no associated man pages.
I typed: lsuser
I get --> Valid options are: -a
So I typed: lsuser -a
I get --> Valid options are: groups, home
So I typed: lsuser -a groups
I get -->... (2 Replies)
1. You are a network administrator. You have a script that uses rusers to tell you who is logged into your system on the network. You suspect that you are not getting all the client machines to report. Which daemon may not be running on some of the clients?
a. rpc.cmsd
b. in.fingerd
c. rc.sprayd... (1 Reply)
Hello to all,
I'm new to shell programming and I am trying to come up with a way to find out if the output of the rusers command has more then one word since rusers would return the name of the server if no one has accessed it. Im having a hard time trying to use wc in a comparsion so that i... (2 Replies)
oi oi :)
i have just created a network between two machines running fedora. I have configured and shared the printer on the host machine but for some weird reason this isnt showin up on the other computer???
i looked evrywhere on the internet and they all tell me to do it the way i have?! its... (2 Replies)
a script, cheer that prints its parameter as shown in the example below.
eg:
$ cheer U N I X
Give me a U!
U!
Give me a N!
N!
Give me a I!
I!
Give me a X!
X!
#!/bin/sh
for letter
do
echo "Give me a $letter!";echo "$letter!"
done
this is the code i used for the above script (2 Replies)
Hi,
I want to configure 2-gateways in Linux .
Please tell me how I can achieve this. I am accesing 2-internet
connection through these 2-gateways. So I am looking that
if 1-gets down then also other one is working.
Regards
JAGDISH (1 Reply)
Its been some time since I've logged on to a Unix system and I've forgotten the command which I need to use to obtain:
a list of IPs and VIPs for the host server I've logged on to.
What is this command? By the way, what command will yield a display of the IP addresses given a host name? (1 Reply)
Hello everyone,
I am investigating if there is a straight forward way to ask with a single line command a listing of particular files based on a mask and at the same time have a line after the listing is completed that says how many matches were found.
Something of the sort:
ls -ltr Done* ... (2 Replies)
We recently underwent a security audit and have a new requirement to not allow users to stay logged on overnight. In order to place this policy into effect i need a way to check for idle users and log them off. Is there any good way to enforce this policy in Solaris 10 and make it work in such a... (11 Replies)
Being linux administrator my task is to keep the machines up and running .Everyday i get a report of list of machines that are up and running.
it would be nice if i get list of machines that are shutdown in comparison to yesterdays report.
for example.If there are 5 machines in my environment... (5 Replies)
I have the need to Mount one of my volumes (All machines are mac) onto all of the machines in the lab from time to time. At the moment I'm using SSH to tunnel into each machine and then send a command to the remote machine to mount my volume using AFP.
This seems convoluted to me. Is there a... (3 Replies)