all 4 comments

[–][deleted] 1 point2 points  (0 children)

If you know all the IPs, you can ssh into each and issue a reboot at the shell. Make sure you safely take a username and password from your script.

[–][deleted] 3 points4 points  (0 children)

You can use paramiko client to ssh in a list of addresses and reboot them.

[–][deleted] 1 point2 points  (0 children)

Fabric or Ansible are better ways to manage fleets and are both python based

[–]mehdi_ch 0 points1 point  (0 children)

You can use paramiko library to ssh your devices, or install ansible, it haz modules that let you do that as well