Firmware (LuxOS)
API Docs
LUXMiner commands
reboot

reboot

Description

Reboots or shutdown a board. The command returns immediately, and the board goes offline.

What happens next depends on the value of the optional parameter, delay_secs:

  • If is not provided, the board will be started again after five seconds (five seconds is when the board starts the initialization, meaning that it might take a few seconds more to actually start hashing).
  • If the value is provided, and it is positive, the board reboot, starting again after the specified number of seconds.
  • If the value is provided, and it is zero or negative, the board will remain offline.

The output will return the affected board and whether the shutdown is permanent or not.

Note: This command will always fails if the curtailment mode is sleep. See the curtail command for details.

Command

$ echo '{"command": "reboot", "parameter":"3BCCmZ6b,1"}' | nc $MINER_IP 4028 | jq

Examples

$ echo '{"command": "reboot", "parameter":"3BCCmZ6b,1"}' | nc $MINER_IP 4028 | jq
{
  "REBOOT": [
    {
      "Board": 1,
      "IsShutdown": false,
    }
  ],
  "STATUS": [
    {
      "Code": 305,
      "Description": "LUXminer 0.1.0-e7a2d8acd0",
      "Msg": "Reboot Scheduled",
      "STATUS": "S",
      "When": 1668111832
    }
  ],
  "id": 1
}

Parameters

ParameterNotes
session_idA valid session ID. See Session Management for details.
board_idBoard ID, starting from zero.
delay_secsOptional. Delay, in seconds, to start the board again. If zero or negative, the board remains offline.

Field details

FieldNotes
BoardBoard ID, starting from zero.
IsShutdownIf true, the board will not come back online.