how to check if a host is reachable in pythhon code example
Example: check if host is reachable python
HOST_UP = True if os.system("ping -c 1 " + SOMEHOST) is 0 else False
HOST_UP = True if os.system("ping -c 1 " + SOMEHOST) is 0 else False