Bitcoin Forum
July 10, 2024, 11:15:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Logging Antminer Statuses  (Read 2061 times)
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 505
Merit: 252


View Profile WWW
April 17, 2015, 02:59:46 AM
 #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?

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 505
Merit: 252


View Profile WWW
April 17, 2015, 06:31:32 AM
Last edit: April 17, 2015, 06:53:19 AM by Geremia
 #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.

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
kano
Legendary
*
Offline Offline

Activity: 4550
Merit: 1850


Linux since 1997 RedHat 4


View Profile
May 10, 2015, 09: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

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
bitsolutions
Sr. Member
****
Offline Offline

Activity: 261
Merit: 257



View Profile
May 10, 2015, 04: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.

Mining Software Developer.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!