Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unit1_status=check_output("ping -c 1 " + unit1.ip, shell=True, universal_newlines=True)
- if "0%" in unit1_status:
- unit1networked=1
- elif "0%" not in unit1_status:
- unit1networked=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement