Jul 17, 2011
How To Show All Live Hosts in Network ?
Do you like this story?
Network administrator may need a command that will display all the live hosts in their subnet or network. Here is a command for the purpose:
For i in {1..10}; do ping –c1 192.168.0.$i; done I grep “tt1”
This will print all reply summaries from live hosts. In this command, I used shell programming to ping all hosts in my subnet 192.168.0.0/24. We can also use another application called fping. Install fping by executing the following command:
Sudo apt-get install fping
To query the network for live hosts in the subnet 192.168.1.0/24 give the following command:
Fping –g 192.168.1.0/24 I grep “alive”
…………..or use:
Fping –g 192.168.1.0 192.168.1.255 I grep “alive”
Labels:
COMPUTER TIPS,
IP address,
Linux,
Operating system,
Subnetwork
This post was written by: Rahul Bhatia
Rahul Bhatia is a professional blogger, web designer and front end web developer. You can Follow him on Twitter and can connect him on Facebook
Subscribe to:
Post Comments (Atom)
0 Responses to “How To Show All Live Hosts in Network ?”
Post a Comment