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
}
Field | Notes |
---|---|
Calls | Fixed value (0 ). |
chain_acnX | Chip count of the Xth hashchain (1-16). First board is chain 6. |
chain_acsX | Chip health of the Xth hashchain (1-16). First board is chain 6. |
chain_hwX | Hardware error count of the Xth hashchain (1-16). Always zero. |
chain_offside_X | Always zero (X = 6-8). |
chain_opencore_X | Always zero (X = 6-8). |
chain_rateX | Real hashrate, in GH/s, of the Xth hashchain (1-16). First board is chain 6. |
chain_rateidealX | Nominal hashrate, in GH/s, of the Xth hashchain (1-16). First board is chain 6. |
chain_xtime6 | Always {} . |
chain_xtime7 | Always {} . |
chain_xtime8 | Always {} . |
Device Hardware% | Always 0 . |
Elapsed | Elapsed time since miner startup, in seconds. |
fanX | RPM of the Xth fan (1-8). First fan in on number 5. |
fan_num | Number of available fans. |
freq_avgX | Average chip frequency of the Xth hashchain (1-16). First board is chain 6. |
frequency | Highest chip frequency across all boards. |
GHS 5s | Total hashrate, in GH/s, of the last 5 seconds. |
GHS av | Average hashrate, in GH/s. |
ID | Fixed value BC50 . |
Max | Fixed value 99999999.0 . |
Min | Fixed value 0.0 . |
miner_count | Number of boards. |
miner_id | System-generated miner identifier. |
miner_version | Same value as the Miner field on version command. |
no_matching_work | Fixed value 0 . |
STATS | Fixed value 0 . |
tempX | Local temperature of the Xth hashchain (1-16). First board is chain 6. |
temp2_X | Remote temperature of the Xth hashchain (1-16). First board is chain 6. |
temp3_X | Always 0 (X is 1-16). |
temp_max | Maximum temperature value. |
temp_num | Number of boards with temperature readings. |
total_acn | Total number of chips across all boards. |
total_freqavg | Average chip frequency across all boards. |
total_rate | Sum of real hashrate across all boards, in GH/s. |
total_rateideal | Sum of nominal hashrate across all boards, in GH/s. |
Wait | Fixed 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
}
Field | Notes |
---|---|
STATS | Fixed value 0 . |
ID | Fixed value BTM_SOC0 . |
Elapsed | Elapsed time since miner startup, in seconds. |
Calls | Fixed value 0 . |
Wait | Fixed value 0 . |
Max | Fixed value 0 . |
Min | Fixed value 99999999 . |
GHS 5s | Total hashrate, in GH/s, of the last 5 seconds. |
GHS av | Average hashrate, in GH/s. |
rate_30m | Average hashrate, in GH/s, of the last 30m. |
Mode | Fixed value 2 . |
miner_count | Number of boards alive. |
frequency | Maximum chip frequency across all boards. |
fan_num | Number of fans. |
fanX | Fan RPM of the Xth fan (1-4). |
temp_num | Fixed value 3 . |
temp1 | Max temperature value of board 0. |
temp2_1 | Max temperature value of board 0. |
temp2 | Max temperature value of board 1. |
temp2_2 | Max temperature value of board 1. |
temp3 | Max temperature value of board 2. |
temp2_3 | Max temperature value of board 2. |
temp_pcb1 | Top left, top right, bottom right and bottom left temperatures of board 0. |
temp_pcb2 | Top left, top right, bottom right and bottom left temperatures of board 1. |
temp_pcb3 | Top left, top right, bottom right and bottom left temperatures of board 2. |
temp_pcb4 | Top left, top right, bottom right and bottom left temperatures of board 3. |
temp_chip1 | Top left, top right, bottom right and bottom left temperatures of board 0. |
temp_chip2 | Top left, top right, bottom right and bottom left temperatures of board 1. |
temp_chip3 | Top left, top right, bottom right and bottom left temperatures of board 2. |
temp_chip4 | Top left, top right, bottom right and bottom left temperatures of board 3. |
temp_pic1 | Top left, top right, bottom right and bottom left temperatures of board 0. |
temp_pic2 | Top left, top right, bottom right and bottom left temperatures of board 1. |
temp_pic3 | Top left, top right, bottom right and bottom left temperatures of board 2. |
temp_pic4 | Top left, top right, bottom right and bottom left temperatures of board 3. |
total_rateideal | Sum of nominal hashrate across all boards, in GH/s. |
rate_unit | Fixed value GH . |
total_freqavg | Average chip frequency across all boards. |
total_acn | Total number of chips across all boards. |
total_rate | Sum of real hashrate across all boards, in GH/s. |
temp_max | Maximum temperature value. |
no_matching_work | Fixed value 0 . |
chain_acnX | Chip count of the Xth hashchain (1-4). First board is chain 1. |
chain_acsX | Chip health of the Xth hashchain (1-4). First board is chain 1. |
chain_hwX | Hardware error count of the Xth hashchain (1-4). Always zero. |
chain_rateX | Real hashrate, in GH/s, of the Xth hashchain (1-4). First board is chain 1. |
freqX | Average chip frequency of the Xth hashchain (1-4). First board is chain 1. |
miner_id | System-generated miner identifier. |
miner_version | Same value as the Miner field on version command. |