Author

Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.0 - page 123. (Read 5806015 times)

hero member
Activity: 546
Merit: 500
Is there an API command that will get me the 5s hashrate or something similar?

I have a stack of 16 bitburner boards and occasionally one or more of them will crash and need to be rebooted. I'm looking for a way to figure out this has happened so that I can automatically power cycle and reboot the boards, but I can't find any API command that will tell me the current hashrate or even the current state of the devices. Anyone have any suggestions?

Did you look in the api-readme.txt?

Yes, of course. There is nothing in there that seems like it answers my question, unless I am missing something somewhere. I've looked at both the output from the "summary" and the "stats" commands.
legendary
Activity: 3586
Merit: 1099
Think for yourself
Is there an API command that will get me the 5s hashrate or something similar?

I have a stack of 16 bitburner boards and occasionally one or more of them will crash and need to be rebooted. I'm looking for a way to figure out this has happened so that I can automatically power cycle and reboot the boards, but I can't find any API command that will tell me the current hashrate or even the current state of the devices. Anyone have any suggestions?

Did you look in the api-readme.txt?
hero member
Activity: 546
Merit: 500
Is there an API command that will get me the 5s hashrate or something similar?

I have a stack of 16 bitburner boards and occasionally one or more of them will crash and need to be rebooted. I'm looking for a way to figure out this has happened so that I can automatically power cycle and reboot the boards, but I can't find any API command that will tell me the current hashrate or even the current state of the devices. Anyone have any suggestions?
hero member
Activity: 1246
Merit: 501
Why ? We talk about cgminer here no ? I'm in the right place then Smiley

3.7.2 is no longer supported.  You need to Google "sgminer" - it's the cgminer fork that still does GPU mining, and I must say has quite a few improvements compared to 3.7.2 which is pretty ancient now as far as mining software goes.
member
Activity: 81
Merit: 10
Why ? We talk about cgminer here no ? I'm in the right place then Smiley
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
There are no binaries - windows or linux - provided for any version prior to 3.8.0.

About my question just before please ckolivas ?
Off topic.
member
Activity: 81
Merit: 10
There are no binaries - windows or linux - provided for any version prior to 3.8.0.

About my question just before please ckolivas ?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
There are no binaries - windows or linux - provided for any version prior to 3.8.0.
full member
Activity: 224
Merit: 100
Can anyone help with the location of cgminer.exe? Why is it missing from version 3.7.2? The Readme say antivirus might block it but I have it all turned off?
legendary
Activity: 1120
Merit: 1000
Where can I get version 3.7.2 for my GPU?
full member
Activity: 226
Merit: 100
I have a questions, Is CGMINER for mac OSX the same as the miner talked about in this thread ? The reason I ask is because I want to know if there is a way to have CG miner launch my terminal window with my default terminal settings.. I apologize if this is the wrong thread . was more of a vanity question really... just got burned out on CGminer opening in a bland black on white terminal window... all my other terminal windows open with the default settings.
Yes, it is the same.  If you want a bit more control and you're fine with running the command-line version, download the miner-only version from here.  I'll see if there's anything I can do with the launcher script to conform the terminal window settings Smiley

Thank you....
member
Activity: 109
Merit: 10
I have a questions, Is CGMINER for mac OSX the same as the miner talked about in this thread ? The reason I ask is because I want to know if there is a way to have CG miner launch my terminal window with my default terminal settings.. I apologize if this is the wrong thread . was more of a vanity question really... just got burned out on CGminer opening in a bland black on white terminal window... all my other terminal windows open with the default settings.
Yes, it is the same.  If you want a bit more control and you're fine with running the command-line version, download the miner-only version from here.  I'll see if there's anything I can do with the launcher script to conform the terminal window settings Smiley
full member
Activity: 226
Merit: 100
I have a questions, Is CGMINER for mac OSX the same as the miner talked about in this thread ? The reason I ask is because I want to know if there is a way to have CG miner launch my terminal window with my default terminal settings.. I apologize if this is the wrong thread . was more of a vanity question really... just got burned out on CGminer opening in a bland black on white terminal window... all my other terminal windows open with the default settings.
member
Activity: 81
Merit: 10
Hello Folks and ckolivas !

I'm getting in trouble trying to run cgminer 3.7.2 from a Debian text mode console.

I explain myself.

I used that AMD pdf to remove security using drivers from console : http://developer.amd.com/wordpress/media/2012/10/App_Note-Running_AMD_APP_Apps_Remotely.pdf

Since actions from that file are done, I'm able to launch cgminer from console... but it won't start ... if I let the console open in front of me ... If I switch back to xorg (ctrl + alt + f7), I listen my GPU fans running and mining works well.
If I turn back to my console (ctrl + alt + f2), mining hangs and fan start to decrease ...

Same happening from cgminer -n ... hangs when I got the console in front of me, and shows GPU details if I leave to xorg...

I would like to get info resolving that please.

Thanks anyway Smiley
sr. member
Activity: 457
Merit: 250


I'm 100% sure cgminer has compilation instructions included in the documentation, I suggest you read them.

Thanks, I will do so and then report back

Well, I gave my best Wink

Managed to clone actual cgminer repo from github.
Did you use the Bitmaintech version of cgminer ?
https://github.com/bitmaintech/cgminer

No, I did not. This version is not actual and has poor performance (high error rate)
hero member
Activity: 826
Merit: 1001


I'm 100% sure cgminer has compilation instructions included in the documentation, I suggest you read them.

Thanks, I will do so and then report back

Well, I gave my best Wink

Managed to clone actual cgminer repo from github.
Did you use the Bitmaintech version of cgminer ?
https://github.com/bitmaintech/cgminer
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Well, I gave my best Wink

Managed to clone actual cgminer repo from github.

Could not find the option to enable bitmain drivers in the readme on github. Tried icarus since in the old versions bitmain was based on icaraus (if i remember correctly)

Quote
./autogensh  --enable-icarus

The compilation worked, but it was not able to detect my ants. I guess it was the wrong driver.

Then I googled around and found the following parameters:

Quote
./autogensh  --enable-bmsc --enable-bitmain

Those seem not to be valid (they are also not in the readme but I gave it a try)

Could anyone provide me the correct parameter?

Thanks in advance!

Edit:

Got it!  https://github.com/ckolivas/cgminer/blob/master/ASIC-README

Found out that, icarus was the correct option. It did not work since I had to use sudo to start cgminer.

Edit2:

CGminer detects only 11 of my 16 Ants. And those rund with very low hashes and high error rate. I know this ran only for a few seconds, when I took the screenshot. But it did not change so far. Frequency was 200, but got the same results with higher frequencys
If you needed sudo then you have not set up permissions properly (copying 01 udev file). It looks like it sees them all in fact since it says 16 recognised devices.  However it's clearly failing to initialise them for whatever reason and the ones remaining are performing lousy. I have no idea why...
hero member
Activity: 808
Merit: 502
How can I use cgminer to log the overall hashrate value into a file every 5 seconds or do?

Thanks...
sr. member
Activity: 457
Merit: 250


I'm 100% sure cgminer has compilation instructions included in the documentation, I suggest you read them.

Thanks, I will do so and then report back

Well, I gave my best Wink

Managed to clone actual cgminer repo from github.

Could not find the option to enable bitmain drivers in the readme on github. Tried icarus since in the old versions bitmain was based on icaraus (if i remember correctly)

Quote
./autogensh  --enable-icarus

The compilation worked, but it was not able to detect my ants. I guess it was the wrong driver.

Then I googled around and found the following parameters:

Quote
./autogensh  --enable-bmsc --enable-bitmain

Those seem not to be valid (they are also not in the readme but I gave it a try)

Could anyone provide me the correct parameter?

Thanks in advance!

Edit:

Got it!  https://github.com/ckolivas/cgminer/blob/master/ASIC-README

Found out that, icarus was the correct option. It did not work since I had to use sudo to start cgminer.

Edit2:



CGminer detects only 11 of my 16 Ants. And those rund with very low hashes and high error rate. I know this ran only for a few seconds, when I took the screenshot. But it did not change so far. Frequency was 200, but got the same results with higher frequencys
hero member
Activity: 798
Merit: 1000
The latest Antminer S1 firmware uses CGMiner 3.12.0

Everything in general is running fine, but the API is spitting out something interesting/troubling.

When I hit the API with the command "pools" I get this for the Last Share Time:
Code:
"Last Share Time": "0:00:01", 

For the API command "devs", I get this for Last Share Time:
Code:
"Last Share Time": 1392294615,

My miner-dashboard expects the output for Last Share Time like it is in devs not like how it is in pools.
Unfortunately it relies on the pools command to display all the pools I have configured including the last share submitted.

...

So... bug? Something inherent in Antminer's S1 Implementation (which btw has the correct time/date via NTP in the Web Interface and when I SSH in and get the date)?
They feel the need to change the API.
They are morons.

It is not changed in master cgminer.

I have made sure that the cgminer API is backward compatible since I first wrote it.
The only things changed have been to remove CPU and GPU information (since they don't exist in cgminer)

Unfortunately, the idiots who make the Antminer, break this compatibility by changing names and values in the API in their clone of cgminer.
You will also find that they changed the name of the fields and values that report the hash rate in the summary.
So basically what it means is that either everyone who has ever written a program or script to access the API must modify their code to support these random needless changes, or tell them to stop fucking with the API and making it no longer compatible.

Edit: they were probably stupid enough to also not notice that STATUS->When is the time of the results - so the difference between 'When' and 'Last Share Time' will tell you how long ago it is if you want to display it differently ......... (as I already do in miner.php for 'Last Valid Work')

Well that sucks monkey balls.  Thanks Kano!

I'll relay the info to the dev of the miner-dashboard I use.  Hopefully he can support the customizations...
Jump to: