I know next to nothing about scripting...so let's get that out on the table first. What I want is a script that when executed will ping the IP's of the devices I specify, 10 times each, say "Server 1" IP 10.0.0.1" and output the results to a file on the local computer, say named "NetworkStatus.txt" If there is no reply from any of pings, I want an email to be sent to my email address. I know that this can be done, but I have no idea how. Just for learning value (On my part obviously) I have included what I originally have done w/ a batch file:
ping -n 10 10.0.0.1 >c:\networkstatus\server1.txt
ping -n 10 10.0.0.2 >c:\networkstatus\server2.txt
ping -n 10 10.0.0.3 >c:\networkstatus\server3.txt
copy c:\networkstatus\*.* c:\"documents and settings"\user.ccsdk12\desktop\status
This approach doesn't consolidate the data into one document, and doesn't notify of failed devices....Thank you kindly to all that respond!