Firmware (LuxOS)
API Docs
CGminer commands
stats

stats

Description

Shows a variety of statistics from the mining rig. By summarizing a lot of information, this command is generally used by external tools to show an overview of the mining status.

Due to that, this command has a rather odd output when compared with the others, since it must be designed to work seamlessly with as many external tools as possible. It also has different output depending on the miner model.

Command

$ echo '{"command": "stats"}' | nc $MINER_IP 4028 | jq

Quirks and examples

First "block" of information

The first baffling thing about this command output is the act that it has elements with different shapes on the same output. The first element is always a "header" with the same information as the version command, except the API and LUXminer fields. If you are not interested in this information, just skip the first element and carry on.

For the second element onwards, we have different fields depending on the miner model; one for S9 and another for S19 models. The next sections will show both an example and a field breakdown for both S9 and S19.

Examples (S9)

$ echo '{"command": "stats"}' | nc $MINER_IP 4028 | jq
{
  "STATS": [
    {
      "BMMiner": "1.0.0",
      "CompileTime": "Tue Jan  3 17:39:40 UTC 2023",
      "Miner": "uart_trans.1.3",
      "Type": "Antminer S9i"
    },
    {
      "Calls": 0,
      "chain_acn1": 0,
      "chain_acn2": 0,
      "chain_acn3": 0,
      "chain_acn4": 0,
      "chain_acn5": 0,
      "chain_acn6": 63,
      "chain_acn7": 63,
      "chain_acn8": 63,
      "chain_acn9": 0,
      "chain_acn10": 0,
      "chain_acn11": 0,
      "chain_acn12": 0,
      "chain_acn13": 0,
      "chain_acn14": 0,
      "chain_acn15": 0,
      "chain_acn16": 0,
      "chain_acs1": "",
      "chain_acs2": "",
      "chain_acs3": "",
      "chain_acs4": "",
      "chain_acs5": "",
      "chain_acs6": " oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo ooooooo",
      "chain_acs7": " oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo ooooooo",
      "chain_acs8": " oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo oooooooo ooooooo",
      "chain_acs9": "",
      "chain_acs10": "",
      "chain_acs11": "",
      "chain_acs12": "",
      "chain_acs13": "",
      "chain_acs14": "",
      "chain_acs15": "",
      "chain_acs16": "",
      "chain_hw1": 0,
      "chain_hw2": 0,
      "chain_hw3": 0,
      "chain_hw4": 0,
      "chain_hw5": 0,
      "chain_hw6": 0,
      "chain_hw7": 0,
      "chain_hw8": 0,
      "chain_hw9": 0,
      "chain_hw10": 0,
      "chain_hw11": 0,
      "chain_hw12": 0,
      "chain_hw13": 0,
      "chain_hw14": 0,
      "chain_hw15": 0,
      "chain_hw16": 0,
      "chain_offside_6": "0",
      "chain_offside_7": "0",
      "chain_offside_8": "0",
      "chain_opencore_6": "0",
      "chain_opencore_7": "0",
      "chain_opencore_8": "0",
      "chain_rate1": "0",
      "chain_rate2": "0",
      "chain_rate3": "0",
      "chain_rate4": "0",
      "chain_rate5": "0",
      "chain_rate6": "4540.76",
      "chain_rate7": "4535.76",
      "chain_rate8": "4625.14",
      "chain_rate9": "0",
      "chain_rate10": "0",
      "chain_rate11": "0",
      "chain_rate12": "0",
      "chain_rate13": "0",
      "chain_rate14": "0",
      "chain_rate15": "0",
      "chain_rate16": "0",
      "chain_rateideal1": 0.0,
      "chain_rateideal2": 0.0,
      "chain_rateideal3": 0.0,
      "chain_rateideal4": 0.0,
      "chain_rateideal5": 0.0,
      "chain_rateideal6": 4668.3,
      "chain_rateideal7": 4668.3,
      "chain_rateideal8": 4668.3,
      "chain_rateideal9": 0.0,
      "chain_rateideal10": 0.0,
      "chain_rateideal11": 0.0,
      "chain_rateideal12": 0.0,
      "chain_rateideal13": 0.0,
      "chain_rateideal14": 0.0,
      "chain_rateideal15": 0.0,
      "chain_rateideal16": 0.0,
      "chain_xtime6": "{}",
      "chain_xtime7": "{}",
      "chain_xtime8": "{}",
      "Device Hardware%": 0.0,
      "Elapsed": 2330,
      "fan1": 0,
      "fan2": 0,
      "fan3": 0,
      "fan4": 0,
      "fan5": 4200,
      "fan6": 5700,
      "fan7": 0,
      "fan8": 0,
      "fan_num": 2,
      "freq_avg1": 0.0,
      "freq_avg2": 0.0,
      "freq_avg3": 0.0,
      "freq_avg4": 0.0,
      "freq_avg5": 0.0,
      "freq_avg6": 650.0,
      "freq_avg7": 650.0,
      "freq_avg8": 650.0,
      "freq_avg9": 0.0,
      "freq_avg10": 0.0,
      "freq_avg11": 0.0,
      "freq_avg12": 0.0,
      "freq_avg13": 0.0,
      "freq_avg14": 0.0,
      "freq_avg15": 0.0,
      "freq_avg16": 0.0,
      "frequency": "650",
      "GHS 5s": "12204.57",
      "GHS av": 13701.67,
      "ID": "BC50",
      "Max": 0.0,
      "Min": 99999999.0,
      "miner_count": 3,
      "miner_id": "08f32a758192",
      "miner_version": "2024.2.19.131822",
      "no_matching_work": 0,
      "STATS": 0,
      "temp1": 0,
      "temp2": 0,
      "temp2_1": 0,
      "temp2_2": 0,
      "temp2_3": 0,
      "temp2_4": 0,
      "temp2_5": 0,
      "temp2_6": 76,
      "temp2_7": 77,
      "temp2_8": 82,
      "temp2_9": 0,
      "temp2_10": 0,
      "temp2_11": 0,
      "temp2_12": 0,
      "temp2_13": 0,
      "temp2_14": 0,
      "temp2_15": 0,
      "temp2_16": 0,
      "temp3": 0,
      "temp3_1": 0,
      "temp3_2": 0,
      "temp3_3": 0,
      "temp3_4": 0,
      "temp3_5": 0,
      "temp3_6": 0,
      "temp3_7": 0,
      "temp3_8": 0,
      "temp3_9": 0,
      "temp3_10": 0,
      "temp3_11": 0,
      "temp3_12": 0,
      "temp3_13": 0,
      "temp3_14": 0,
      "temp3_15": 0,
      "temp3_16": 0,
      "temp4": 0,
      "temp5": 0,
      "temp6": 61,
      "temp7": 58,
      "temp8": 62,
      "temp9": 0,
      "temp10": 0,
      "temp11": 0,
      "temp12": 0,
      "temp13": 0,
      "temp14": 0,
      "temp15": 0,
      "temp16": 0,
      "temp_max": 62,
      "temp_num": 3,
      "total_acn": 189,
      "total_freqavg": 650.0,
      "total_rate": 13701.66,
      "total_rateideal": 14004.9
      "Wait": 0.0,
    }
  ],
  "STATUS": [
    {
      "Code": 70,
      "Description": "LUXminer 2024.2.19.131822-ef17c0c4",
      "Msg": "LUXminer stats",
      "STATUS": "S",
      "When": 1672770089
    }
  ],
  "id": 1
}
FieldNotes
CallsFixed value (0).
chain_acnXChip count of the Xth hashchain (1-16). First board is chain 6.
chain_acsXChip health of the Xth hashchain (1-16). First board is chain 6.
chain_hwXHardware error count of the Xth hashchain (1-16). Always zero.
chain_offside_XAlways zero (X = 6-8).
chain_opencore_XAlways zero (X = 6-8).
chain_rateXReal hashrate, in GH/s, of the Xth hashchain (1-16). First board is chain 6.
chain_rateidealXNominal hashrate, in GH/s, of the Xth hashchain (1-16). First board is chain 6.
chain_xtime6Always {}.
chain_xtime7Always {}.
chain_xtime8Always {}.
Device Hardware%Always 0.
ElapsedElapsed time since miner startup, in seconds.
fanXRPM of the Xth fan (1-8). First fan in on number 5.
fan_numNumber of available fans.
freq_avgXAverage chip frequency of the Xth hashchain (1-16). First board is chain 6.
frequencyHighest chip frequency across all boards.
GHS 5sTotal hashrate, in GH/s, of the last 5 seconds.
GHS avAverage hashrate, in GH/s.
IDFixed value BC50.
MaxFixed value 99999999.0.
MinFixed value 0.0.
miner_countNumber of boards.
miner_idSystem-generated miner identifier.
miner_versionSame value as the Miner field on version command.
no_matching_workFixed value 0.
STATSFixed value 0.
tempXLocal temperature of the Xth hashchain (1-16). First board is chain 6.
temp2_XRemote temperature of the Xth hashchain (1-16). First board is chain 6.
temp3_XAlways 0 (X is 1-16).
temp_maxMaximum temperature value.
temp_numNumber of boards with temperature readings.
total_acnTotal number of chips across all boards.
total_freqavgAverage chip frequency across all boards.
total_rateSum of real hashrate across all boards, in GH/s.
total_rateidealSum of nominal hashrate across all boards, in GH/s.
WaitFixed value 0.0.

Examples (S19)

$ echo '{"command": "stats"}' | nc $MINER_IP 4028 | jq
{
  "STATS": [
    {
      "BMMiner": "1.0.0",
      "CompileTime": "Tue Jan  3 17:39:40 UTC 2023",
      "Miner": "uart_trans.1.3",
      "Type": "Antminer S9i"
    },
    {
      "STATS": 0,
      "ID": "BTM_SOC0",
      "Elapsed": 889,
      "Calls": 0,
      "Wait": 0,
      "Max": 0,
      "Min": 99999999,
      "GHS 5s": 104673.51,
      "GHS av": 105608.83,
      "rate_30m": 105554.15,
      "Mode": 2,
      "miner_count": 3,
      "frequency": 545,
      "fan_num": 4,
      "fan1": 5550,
      "fan2": 5550,
      "fan3": 5580,
      "fan4": 5580,
      "temp_num": 3,
      "temp1": 63,
      "temp2_1": 68,
      "temp2": 65,
      "temp2_2": 70,
      "temp3": 66,
      "temp2_3": 71,
      "temp_pcb1": "55-55-63-63",
      "temp_pcb2": "56-56-65-65",
      "temp_pcb3": "56-56-66-66",
      "temp_pcb4": "0-0-0-0",
      "temp_chip1": "60-60-68-68",
      "temp_chip2": "61-61-70-70",
      "temp_chip3": "61-61-71-71",
      "temp_chip4": "0-0-0-0",
      "temp_pic1": "45-45-53-53",
      "temp_pic2": "46-46-55-55",
      "temp_pic3": "46-46-56-56",
      "temp_pic4": "0-0-0-0",
      "total_rateideal": 104000.0,
      "rate_unit": "GH",
      "total_freqavg": 545,
      "total_acn": 378,
      "total rate": 105608.83,
      "temp_max": 0,
      "no_matching_work": 0,
      "chain_acn1": 126,
      "chain_acn2": 126,
      "chain_acn3": 126,
      "chain_acn4": 0,
      "chain_acs1": " ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo",
      "chain_acs2": " ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo",
      "chain_acs3": " ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo",
      "chain_acs4": "",
      "chain_hw1": 0,
      "chain_hw2": 0,
      "chain_hw3": 0,
      "chain_hw4": 0,
      "chain_rate1": "36679.71",
      "chain_rate2": "33755.01",
      "chain_rate3": "34238.79",
      "chain_rate4": "",
      "freq1": 545,
      "freq2": 545,
      "freq3": 545,
      "freq4": 0,
      "miner_version": "2024.2.19.131822",
      "miner_id": "no miner id now"
    }
  ],
  "STATUS": [
    {
      "Code": 70,
      "Description": "LUXminer 2024.2.19.131822-ef17c0c4",
      "Msg": "LUXminer stats",
      "STATUS": "S",
      "When": 1672770089
    }
  ],
  "id": 1
}
FieldNotes
STATSFixed value 0.
IDFixed value BTM_SOC0.
ElapsedElapsed time since miner startup, in seconds.
CallsFixed value 0.
WaitFixed value 0.
MaxFixed value 0.
MinFixed value 99999999.
GHS 5sTotal hashrate, in GH/s, of the last 5 seconds.
GHS avAverage hashrate, in GH/s.
rate_30mAverage hashrate, in GH/s, of the last 30m.
ModeFixed value 2.
miner_countNumber of boards alive.
frequencyMaximum chip frequency across all boards.
fan_numNumber of fans.
fanXFan RPM of the Xth fan (1-4).
temp_numFixed value 3.
temp1Max temperature value of board 0.
temp2_1Max temperature value of board 0.
temp2Max temperature value of board 1.
temp2_2Max temperature value of board 1.
temp3Max temperature value of board 2.
temp2_3Max temperature value of board 2.
temp_pcb1Top left, top right, bottom right and bottom left temperatures of board 0.
temp_pcb2Top left, top right, bottom right and bottom left temperatures of board 1.
temp_pcb3Top left, top right, bottom right and bottom left temperatures of board 2.
temp_pcb4Top left, top right, bottom right and bottom left temperatures of board 3.
temp_chip1Top left, top right, bottom right and bottom left temperatures of board 0.
temp_chip2Top left, top right, bottom right and bottom left temperatures of board 1.
temp_chip3Top left, top right, bottom right and bottom left temperatures of board 2.
temp_chip4Top left, top right, bottom right and bottom left temperatures of board 3.
temp_pic1Top left, top right, bottom right and bottom left temperatures of board 0.
temp_pic2Top left, top right, bottom right and bottom left temperatures of board 1.
temp_pic3Top left, top right, bottom right and bottom left temperatures of board 2.
temp_pic4Top left, top right, bottom right and bottom left temperatures of board 3.
total_rateidealSum of nominal hashrate across all boards, in GH/s.
rate_unitFixed value GH.
total_freqavgAverage chip frequency across all boards.
total_acnTotal number of chips across all boards.
total_rateSum of real hashrate across all boards, in GH/s.
temp_maxMaximum temperature value.
no_matching_workFixed value 0.
chain_acnXChip count of the Xth hashchain (1-4). First board is chain 1.
chain_acsXChip health of the Xth hashchain (1-4). First board is chain 1.
chain_hwXHardware error count of the Xth hashchain (1-4). Always zero.
chain_rateXReal hashrate, in GH/s, of the Xth hashchain (1-4). First board is chain 1.
freqXAverage chip frequency of the Xth hashchain (1-4). First board is chain 1.
miner_idSystem-generated miner identifier.
miner_versionSame value as the Miner field on version command.