Python Script to Know Range of IP up or down
This python script is to check , A specific range of ip for example here 10.10.10.3 to 10.10.10.60 in a network up or down.
#!/usr/bin/python import os for ip in range(3,60): hostname="ping -c 1 10.10.10."+str(ip) response= os.system(hostname) #and then check the response... if response == 0: print hostname, 'is up!' else: print hostname, 'is down!'