Author

Topic: Logging Antminer Statuses (Read 2055 times)

sr. member
Activity: 261
Merit: 257
May 10, 2015, 12:47:46 PM
#4
I looked at /www/pages/cgi-bin/minerStatus.cgi, and it parses
Code:
cgminer-api -o
cgminer-api -o pools
cgminer-api -o stats

But what is `cgminer-api`, and where can I find it? I found some Ruby API on GitHub, but that doesn't seem to be the same as the `cgminer-api` executable on AntMiners.
The cgminer-api executable on an antminer is api-example.c.
legendary
Activity: 4466
Merit: 1798
Linux since 1997 RedHat 4
May 10, 2015, 05:53:22 AM
#3
Go to official cgminer and get one of the API programs.
https://github.com/ckolivas/cgminer
(I wrote the API)

We've got C, PHP, Java (and Java class file), Ruby and Python code there

Via the java class the main stats you are probably looking for would be:
java API stats IPAddressOfMiner

The miner needs to have the API set to allow the (remote) computer you are running the API command on
(which it may already)

Read the API README for full details ... https://github.com/ckolivas/cgminer/blob/master/API-README
sr. member
Activity: 499
Merit: 251
April 17, 2015, 02:31:32 AM
#2
I looked at /www/pages/cgi-bin/minerStatus.cgi, and it parses
Code:
cgminer-api -o
cgminer-api -o pools
cgminer-api -o stats

But what is `cgminer-api`, and where can I find it? I found some Ruby API on GitHub, but that doesn't seem to be the same as the `cgminer-api` executable on AntMiners.
sr. member
Activity: 499
Merit: 251
April 16, 2015, 10:59:46 PM
#1
How does one log all an Antminer's statistics (temperature, hashrate, etc.) to a file?

I can log in to an Antminer via SSH, so I should be able to turn on some option for `cgminer` to log everything, no?
Jump to: