Bitcoin Forum
January 19, 2019, 07:39:01 AM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Logging Antminer Statuses  (Read 1953 times)
Geremia
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


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, & Twister posts pages | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
1547883541
Hero Member
*
Offline Offline

Posts: 1547883541

View Profile Personal Message (Offline)

Ignore
1547883541
Reply with quote  #2

1547883541
Report to moderator
1547883541
Hero Member
*
Offline Offline

Posts: 1547883541

View Profile Personal Message (Offline)

Ignore
1547883541
Reply with quote  #2

1547883541
Report to moderator
1547883541
Hero Member
*
Offline Offline

Posts: 1547883541

View Profile Personal Message (Offline)

Ignore
1547883541
Reply with quote  #2

1547883541
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1547883541
Hero Member
*
Offline Offline

Posts: 1547883541

View Profile Personal Message (Offline)

Ignore
1547883541
Reply with quote  #2

1547883541
Report to moderator
1547883541
Hero Member
*
Offline Offline

Posts: 1547883541

View Profile Personal Message (Offline)

Ignore
1547883541
Reply with quote  #2

1547883541
Report to moderator
1547883541
Hero Member
*
Offline Offline

Posts: 1547883541

View Profile Personal Message (Offline)

Ignore
1547883541
Reply with quote  #2

1547883541
Report to moderator
Geremia
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


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, & Twister posts pages | 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: 2702
Merit: 1068


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 Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
bitsolutions
Sr. Member
****
Offline Offline

Activity: 260
Merit: 254



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:  

Bitcointalk.org is not available or authorized for sale. Do not believe any fake listings.
Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!