Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

[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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.