Scan range of IP with ping command and give specific result
<p>hello i want to create a ping script on python where it will ping 3 ips and give me out only the result if the server is alive i want to give me the packet loss and generate if the ms time is less than 100 . I have no pythong expert skills</p>

<p>Just Change the hostname with List and provide the ip address in the code given in the another StackOverflow thread</p>

<p><a href="http://stackoverflow.com/questions/26468640/python-function-to-test-ping">Check out this</a> </p>

<p>Sample Code</p>

<pre><code>import subprocess
hosts = ['link1','link2','link3']
for host in hosts:
    result = subprocess.check_output("ping google.com")
    print result
    # do some process on result 
</code></pre>

python windows cmd ip ping