Title: automation of setting up ur miners? Post by: does on January 19, 2018, 10:30:06 PM hey there.
UPDATE: first script here. https://bitcointalk.org/index.php?topic=2788273.msg28619062#msg28619062 (https://bitcointalk.org/index.php?topic=2788273.msg28619062#msg28619062) i was wondering if their is any automation tools (perhaps in github?) such a batch file or anything else that will allow u to easy setup ur miners, such pools, changing password (ssh and web), hostname , static ip and so on. setting up 1 or 2 its ok doing so by the web, but when u got 10,20,30,40 or 100 doing them one by one can be very tiring. so far, i have track down the files where the web app hold the info. /config/bmminer.conf holds inside , pool info,frequency,fan speed (need to change permission to write.) Code: { /config/network.conf holds , hostname,dhcp/static ip (need to change permission to write.) incase of dhcp Code: hostname=miner1 or static Code: hostname=miner1 and for the web password is abit tricky its inside /config/lighttpd-htdigest.user Code: root:antMiner Configuration:23c2a2d78c0d20ec069097d7d20c4392 the hash "23c2a2d78c0d20ec069097d7d20c4392" is basicly an md5 of "root:antMiner Configuration:root" (with out quote) the :root in the end is the web password, meaning if u will want to change to 123456 for example the hash would be "b25ccbf855f9ad50ec0d5fc4cfc88a72" so "root:antMiner Configuration:b25ccbf855f9ad50ec0d5fc4cfc88a72" in other words the md5 is a sum of "root:antMiner Configuration:PASSWORD" now that i share all of that , i would like to work with some one with linux experience to create a batch file which will help other to easy setup their miners. my first idea was to run the batch file from the miner via ssh, and have couple of options such as. 1,change ur pool 2,set ip and hostname 3,change web password 4,change ssh password each option will have couple of options in option 1 we will have most famous pools register so ppl will be able to press 1,2,3,4,5,6... to select which pool they want by pressing one button. options will be like so 1,stratum.antpool.com:3333 2, stratum.slushpool.com:3333 3,eu.stratum.slushpool.com:3333 4,stratum.f2pool.com:3333 5,stratum.viabtc.com:3333 and so on. number "x", will be costume and the person will be able to type his own pool if not register. and then the worker name. when writing it onec it will remmber for the next 2 pools (pool 2,3) the following will be repeating 3 times for each pool (pool 1,2,3) on the worker name in pool 2,3 the user will have an option to or use the worker name he has put in pool 1 or be able to set a new name. in option 2 the user will be able to select which static ip he wants and change the hostname. (well its self explanatory) 3,4 self explanatory. in the end of options 1,2,3,4 the user will have the ability to save the settings he has enter. so he will be able to quickly load them for other miners, but when loading the settings the user will need to change the ip ,hostname,workername. the option that will pup up when loading the settings will be set primary number , for example 10 automaticly all the settings will be ready 1, hostanme "miner10" 2, ip (perhaps only the end of the numbers for ex 10.0.0.x) "10.0.0.10" 3, workername "test.10" this is how i see it to make it easier for every one who want to setup a small miner farm. perhaps all of this exist and i dont know. ( i would like to hear of such of thing) tell me guys what u think about the idea, and if any one want to help me create this for the community . cheers Title: Re: automation of setting up ur miners? Post by: fanatic26 on January 19, 2018, 11:06:02 PM If you dont need to static the miners the antpool rollout tool will do pretty much everything you need.
Title: Re: automation of setting up ur miners? Post by: does on January 20, 2018, 03:48:51 PM If you dont need to static the miners the antpool rollout tool will do pretty much everything you need. what do u mean? what is the rollout tool that u are talking about? actualy static the miners are important to know where is which and every miner on the shelf. for instance if miner 1 cause some issue , u will know its miner 1 and not miner 2 on the shelf. Title: Re: automation of setting up ur miners? Post by: DelTorro on January 20, 2018, 06:13:10 PM We use AwesomeMiner. It's done everything we could have possibly hoped for regarding automation. Very happy with it! ;D
Title: Re: automation of setting up ur miners? Post by: does on January 20, 2018, 11:38:42 PM We use AwesomeMiner. It's done everything we could have possibly hoped for regarding automation. Very happy with it! ;D i heard good things of it. but its free up to 2 miners. not looking to pay hundred of dollars to setup when it can done freely. Title: Re: automation of setting up ur miners? Post by: DelTorro on January 21, 2018, 12:14:55 AM Fair enough, but it's a one time license. Seems worth IMO. Pays for itself in a day if you've got a medium to large sized operation. Plus, the automation and features you get with it are incredibly worth it. ;D
Title: Re: automation of setting up ur miners? Post by: does on January 21, 2018, 03:26:29 PM so here is my first script. explanation below
https://pastebin.com/SeMJwsRP Code: #!/bin/bash create a file bash file and put the script inside. give it root permission to edit the files. with chmod 7777 filename.sh and chmod -x filename.sh u will need to do some manual modification at start. u should manual change everything that static that should not change. for example , pools,netmask,getway,dnsserver, the start of the miner name(hostname) and the start of the ip and the workername. running the script will be sh filename.sh 1 2 3 4 5 1, is the first worker name 2, is the second worker name 3, is the third worker name 4, hostname 5, ip address. please notice that the workername will be only the end of it. which mean useraccount.workernamehere, in the script its test.$1 (test = useraccount $1=workername) if u want to change the password just uncomment the last line and put ur password instead. u can use http://www.md5.cz/ to generate a hash "password" for u. root:antMiner Configuration:passwordhere = dad8edbc0681a4c03057417c19239983 = root:antMiner Configuration:dad8edbc0681a4c03057417c19239983 < u put this in the script for a real example that will be sh script.sh m1 m1 m1 1 1 the result will be first pool second pool third pool hostname IP test.m1 test.m1 test.m1 miner1 10.0.0.1 if u need any help, or u want to report a bug please tell me. or want to help to make it better welcome ur self to edit and share it Title: Re: automation of setting up ur miners? Post by: McMCrypto on February 03, 2019, 09:04:00 PM Hi, someone has a configuration tool for setting up large ASICs amount (like 50,100,500...) that work in Windows ?
Title: Re: automation of setting up ur miners? Post by: BitMaxz on February 03, 2019, 11:08:22 PM Hi, someone has a configuration tool for setting up large ASICs amount (like 50,100,500...) that work in Windows ? If you are running miners more than 2 miners you can use the paid version of awesome miner this is the only software that I know for managing all miners. You can config all miners with this software through SSH command feature from their tools tab. You can use their free version but limited to 2 miners good for testing. You can check their official thread here [Awesome Miner] - Powerful Windows GUI to manage and monitor up to 200000 miners (https://bitcointalk.org/index.php?topic=676942.0). Title: Re: automation of setting up ur miners? Post by: McMCrypto on February 04, 2019, 01:26:24 AM Hi, i am not looking for a full complete management software like Awesome miner, just a "GUI version" for automation of setting up miners, anyway thanks for the advice !
Title: Re: automation of setting up ur miners? Post by: Biffa on February 05, 2019, 03:51:57 PM Hi, i am not looking for a full complete management software like Awesome miner, just a "GUI version" for automation of setting up miners, anyway thanks for the advice ! If its for bitmain miners, then you can use their tools: https://shop.bitmain.com/support/download?product=Antminer%20Toolkit Title: Re: automation of setting up ur miners? Post by: Pi0Miner on February 23, 2019, 11:30:22 PM I don't use the big miners and don't know enough about them since I use the USB sticks. But if the big miners are Linux based on what you're describing, you can use Ansible for automation. Ansible is what Amazon uses to control their fleet of servers, or so a friend who work there tell me.
I use Ansible to completely configure and manage my of Raspberry Pi armada, including auto-downloading of BFGMiner, CGMiner, compile, setup, and configuration changes. You can set Ansible scripts to auto-configure per host or group. You can take a look at my example of an Ansible playbook to configure a special version of CGMiner here https://github.com/IRMooBear/ansible.cgminer . It does something very similar to what your script does, except once I set up SSH access to a host, the playbook can be applied to an unlimited number of hosts or specific host from my comp. If a configuration changes for a host or group, the playbook will also apply that to the remote configuration. Basically, anything you can do with SSH, ansible can automate in a better way for you. |