It uses Antminer firmware cgi API endpoints
* curl
* jq
sudo curl https://raw.githubusercontent.com/pavelsr/antmcli/master/amcli -o /usr/local/bin/amcli
sudo chmod +x /usr/local/bin/amcli
Don't forget to change (e.g. with sudo nano /usr/local/bin/amcli
) following enviroment variables (below are defaults):
MINER_IP=192.168.0.105
USER=root
PASS=root
Available options:
Usage: ./amcli [-h] [-v] [-r] [-l]
-h Help. Display this message and quit
-v Version. Print version number and quit
-a Show Antminer API authorization details
-r Reboot Antminer
-l Show Antminer linux kernel log
Without any option specified it's showing json dashboard
Tested on bash 4.3.48