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?
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?
3
I looked at /www/pages/cgi-bin/minerStatus.cgi, and it parses
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.
2 It's compiled from here, but those three commands draw data from https://github.com/ckolivas/cgminer/blob/78b1b603ca483ecb8b2177f4a456cfd88e783e6f/api.c#L2577, https://github.com/ckolivas/cgminer/blob/78b1b603ca483ecb8b2177f4a456cfd88e783e6f/api.c#L2481, and https://github.com/ckolivas/cgminer/blob/78b1b603ca483ecb8b2177f4a456cfd88e783e6f/api.c#L4068.
@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
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
cgminerlogs 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