Server Fault is a question and answer site for system and network administrators. 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 am looking for a simple script (that can be executed in windows platform) to ping all machines, and to write the IP of "On" machines (machines that'll reply) to a text file.

share|improve this question

nmap -sP

Performs a ping scan (host discovery), then print out the available hosts that responded to the scan. No further testing (such as port scanning or OS detection) is performed.

share|improve this answer
Download at – Zoredache Sep 12 '09 at 21:29

You can use fping, for example:

/usr/sbin/fping -g -a

Will print all IPs answering to ping on the network.

share|improve this answer

Try the following program Netscan, I think this will do what you want..

share|improve this answer

Your Answer


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.