Check multiple devices on your network automatically.
import os
devices = ["192.168.1.1","192.168.1.2"]
for d in devices:
res = os.system(f"ping -c 1 {d}")
print(f"{d} is {'Online' if res==0 else 'Offline'}")
Automation saves time monitoring multiple devices.
Next Lesson →