RECENT POSTS BELOW

Visit :Mobile Daddy

Jul 17, 2011

How To Show All Live Hosts in Network ?

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”

Enhanced by Zemanta

0 Responses to “How To Show All Live Hosts in Network ?”

Post a Comment

Next previous home

Join The TechMyriad Community

All Rights Reserved @2011TechMyriad - Communnity of Technology
----
Back to TOP