luxos command line tool#
The luxos python package comes with a command line script
called luxos: it can issue a command (with parameters) to a list of miners’ ips
in a csv file.
This will launch the version command on a miner, returning the json output:
luxos --range 127.0.0.1 --quiet --json --cmd version
The --range flag can take:
a single ip address, eg:
--range 127.0.0.1a range like:
--range 127.0.0.1-127.0.0.5or addresses from a file:
--range @miners.csv.
Other examples:
# set/unset ATM
luxos --range 127.0.0.1 --quiet --json --cmd atmset --params "enabled=true"
# add a new profile
luxos --range 127.0.0.1 --quiet --json --cmd profilenew --params "myprofile,700,14.8"
NOTE
--ipfileis an alternative way to load miners from a csv file, it’s the same as--rangeflag: it can take addresses like127.0.0.1, ranges as127.0.0.1-127.0.0.5or filenames as@miners.csv.you can use the
--jsonto save the results in json format (to stdout).