Logging Antminer Statuses

2

2

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?

Geremia

Posted 2015-04-17T02:59:16.827

Reputation: 3 665

It seems like it would just be a matter of redirecting the output to a file, right? Or is there something I'm missing?Nick ODell 2015-04-17T04:31:11.950

@NickODell Yes, but it's complicated by its being a daemon… And I'm not even sure cgminer logs temperature or anything else outside the the "Pools" pane of the "Miner Status" page. Maybe I should look into the webserver and see where it's getting the data.Geremia 2015-04-17T06:06:41.633

Answers

3

I looked at /www/pages/cgi-bin/minerStatus.cgi, and it parses

cgminer-api -o
cgminer-api -o pools
cgminer-api -o stats

Geremia

Posted 2015-04-17T02:59:16.827

Reputation: 3 665

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.

Geremia 2015-04-17T06:52:34.887

@NickODell: Thank you. Now I can compile it and run it as a cronjob to make periodic logs.Geremia 2015-04-17T20:15:28.610