Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to get the hostname and user info who is currently loggedin on the network.

It can be a shell script or a command.

I have tried the following, but it only states the connected ipaddress.

for ip in $(perl -e '$,="\n"; print 1 .. 254;') ; do ping -t 1 -c 1 192.168.0.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.0.$ip UP" || : ; done
share|improve this question

[root@localhost ~]# rwho

If above command not installed then install by using

[root@localhost ~]# yum install rwho

The rwho command produces output similar to who, but for all machines on the local network.

for more info

[root@localhost ~]# man rwho

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .