The batch file to ping all network hosts and determine which ones are turned on and off and store output in a text file

Batch file to ping all network hosts to determinate witch are powered up and store output to a text file

Hello, I need to write a Batch file to ping all network hosts (readed from a hostslist.txt) and write UP/DOWN state to a text file.
Soporte BHUYAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewIT / Software Engineering ConsultantCommented:
This has been answered many many times on the site, please do a search, you will find immediate answers that are proven.  For example:

Search Results


»bp
Shaun VermaakTechnical SpecialistCommented:
I use ifping
http://www.anykeyonline.nl/oldsite/documents/44.html

I also wrote pingable a decade ago which might be useful
http://blog.ittelligence.com/2008/12/17/pingable/
Steve KnightIT ConsultancyCommented:
Agreed loads of them including many programs and cloud based services as well as scripts.  If you do want to do it as batch it can simple as a few lines or increasingly complicated.

A simple one of mine here: http://scripts.dragon-it.co.uk/links/batch-monitor-ping-email and somewhat more complicated one here: http://scripts.dragon-it.co.uk/links/batch-monitor-ping-open-ports

The second one for a batch file is quite complex and monitors hosts and notifies by email if wanted of when a change occurs from "up" to "down" or vice versa.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.