RUSERS(1) BSD General Commands Manual RUSERS(1)NAME
rusers -- who is logged in to machines on local network
SYNOPSIS
rusers [-al] [host ...]
DESCRIPTION
The rusers command produces output similar to who(1), but for the list of hosts or all machines on the local network. For each host respond-
ing to the rusers query, the hostname with the names of the users currently logged on is printed on each line. The rusers command will wait
for one minute to catch late responders.
The following options are available:
-a Print all machines responding even if no one is currently logged in.
-l Print a long format listing. This includes the user name, host name, tty that the user is logged in to, the date and time the user
logged in, the amount of time since the user typed on the keyboard, and the remote host they logged in from (if applicable).
DIAGNOSTICS
rusers: RPC: Program not registered The rpc.rusersd(8) daemon has not been started on the remote host.
rusers: RPC: Timed out A communication error occurred. Either the network is excessively congested, or the rpc.rusersd(8) daemon has termi-
nated on the remote host.
rusers: RPC: Port mapper failure - RPC: Timed out The remote host is not running the portmapper (see rpcbind(8)), and cannot accommodate any
RPC-based services. The host may be down.
SEE ALSO rwho(1), users(1), who(1), rpc.rusersd(8), rpcbind(8)HISTORY
The rusers command appeared in Sun-OS.
BUGS
The sorting options are not implemented.
BSD April 23, 1991 BSD
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)
Hi,
I am trying to get the input like option from the user using cin but if the user is not responding for some time I want to use the default value which does not need users interaction can any one help to do this in unix c++?
int main()
{
char sex = 'M' ;
cout << "Are you... (5 Replies)
I'm trying to execute a single shell command that will give me a sorted list of all the users currently logged into the system, displaying the users name as it appears in /etc/passwd.
I've tried
awk -F: '{print $1}' /etc/passwd | xargs finger -s | cut -c11-28 | uniq
This list whoever does... (7 Replies)
Good day folks,
I am trying to get the logged in users with the 'users' command, but I am having difficulty in making the name of users to appear only ONCE even if they are currenly logged in more than one terminal.
I could not use uniq becuase that only work with lines, but the users command... (6 Replies)
Hello All,
I am not a sun expert, but in my network administration job I had to deal with SUN servers. We've to replace a faulty motherboard of SF V880. As per my understanding, host id of machines is programmed in PROM. So will host ID be changed with the replacement of V880 motherboard?... (6 Replies)
Hello. I have an RS/6000 running AIX 4 and I need to be able to see if there are any users that are logged on more than once from the same terminal so I can kick them off to make room for other terminals. 64 connections is the limit. Currently I am doing this:
who | more
and then manually... (11 Replies)
I have wrote a service with c++ which is always run and now I want to get with it the exact time in that the user log in or log out and then run a script. but the problem is that how could i find that the user logged in or logged out with out checking something frequently?
thanks (9 Replies)
Hi,
I have a program running on HP-UX and it must checkwhether a user has already logged-in to another machine. The hostname of the other machine is known when the check has to be made.
Is there a way which this can be accomplished using C++ or Java? If not I could parse the output of a... (6 Replies)
Hi,
I need to find the users logged in the system beside me.
as
uname -u
gives all the user and
uname -um
gives the current user on system.
How can i get result of uname -u minus uname -um .
I want to do it in one line.
tried with grep but not successful. (6 Replies)
I'm having a bit of a trouble trying to figure out how to tell which network protocol users HAVE been logging in with. I know how to find this information for currently logged in users :
maximillian.gardner@syccuxfs01:~> who
joseph.blosser pts/0 2012-01-15 14:07 (198.107.160.185)... (5 Replies)
Hi Guys!
I am sure that this question might appeared previously, but I still don't know how to show a list of logged out users. Please help with this!
Thanks in advance:) (5 Replies)
Hello All,
I was wondering if there is a way to execute a command in my ".bashrc" file based on how I logged into the PC?
I was thinking maybe there is a way to check how the user (*myself) logged in, maybe somehow with the who command along with something else, but I'm not sure... I know I... (7 Replies)
Hi!
I am having a problem when logging in on a solaris 10 server, after typing one or two commands, I lose connectivity, with the following message:
server unexpectedly closed network connection
I have checked the following:
grep `uname -n` /etc/inet/hosts /etc/inet/ipnodes... (8 Replies)
Hello All,
I would like to ask your kind help. Could you please advise how can I identify and printout all users, who has logged to our server from more than 10 different computers/machines by using the command last?
Thank you in advance for your help.
Janmesz (13 Replies)