Post
Topic
Board Mining (Altcoins)
Merits 4 from 1 user
Re: PhoenixMiner 6.2c: fastest Ethereum/Ethash miner with lowest devfee (Win/Linux)
by
andrew115200
on 19/10/2022, 16:38:02 UTC
⭐ Merited by vapourminer (4)
I can give you a snippet here that you can modify to your needs, the complete script covers much more - management of phoenix with OC params, wallets, pools, restarts and much more.
Here are the essential parts of it:
--------------------------------------------------------------
:: Init
SET SollGPUs=X Number of GPUs that is normal X
SET IntGPU=YES & ::if you do not use internal gpu set it to NO
Set Progpfad=XXPath to Phoenix-Miner DirectoryXX

:GPUCheck
Echo.
echo Checking Number of GPUs
If not exist %Progpfad%\temp md %Progpfad%\temp
%Progpfad%\phoenixminer -list>%Progpfad%\temp\tempcount.txt
FOR /F "delims=:" %%A IN ('findstr VRAM %Progpfad%\temp\tempcount.txt ^|findstr /n "^"') DO Set /a GPUcount=%%A
IF "%IntGPU%"=="NO" SET /A gpucount=%gpucount% +1
If %sollgpus% LEQ %gpucount% (Echo Number of GPUs: %gpucount% of %sollgpus% -- OK) ELSE (Goto Reboot)
Echo.
GOTO whatever you need to start miner


:Reboot
Echo Reboot requested Wrong Number of GPUs (%gpucount% of %sollgpus%)
choice /c:WR /n /m "Restart in 15 Seconds. R = Restart, W = Weiterlaufen" /t:15 /d:R
if errorlevel 2 (Goto Reboot2A) else echo Weiter gehts...


Goto whatever you need to start miner

:Reboot2A
C:\Windows\System32\shutdown.exe /g /f /t 05
Pause

I configured script for my case:

Code:
:: Init
SET SollGPUs=8
SET IntGPU=YES &
SET Progpfad=C:\prg\PhoenixMiner

:GPUCheck
echo Checking Number of GPUs
IF not exist %Progpfad%\temp md %Progpfad%\temp
%Progpfad%\phoenixminer -list>%Progpfad%\temp\tempcount.txt
FOR /F "delims=:" %%A IN ('findstr VRAM %Progpfad%\temp\tempcount.txt ^|findstr /n "^"') DO Set /a GPUcount=%%A
IF "%IntGPU%"=="NO" SET /A gpucount=%gpucount% +1
IF %sollgpus% LEQ %gpucount% (Echo Number of GPUs: %gpucount% of %sollgpus% goto runminer) ELSE (goto reboot)

:runminer
C:\prg\PhoenixMiner\PhoenixMiner.exe

:reboot
C:\Windows\System32\shutdown.exe /r /f /t 03

works perfectly, maybe it will be useful for someone with issue like mine.
thank you all for help.