Run this script to get a list of all online hosts on a subnetwork.
chmod +x ipsweep.sh
To check: ls -l
./ipsweep.sh [three octets of your ip address]
You can add ' > [filename] ' at the end of above command to store all the ip addresses in the specifies file.