minerstat mining tutorial #20: Antminer monitoring

minerstat
minerstat
Published in
5 min readNov 8, 2018

In previous tutorials, we have shown you how to set up your ASICs, how to make the profit switch work on them, and how to monitor the mining activity. In this tutorial, we will focus only on Bitmain’s Antminer and show you the best way to set up Antminer monitoring. First, you will see how can you set up Antminer monitoring for one ASIC and later how to use minerstat’s tools to bulk install it on your ASIC farm.

If you own Antminer ASIC that doesn’t allow SSH connection (for example, Antminer Z11 or Antminer S17), we suggest continuing with ASIC Hub (Non-SSH).

Before you start

Before you start, you will have to register a new account on minerstat and add a new worker with type ASIC and the system Antminer. You will also need to know your ASIC’s IP and secure shell (SSH) username and password, which are not the same as the username and password for the web login. Default SSH username/password for Antminer are usually root/admin.

ASIC Hub setup

To set up the ASIC Hub you will need to have a secure shell (SSH) access to your ASIC. Like mentioned above, the SSH access is not the same as web access and also doesn’t use the same default username/password. To establish SSH access you will need special software that allows it - one such free software for Windows is PuTTY.

  1. Download PuTTY and run it.
  2. Enter your ASIC’s IP address, leave the port on 22, and click Open.
  3. Enter your SSH username (usually it is root on Antminers).
  4. Enter your SSH password (usually it is admin on Antminers).
  5. If your SSH username and password are not correct, you will somehow need to find what are the correct credentials for your Antminer. Try Googling your Antminer’s type along with “SSH login” (for example “Antminer Z9 SSH login”). Also, don’t forget that you need to use the same SSH username/password for the worker you have added at minerstat.
  6. When you are successfully logged in through the SSH, you need to enter the following command to install ASIC Hub on your ASIC.
cd /tmp && wget -O install.sh http://static.minerstat.farm/github/install.sh && chmod 777 *.sh && sh install.sh ACCESS_KEY WORKER_NAME

ACCESS_KEY needs to be replaced with your minerstat’s access key. You can find it by hovering your mouse over your avatar in the top right corner on your minerstat dashboard.

WORKER_NAME needs to be replaced with your worker’s name.

Please make sure to double check everything as the access key and worker’s name are both case-sensitive.

When you press Enter the script for loading ASIC Hub to your ASIC will be run and after it has successfully finished you will see the output DONE. Within a few minutes, you should see your ASIC online, the configuration will be loaded from the ASIC to the minerstat dashboard and your worker will be successfully mining. If this is not the case, we suggest you check your firmware and make sure that you are using official Antminer’s firmware on your ASIC. After you have upgraded the firmware, you will need to repeat the procedure.

Bulk ASIC Hub setup

If you own multiple Antminer, we suggest you take advantage of the tools we are providing that will help you establish your Antminer monitoring faster. You will need a computer with Linux (the procedure will also work on a rig that uses msOS).

Locator

The first tool is Locator which will scan your local network and return JSON file with all of your Antminers listed in it. You can follow our tutorial or simply visit the website, download the software, and run it.

Bulk import of your workers

The next step is to bulk import your workers. First, make sure that you have enough available space on your account - if you want to import 100 workers, you need to buy Tier plan that will allow you to hold at least 100 workers.

Click on the Add new worker button and select Bulk import.

On the bulk import page, click on the button Import workers (JSON) and select the file that was generated with Locator.

Re-check the gathered information and import the workers. If you want to organize your ASICs regarding the locations, we suggest you enter a group that will let you distinguish between different locations.

Install ASIC Hub

Open the computer you will use to install the ASIC Hub. The command to run the bulk install of ASIC Hub:

cd /tmp && wget -O bulk.sh https://raw.githubusercontent.com/minerstat/minerstat-asic-hub/master/bulk-install.sh && chmod 777 *.sh && sh bulk.sh

You will be asked to enter your access key and location/group - both are case sensitive so type in exact values. For location/group either enter asic if you want to include all of your ASICs or enter the name of the group that you put your ASIC workers into in the previous step.

The rest of the process is automatic and you should soon see your ASICs online on your minerstat dashboard.

If you want to re-install the ASIC Hub, run the following code:

cd /tmp && wget -O bulk.sh https://raw.githubusercontent.com/minerstat/minerstat-asic-hub/master/bulk-install.sh && chmod 777 *.sh && sh bulk.sh force

If you have any additional questions, you can find us on Discord or join us on your minerstat dashboard for the live chat.

Happy mining!

More from this series:

--

--

minerstat
minerstat

minerstat® is the top platform for ASIC and GPU crypto mining monitoring and management. Enjoy hassle-free mining with our cutting-edge software.