Skip to content

Instantly share code, notes, and snippets.

@urza
Last active February 21, 2019 23:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save urza/331bf94b78a3c1bf04a1f8104f6b41cb to your computer and use it in GitHub Desktop.
Save urza/331bf94b78a3c1bf04a1f8104f6b41cb to your computer and use it in GitHub Desktop.
command line arguments
Command line arguments for GrinPro.io miner.
General format is: arg1=value1 arg2=value2 etc.
Example:
Linux: ./GrinProMiner configpath=/absolute/path/to/directory api-port=3333
Windows: GrinProMiner.exe configpath=C:\absolute\path\to\directory api-port=3333
"configpath" Defines directory where to save or load config.xml file from.
Example:
Linux: ./GrinProMiner configpath=/absolute/path/to/directory
Windows: GrinProMiner.exe configpath=C:\absolute\path\to\directory
More info about config.xml: https://github.com/mozkomor/GrinGoldMiner/blob/master/src/Master/config.xml
"api-port" number of port on which API should listen
default value: 5777
ALTERNATIVE TO USING CONFIG.XML :
Use following arguments if you want to pass config options as command line arguments and ignore config.xml
This is not recommended, if you can, use config.xml it is preferred option.
You can also upload config.xml via API: https://grinpro.io/api.html
More info about config.xml file: https://grinpro.io
You MUST use ignore-config=true argument if you want to use following arguments.
All stratum arguments and either amd or nvidia or both are required in this case.
You will lose some options like backup pool connection, CPU offload value, etc.
"ignore-config" "true" if you want to skip loading config.xml, you MUST provide all stratum and GPU details as command line arguments
"stratum-address" IP or dns address
Example:
stratum-address=eu.pool.com
"stratum-port" stratum port number
"stratum-tls" use encrypted connection, "true" or "false", pool must support on this port
"stratum-login" stratum login
"stratum-password" (optional) stratum password
"stratum-backup-address"
"stratum-backup-port"
"stratum-backup-tls"
"stratum-backup-login"
"stratum-backup-password"
"stratum-to-primary" After how many minutes mining on backup, should miner try to reconnnect to primary connection again.
0 = off
"amd" List of AMD cards for mining.
Must be in this format OPENCL_PLATFORM:DEVICE_ID,OPENCL_PLATFORM:DEVICE_ID,OPENCL_PLATFORM:DEVICE_ID,..
Example:
amd=0:0,0:1,0:2 (will start mining on 3 AMD cards on OPENCL platform 0, cards have DEVICE IDs 0,1,2.
"nvidia" List of NVIDIA cards for mining.
Must be list of GPU DEVICE IDs separated by commas
Example:
nvidia=0,1,2,3 (will start mining on 4 NVIDIA cards with Device IDs 0,1,2,3
nvidia=1 (will start mining on single NVIDIA card with Device ID 1)
"log-level-console" (optional, default is 1) number 0/1/2/3, 0=DEBUG, 1=INFO, 2=WARNING, 3=ERROR
"log-level-file" (optional, default is 2) number 0/1/2/3, 0=DEBUG, 1=INFO, 2=WARNING, 3=ERROR
"log-disable" (optional) "true" will disable logging to file/disk. Otherwise log is written to logs/ directory
"dashboard" IP address of Remote Dashboard (optional, activates push mode)
"rig-name" Name of this rig in Remote Dashboard (optional)
"dashboard-interval" Optional, default 60. How ofter to connect to Remote Dashboard, value in seconds.
Example of config from arguments that will start mining on two GPUs - one Nvidia and one AMD, connected to grinmint pool:
Windows GrinProMiner.exe ignore-config=true stratum-address=eu-west-stratum.grinmint.com stratum-port=4416 stratum-tls=true stratum-login=login@example.com nvidia=0 amd=0:0
Linux: ./GrinProMiner ignore-config=true stratum-address=eu-west-stratum.grinmint.com stratum-port=4416 stratum-tls=true stratum-login=logina@example.com nvidia=0 amd=0:0
Example that doesn't use config.xml and instead sets everythin from command-line arguments, including backup stratum connection, uses 4 GPUs:
./GrinProMiner ignore-config=true stratum-address=10.0.0.2 stratum-port=3416 stratum-tls=false stratum-login=urza stratum-backup-address=us-east-stratum.grinmint.com stratum-backup-port=4416 stratum-backup-tls=true stratum-backup-login=jijipanda@protonmail.com stratum-to-primary=10 dashboard=10.0.0.3 rig-name=urza dashboard-interval=60 log-level-console=1 log-level-file=0 nvidia=0,1 amd=0:0,0:1
@rdugan
Copy link

rdugan commented Feb 20, 2019

Next release, can you consider changing configpath from just a directory, to an actual config file. Already have 3-4 config files, I need to swap back and forth depending on what/where I'm mining.

@urza
Copy link
Author

urza commented Feb 21, 2019

@rdugan will consider.. in the meantime as a workaround you can create subfolder for each config like

configs/first/config.xml
configs/second/config.xml

Then swapping should be easier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment