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.

Possible Duplicate:
Batch file to MASS ping group of computers on network by name, check reply, and resolve hostname

I am trying to ping many IP's at once and to date it's been done manually. I would like to write a batch script that reads from a list of IP's and then pings each connection, then reports if the ping test failed.

This is the code i've had so far:

@echo off

for /f "tokens=*" %%I in ("C:\batch\IPlist.txt") do call 
:pinger %%I
goto :eof
:pinger
echo %TIME% >> "C:\batch\pingLOG.txt"
ping %1 >> "C:\batch\pingLOG.txt"
::DONE

I do this but even using pauses it returns no pingLOG.txt.

any ideas?

Thanks, Dylan

share|improve this question
2  
Have you tried searching on Serverfault for similar questions? This would appear to do what you want: serverfault.com/questions/85372/… –  Jeff Miles Aug 19 '11 at 14:44
add comment

marked as duplicate by Chopper3 Aug 19 '11 at 15:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

Is this a coding questions or a server management question?

If it is the latter, then you might just want to use FREEping by Tools4ever. This is a free solution to your problem, as you can add hosts to ping and it will popup to tell you when the ping fails to reach its destination. You can easily set a time between ping, the packet size as well as other useful features.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.