Hi there:
I have some Antminer L3+ that I'd love to control remotely and change pools dynamically. I'm using Minera to connect to my Antminers but the command change pool doesn't work. It says that "Access denied to 'switchpool' command". At the beginning, I thought it was a Minera problem but then I checked directly if the miner was executing this command in the 'localhost' but it didn't work either.
In short, I SSH to my Antminer and I run the following command with the following response:
~# echo "switchpool|1" | nc 127.0.0.1 4028
STATUS=E,When=1518091745,Code=45,Msg=Access denied to 'switchpool' command,Description=cgminer 4.9.0|
I can run stats commands and get a positive reply like:
echo '{"command":"stats"}' | nc localhost 4028
Then, I decided to dig in a little bit into the configuration of the cgminer. I'm trying to adjust the file /config/cgminer.conf. The default file has the following parameters:
"api-listen" : true,
"api-network" : true,
"api-groups" : "A:stats:pools:devs:summary:version",
"api-allow" : "A:0/0,W:*",
"bitmain-use-vil" : true,
"bitmain-freq" : "384"
I have changed the "api-allow" to "api-allow" : "A:127.0.0.1, 192.168.0.18,W:127.0.0.1,192.128.0.18". Where the 192.128.0.18 is the address of my minera server. But still, I'm not able to execute the "switchpool" command neither locally nor remotely. Is there any configuration that I have to use to execute privileged commands? According to the Readme.md
https://github.com/ckolivas/cgminer/blob/master/API-README the W group should be able to execute all the commands but it ain't my case.
Thanks for your help!