6. Command Reference of RPCM CLI
alarm-seconds
— the delay time in seconds before the notification (sending a warning);
restart-seconds
— delay time in seconds before rebooting the device;
default
— set all parameters to the default value.
Note. At the time of writing, the following types of devices for mining are supported:
Bitmain S9, Bitmain D3, Bitmain L3 +
Whatsminer M3X
Claymore
DragonMint T1
Help ask:
set automation device name DEVICE-2 test hashRate ?
The return is:
set automation device-name DEVICE-2 test hashrate
Parameters:
--enabled yes|no - enables Hashrate test
--api-ip-address - api IP Address of miner device
--api-port - api port of miner device
--api-unavailability-timeout-seconds - api unavailability timeout in seconds
--alarm-bottom-limit - alarm bottom limit hashrate for device
--restart-bottom-limit - restart bottom limit hashrate for device
--alarm-seconds - time in seconds to trigger the alarm
after reaching the alarm-bottom-limit
--restart-seconds - time in seconds to trigger the restart
after reaching the restart-bottom-limit
--default - set default values for all parameters
Example:
set automation device-name testName test hashrate --enabled yes --api-ip-address
127.0.0.1 --default
set automation device-name testName test hashrate --enabled yes --api-ip-address
127.0.0.1 --api-port 4028 --api-unavailability-timeout-seconds 3 --alarm-bottom-limit
16700 --restart-bottom-limit 16500 --alarm-seconds 60 --restart-seconds 300
set automation device-name testName test hashrate --api-unavailability-timeout-seconds
4
set automation device-name testName test hashrate --enabled no
Type 'help' to get suggestions
Example 1.
Set for a device with the name
"DEVICE-2"
lower hash limit for alerting 13500, re-
boot limit of 13300, delay before 60 seconds warning, delay before restart in 300 seconds,
change IP to 10.210.1.93.
set automation device-name DEVICE-2 test hashrate --enabled yes --api-ip-address
10.210.1.93 --api-port 4028 --api-unavailability-timeout-seconds 3 --alarm-bottom-limit
13500 --restart-bottom-limit 13300 --alarm-seconds 60 --restart-seconds 300
The return is:
Automation Device ID: 2, Name: 'DEVICE-2' has been updated
Hash Rate Enabled changed from 'OFF' to 'ON'
Hash Rate API IP Address set to '10.210.1.93'
314