Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Undertrey authored Jan 5, 2022
1 parent 787ea5d commit 19411d4
Show file tree
Hide file tree
Showing 14 changed files with 70 additions and 38 deletions.
6 changes: 3 additions & 3 deletions Bmnrautorun.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pushd "%~dp0"
SETLOCAL EnableExtensions EnableDelayedExpansion
MODE CON cols=70 lines=40
shutdown.exe /A 2>NUL 1>&2
SET ver=2.1.7
SET ver=2.1.8
SET mn=Bmnr
SET firstrun=0
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
Expand Down Expand Up @@ -409,8 +409,8 @@ IF NOT EXIST "%log%" (
CALL :inform "1" "false" "%log% is missing. Probably %minerprocess% hangs..." "1" "1"
GOTO restart
) ELSE (
findstr.exe /R /C:".*%minerprocess% -uri.*-logfile %log%.*-max-temperature.*" %bat% 2>NUL 1>&2 || (
CALL :inform "1" "false" "Ensure *%minerpath% -uri -logfile %log% -max-temperature* options added to the miners command line in this order." "Ensure %minerpath% -uri -logfile %log% -max-temperature options added to the miners command line in this order." "2"
findstr.exe /R /C:".*%minerprocess% -uri.*" %bat% 2>NUL 1>&2 || (
CALL :inform "1" "false" "Ensure *%minerpath% -uri* option added to the miners command line in first order." "Ensure %minerpath% -uri option added to the miners command line in first order." "2"
)
ECHO log monitoring started.
ECHO Collecting information. Please wait...
Expand Down
2 changes: 1 addition & 1 deletion CCautorun.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pushd "%~dp0"
SETLOCAL EnableExtensions EnableDelayedExpansion
MODE CON cols=70 lines=40
shutdown.exe /A 2>NUL 1>&2
SET ver=2.1.7
SET ver=2.1.8
SET mn=Cmnr
SET firstrun=0
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
Expand Down
6 changes: 3 additions & 3 deletions Castautorun.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pushd "%~dp0"
SETLOCAL EnableExtensions EnableDelayedExpansion
MODE CON cols=70 lines=40
shutdown.exe /A 2>NUL 1>&2
SET ver=2.1.7
SET ver=2.1.8
SET mn=Cast
SET firstrun=0
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
Expand Down Expand Up @@ -409,8 +409,8 @@ IF NOT EXIST "%log%" (
CALL :inform "1" "false" "%log% is missing. Probably %minerprocess% hangs..." "1" "1"
GOTO restart
) ELSE (
findstr.exe /R /C:".*%minerprocess% -S.*--log %log%.*" %bat% 2>NUL 1>&2 || (
CALL :inform "1" "false" "Ensure *%minerpath% -S --log %log%* options added to the miners command line in this order." "Ensure %minerpath% -S --log %log% options added to the miners command line in this order." "2"
findstr.exe /R /C:".*%minerprocess% -S.*" %bat% 2>NUL 1>&2 || (
CALL :inform "1" "false" "Ensure *%minerpath% -S* option added to the miners command line in first order." "Ensure %minerpath% -S --log %log% option added to the miners command line in first order." "2"
)
ECHO log monitoring started.
ECHO Collecting information. Please wait...
Expand Down
2 changes: 1 addition & 1 deletion ClayETHautorun.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pushd "%~dp0"
SETLOCAL EnableExtensions EnableDelayedExpansion
MODE CON cols=70 lines=40
shutdown.exe /A 2>NUL 1>&2
SET ver=2.1.7
SET ver=2.1.8
SET mn=Clay
SET firstrun=0
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
Expand Down
2 changes: 1 addition & 1 deletion ClayNSautorun.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pushd "%~dp0"
SETLOCAL EnableExtensions EnableDelayedExpansion
MODE CON cols=70 lines=40
shutdown.exe /A 2>NUL 1>&2
SET ver=2.1.7
SET ver=2.1.8
SET mn=Clay
SET firstrun=0
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
Expand Down
2 changes: 1 addition & 1 deletion ClayXMRautorun.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pushd "%~dp0"
SETLOCAL EnableExtensions EnableDelayedExpansion
MODE CON cols=70 lines=40
shutdown.exe /A 2>NUL 1>&2
SET ver=2.1.7
SET ver=2.1.8
SET mn=Clay
SET firstrun=0
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
Expand Down
2 changes: 1 addition & 1 deletion ClayZECautorun.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pushd "%~dp0"
SETLOCAL EnableExtensions EnableDelayedExpansion
MODE CON cols=70 lines=40
shutdown.exe /A 2>NUL 1>&2
SET ver=2.1.7
SET ver=2.1.8
SET mn=Clay
SET firstrun=0
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
Expand Down
2 changes: 1 addition & 1 deletion Dstmautorun.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pushd "%~dp0"
SETLOCAL EnableExtensions EnableDelayedExpansion
MODE CON cols=70 lines=40
shutdown.exe /A 2>NUL 1>&2
SET ver=2.1.7
SET ver=2.1.8
SET mn=Dstm
SET firstrun=0
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
Expand Down
2 changes: 1 addition & 1 deletion Ethrautorun.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pushd "%~dp0"
SETLOCAL EnableExtensions EnableDelayedExpansion
MODE CON cols=70 lines=40
shutdown.exe /A 2>NUL 1>&2
SET ver=2.1.7
SET ver=2.1.8
SET mn=Ethr
SET firstrun=0
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
Expand Down
6 changes: 3 additions & 3 deletions Ewbfautorun.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pushd "%~dp0"
SETLOCAL EnableExtensions EnableDelayedExpansion
MODE CON cols=70 lines=40
shutdown.exe /A 2>NUL 1>&2
SET ver=2.1.7
SET ver=2.1.8
SET mn=Ewbf
SET firstrun=0
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
Expand Down Expand Up @@ -409,8 +409,8 @@ IF NOT EXIST "%log%" (
CALL :inform "1" "false" "%log% is missing. Probably %minerprocess% hangs..." "1" "1"
GOTO restart
) ELSE (
findstr.exe /R /C:".*%minerprocess% --server.*--log 2.*--templimit.*" %bat% 2>NUL 1>&2 || (
CALL :inform "1" "false" "Ensure *%minerpath% --server --log 2 --templimit* options added to the miners command line in this order." "Ensure %minerpath% --server --log 2 --templimit options added to the miners command line in this order." "2"
findstr.exe /R /C:".*%minerprocess% --server.*" %bat% 2>NUL 1>&2 || (
CALL :inform "1" "false" "Ensure *%minerpath% --server* option added to the miners command line in first order." "Ensure %minerpath% --server option added to the miners command line in first order." "2"
)
ECHO log monitoring started.
ECHO Collecting information. Please wait...
Expand Down
6 changes: 3 additions & 3 deletions Gmnrautorun.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pushd "%~dp0"
SETLOCAL EnableExtensions EnableDelayedExpansion
MODE CON cols=70 lines=40
shutdown.exe /A 2>NUL 1>&2
SET ver=2.1.7
SET ver=2.1.8
SET mn=Gmnr
SET firstrun=0
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
Expand Down Expand Up @@ -409,8 +409,8 @@ IF NOT EXIST "%log%" (
CALL :inform "1" "false" "%log% is missing. Probably %minerprocess% hangs..." "1" "1"
GOTO restart
) ELSE (
findstr.exe /R /C:".*%minerprocess% -s .* --logfile %log%.*" %bat% 2>NUL 1>&2 || (
CALL :inform "1" "false" "Ensure *%minerpath% -s --logfile %log%* options added to the miners command line in this order." "Ensure %minerpath% -s --logfile %log% options added to the miners command line in this order." "2"
findstr.exe /R /C:".*%minerprocess% -s .*" %bat% 2>NUL 1>&2 || (
CALL :inform "1" "false" "Ensure *%minerpath% -s* option added to the miners command line in first order." "Ensure %minerpath% -s option added to the miners command line in first order." "2"
)
ECHO log monitoring started.
ECHO Collecting information. Please wait...
Expand Down
6 changes: 3 additions & 3 deletions Nbmautorun.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pushd "%~dp0"
SETLOCAL EnableExtensions EnableDelayedExpansion
MODE CON cols=70 lines=40
shutdown.exe /A 2>NUL 1>&2
SET ver=2.1.7
SET ver=2.1.8
SET mn=Nbm
SET firstrun=0
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
Expand Down Expand Up @@ -409,8 +409,8 @@ IF NOT EXIST "%log%" (
CALL :inform "1" "false" "%log% is missing. Probably %minerprocess% hangs..." "1" "1"
GOTO restart
) ELSE (
findstr.exe /R /C:".*%minerprocess% -o.*--log-file %log%.*" %bat% 2>NUL 1>&2 || (
CALL :inform "1" "false" "Ensure *%minerpath% -o --log-file %log%* options added to the miners command line in this order." "Ensure %minerpath% -o --log-file %log% options added to the miners command line in this order." "2"
findstr.exe /R /C:".*%minerprocess% -o.*" %bat% 2>NUL 1>&2 || (
CALL :inform "1" "false" "Ensure *%minerpath% -o* option added to the miners command line in first order." "Ensure %minerpath% -o option added to the miners command line in first order." "2"
)
ECHO log monitoring started.
ECHO Collecting information. Please wait...
Expand Down
10 changes: 5 additions & 5 deletions Phnxautorun.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pushd "%~dp0"
SETLOCAL EnableExtensions EnableDelayedExpansion
MODE CON cols=70 lines=40
shutdown.exe /A 2>NUL 1>&2
SET ver=2.1.7
SET ver=2.1.8
SET mn=Phnx
SET firstrun=0
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
Expand Down Expand Up @@ -82,7 +82,7 @@ SET tpr=C8go_jp8%tprt%
SET /A num=(3780712+3780711)*6*9
SET errorscancel=/C:".*Connected.*"
SET criticalerrorslist=/C:".*CUDA-capable.*" /C:".*CUDA error.*" /C:".*Fatal error detected.*"
SET errorslist=/C:".*GPU .* hangs.*" /C:".*Thread.*not.*responding.*"
SET errorslist=/C:".*GPU .* hangs.*" /C:".*Thread.*not.*responding.*" /C:"Incorrect.*share from.*"
SET interneterrorslist=/C:"Can.*t resolve.*" /C:".*Unable to read pool response.*" /C:".*Reconnecting.*" /C:".*Connection closed.*"
IF %cmddoubleruncheck% EQU 1 (
tasklist.exe /V /NH /FI "imagename eq cmd.exe"| findstr.exe /V /R /C:".*%mn%_autorun(%dt0%)"| findstr.exe /R /C:".*%mn%_autorun.*" 2>NUL 1>&2 && (
Expand Down Expand Up @@ -281,7 +281,7 @@ SET chatid=%chatid: =%
SET gpus=%gpus: =%
SET hashrate=%hashrate: =%
IF %tempcheck% EQU 1 SET errorslist=%errorslist% /C:".* [0-5]C .*"
IF %globaltempcheck% EQU 1 SET warningslist=/C:".*reached.*"
IF %globaltempcheck% EQU 1 SET warningslist=/C:".*is stopped because it has temperature.*"
IF %environments% EQU 1 FOR %%a IN ("GPU_FORCE_64BIT_PTR 0" "GPU_MAX_HEAP_SIZE 100" "GPU_USE_SYNC_OBJECTS 1" "GPU_MAX_ALLOC_PERCENT 100" "GPU_SINGLE_ALLOC_PERCENT 100") DO SETX %%~a 2>NUL 1>&2 && ECHO %%~a.
IF %environments% EQU 0 FOR %%a IN ("GPU_FORCE_64BIT_PTR" "GPU_MAX_HEAP_SIZE" "GPU_USE_SYNC_OBJECTS" "GPU_MAX_ALLOC_PERCENT" "GPU_SINGLE_ALLOC_PERCENT") DO REG DELETE HKCU\Environment /F /V %%~a 2>NUL 1>&2 && ECHO %%~a successfully removed from environments.
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt1=%%A
Expand Down Expand Up @@ -409,8 +409,8 @@ IF NOT EXIST "%log%" (
CALL :inform "1" "false" "%log% is missing. Probably %minerprocess% hangs..." "1" "1"
GOTO restart
) ELSE (
findstr.exe /R /C:".*%minerprocess% -pool.*-log 1 -logfile %log%.*" %bat% 2>NUL 1>&2 || (
CALL :inform "1" "false" "Ensure *%minerpath% -pool -log 1 -logfile %log%* options added to the miners command line in this order." "Ensure %minerpath% -pool -log 1 -logfile %log% options added to the miners command line in this order." "2"
findstr.exe /R /C:".*%minerprocess% -pool.*" %bat% 2>NUL 1>&2 || (
CALL :inform "1" "false" "Ensure *%minerpath% -pool* option added to the miners command line in first order." "Ensure %minerpath% -pool option added to the miners command line in first order." "2"
)
ECHO log monitoring started.
ECHO Collecting information. Please wait...
Expand Down
54 changes: 43 additions & 11 deletions Trexautorun.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pushd "%~dp0"
SETLOCAL EnableExtensions EnableDelayedExpansion
MODE CON cols=70 lines=40
shutdown.exe /A 2>NUL 1>&2
SET ver=2.1.7
SET ver=2.1.8
SET mn=Trex
SET firstrun=0
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
Expand Down Expand Up @@ -280,8 +280,8 @@ SET secondoclaunch=0
SET chatid=%chatid: =%
SET gpus=%gpus: =%
SET hashrate=%hashrate: =%
IF %tempcheck% EQU 1 SET errorslist=%errorslist% /C:".* [0-5]C .*"
IF %globaltempcheck% EQU 1 SET warningslist=/C:".*reached.*"
IF %tempcheck% EQU 1 SET errorslist=%errorslist% /C:".* [0-5]C.*"
IF %globaltempcheck% EQU 1 SET warningslist=/C:".*is overheated.*"
IF %environments% EQU 1 FOR %%a IN ("GPU_FORCE_64BIT_PTR 0" "GPU_MAX_HEAP_SIZE 100" "GPU_USE_SYNC_OBJECTS 1" "GPU_MAX_ALLOC_PERCENT 100" "GPU_SINGLE_ALLOC_PERCENT 100") DO SETX %%~a 2>NUL 1>&2 && ECHO %%~a.
IF %environments% EQU 0 FOR %%a IN ("GPU_FORCE_64BIT_PTR" "GPU_MAX_HEAP_SIZE" "GPU_USE_SYNC_OBJECTS" "GPU_MAX_ALLOC_PERCENT" "GPU_SINGLE_ALLOC_PERCENT") DO REG DELETE HKCU\Environment /F /V %%~a 2>NUL 1>&2 && ECHO %%~a successfully removed from environments.
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt1=%%A
Expand Down Expand Up @@ -409,8 +409,8 @@ IF NOT EXIST "%log%" (
CALL :inform "1" "false" "%log% is missing. Probably %minerprocess% hangs..." "1" "1"
GOTO restart
) ELSE (
findstr.exe /R /C:".*%minerprocess% -o.*-l %log%.*" %bat% 2>NUL 1>&2 || (
CALL :inform "1" "false" "Ensure *%minerpath% -o -l %log%* options added to the miners command line in this order." "Ensure %minerpath% -o -l %log% options added to the miners command line in this order." "2"
findstr.exe /R /C:".*%minerprocess% -o.*" %bat% 2>NUL 1>&2 || (
CALL :inform "1" "false" "Ensure *%minerpath% -o* option added to the miners command line in first order." "Ensure %minerpath% -o option added to the miners command line in first order." "2"
)
ECHO log monitoring started.
ECHO Collecting information. Please wait...
Expand Down Expand Up @@ -650,20 +650,52 @@ FOR /L %%A IN (!startcount!,1,!gpus!) DO (
SET curtemp=Temp:
)
SET tempdata=null
SET tempdatae=null
SET speeddata=null
FOR /F "tokens=2,4 delims=-.," %%a IN ('findstr.exe /R /C:".*GPU .*%%A:.*-.*MH/s.*" %log%') DO (
FOR /F "tokens=2,5,6,7,8 delims=-,/[]" %%a IN ('findstr.exe /R /C:"GPU .*%%A:.*-.*MH/s.*" %log%') DO (
SET speeddata=%%a
SET speeddata=!speeddata:~1!
SET tempdata=%%b
SET tempdata=!tempdata:~4,-1!
IF "!tempdata!" NEQ "null" IF !tempdata! GEQ 0 IF !tempdata! LSS 70 SET tempdata=!tempdata!
IF "!tempdata!" NEQ "null" IF !tempdata! GEQ 70 SET tempdata=*!tempdata!*
SET tempdatae=%%e
SET tempdata=!tempdata:~0,3!
SET tempdatae=!tempdatae:~2,1!
IF "!speeddata!" NEQ "null" (
IF !speeddata!==DISABLED (
SET speeddata=Disabled
SET tempdata=Disabled
) ELSE (
SET speeddata=!speeddata:~1,-6!
)
)
IF "!tempdata!" NEQ "null" IF "!tempdata!" NEQ "Disabled" (
IF !tempdata!==LHR (
IF !tempdatae!==C (
SET tempdata=%%e
SET tempdata=!tempdata:~0,-1!
) ELSE (
SET tempdata=%%d
SET tempdata=!tempdata:~2,-1!
)
) ELSE (
SET tempdata=%%b
SET tempdata=!tempdata:~-1!
IF !tempdata!==C (
SET tempdata=%%b
SET tempdata=!tempdata:~2,-1!
) ELSE (
SET tempdata=%%c
SET tempdata=!tempdata:~0,-1!
)
)
IF "!tempdata!" NEQ "null" IF !tempdata! GEQ 0 IF !tempdata! LSS 70 SET tempdata=!tempdata!
IF "!tempdata!" NEQ "null" IF !tempdata! GEQ 70 SET tempdata=*!tempdata!*
)
)
IF "!speeddata!" NEQ "null" (
IF !speeddata! EQU 0 SET /A minhashrate+=1
SET curspeed=!curspeed! G%%A !speeddata!,
)
IF "!tempdata!" NEQ "null" SET curtemp=!curtemp! G%%A !tempdata!C,
IF "!tempdata!" NEQ "null" IF "!tempdata!" NEQ "Disabled" SET curtemp=!curtemp! G%%A !tempdata!C,
IF "!tempdata!" EQU "Disabled" SET curtemp=!curtemp! G%%A !tempdata!,
IF !minhashrate! GEQ 99 GOTO passaveragecheck
IF %%A EQU !gpus! (
IF "!curspeed!" EQU "Speed:" SET curspeed=unknown
Expand Down

0 comments on commit 19411d4

Please sign in to comment.