Skip to content
The Chat Archive
Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written) OpenAssistant Conversations (oasst2)

I want to do reboot testing on one computer (lets call it A) by turning power off and on…

In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
  1. User

    I want to do reboot testing on one computer (lets call it A) by turning power off and on via a network controlled power outlet by a computer B. I want the computer A to report to a computer B on each boot so that it can keep track of when it succeeded. What is the simplest python setup that can do this?

  2. Assistant

    You want computer B to control the power of computer A, is that correct?

    I interpret the term "simplest" as "installing minimal 3rd party packages", is that correct? If it is, here is the solution:

    First you need to know the operating system of computer A. You need to understand the command for turning off computer, for example, on *nix systems it is poweroff or shutdown. Knowing that you can set up a server using flask and create some endpoints for turning computer off.

    Second, in order to boot the computer A when it is off, you need to know some NetBIOS. Google it if you don't know. Some hardware computer watchdogs might also do the job. Search for it for details.

    Third, to get a report on booting, you can set up a heartbeat packet sender when computer A is alive as a service, so if computer B receives this packet constantly, it knows computer A is on.

    Alternatively you can search on Github for remote power control projects written in Python. Remember your objectives are to turning computer on and off, and you may not meet all objectives in a single project. You may look for various projects to do different parts of the job.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.