Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

3 Answers 3

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 nmap.org/download.html –  Zoredache Sep 12 '09 at 21:29
add comment

You can use fping, for example:

/usr/sbin/fping -g 192.168.1.0/24 -a

Will print all IPs answering to ping on the 192.168.1.0/24 network.

share|improve this answer
add comment

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

share|improve this answer
add comment

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.