Bitcoin Forum

Bitcoin => Mining support => Topic started by: cmanmatt on April 22, 2018, 03:39:21 PM



Title: Stopping/pausing mining command for antminers via API or Awesomeminer, etc.?
Post by: cmanmatt on April 22, 2018, 03:39:21 PM
I'm looking into how to automate scheduling of my antminers (variety of S9s, L3s, A3s, D3s) to take advantage of time of day energy prices.  I was looking into Awesomeminer or doing my own scripting/API with the cgminer running the Antminers.  But I can't seem to find where you can stop the miners but keep them awake so you can restart them later.  I only can find reference to changing the frequency for OC/UC.  Anyone know of a command to do this? 

My other alternative is to use hardware via smart switches but I'd rather do it via commands and scripting if I can.


Title: Re: Stopping/pausing mining command for antminers via API or Awesomeminer, etc.?
Post by: ccgllc on April 22, 2018, 05:22:16 PM
Under Awesome Miner rules:

Add a new rule with a TIME trigger and a "Stop Miner" action would do the trick I would imagine.

Of course, you would want another TIME rule to "Start Miner" later.


Title: Re: Stopping/pausing mining command for antminers via API or Awesomeminer, etc.?
Post by: cmanmatt on April 22, 2018, 06:07:54 PM
Thanks, that is what I'm hoping but I can't seem to find anywhere whether that works specifically for Antminers.


Title: Re: Stopping/pausing mining command for antminers via API or Awesomeminer, etc.?
Post by: ccgllc on April 23, 2018, 05:51:58 AM
Presuming you have set privileged API access, I don't see why it wouldn't.  Perhaps just try it vs debate it?


Title: Re: Stopping/pausing mining command for antminers via API or Awesomeminer, etc.?
Post by: fanatic26 on April 23, 2018, 04:07:02 PM
You can always use an ssh command to start and stop the miner from the console


Title: Re: Stopping/pausing mining command for antminers via API or Awesomeminer, etc.?
Post by: cmanmatt on April 24, 2018, 01:54:36 AM
I heard back from Awesome Miner support on this.  Apparently Antminers are specifically difficult to do this with.  They will restart themselves if you try to stop them.  They provided a recommendation that some people use which is to put an invalid mining pool address and the miner will stop mining.  I tried that and it still just cycles on and off which isn't great for the miner or for the intended use of saving power.

It would be great if someone is actually doing this with Awesome Miner with Antminers specifically could chime in as it sounds like the regular recommendations don't work for Antminers.

Otherwise I may be stuck with a hardware solution of smart switches. 


Title: Re: Stopping/pausing mining command for antminers via API or Awesomeminer, etc.?
Post by: SGMPhil on April 24, 2018, 09:27:48 AM
One way to do this would be to configure your firewall with time restrictions that only allow the ports used by the miners to pass through the firewall at certain times. This assumes that you have a firewall that has that ability (the one that I use can do this).


Title: Re: Stopping/pausing mining command for antminers via API or Awesomeminer, etc.?
Post by: fanatic26 on April 24, 2018, 03:45:35 PM
Antminers burn a lot of power at idle. You would be best to have a switched PDU to control the miners rather than do it via software.


Title: Re: Stopping/pausing mining command for antminers via API or Awesomeminer, etc.?
Post by: cmanmatt on April 27, 2018, 02:17:31 AM
Antminers burn a lot of power at idle. You would be best to have a switched PDU to control the miners rather than do it via software.

This.

Thanks! that is my conclusion at this point.  Need to do a switch on my PDU or power cord...