You do not need to. You can use a PowerShell version from the link above
ok.
I change the path in to this
if (-not $Path) {
.\successrate.ps1 -Path c:\Programme\Storj\storage node\storagenode.log
this is the path to my logs.
when i run this on PowerShell, PowerShell open und 0,5Sec later it closeâŠ
where is my fault?!
param(
$Path
)
if (-not $Path) {
.\successrate.ps1 -Path c:\Programme\Storj\storage node\storagenode.log
} else {
$log = Get-Content $Path
}
You can download the script from the RAW tab on the GitHub and just run
.\successrate.ps1 -Path "c:\Programme\Storj\storage node\storagenode.log"
Without modification any code.
param(
$Path
)
if (-not $Path) {
$log = cmd.exe /c âdocker logs storagenode 2>&1â
} else {
$log = Get-Content $Path
}
that is the original path.
but i dont use dockerâŠ
this skrip cant find my logsâŠ
Do not modify the script please. Re-download the original version and do not touch anything in it.
Just run it with parameter -Path "C:\Program Files\Storj\Storage Node\storagenode.log"
Or give me result of the command (PowerShell):
sls "log.output" 'C:\Program Files\Storj\Storage Node\config.yaml'
PS C:\WINDOWS\system32> sls âlog.outputâ âC:\Program Files\Storj\Storage Node\config.yamlâ
C:\Program Files\Storj\Storage Node\config.yaml:83:log.output: winfile:///C:\Program Files\Storj\Storage
Node\storagenode.log
So, you need to:
- Download the script from the https://raw.githubusercontent.com/AlexeyALeonov/success_rate/master/successrate.ps1 and save it
- Open the PowerShell in the folder where you downloaded it
- Run it:
.\successrate.ps1 -Path "C:\Program Files\Storj\Storage Node\storagenode.log"
I Download the Script in th folder Downloads and save it.
Then i go on the script with the mouse, right click and start with powershellâŠ
result Nothing
PS start and close in 0,5sec
if you have discord, i can show youâŠ
Please, do not skip steps.
I do not mention the mouse anywhere in my instruction as you can see.
You must open a PowerShell and execute script from there.
If you want to create a clickable version, then you should do it other way around.
For example, you can create a shortcut for the script in the needed place, then modify that shortcut to run the script with a parameter.
The executable will be powershell.exe
, argument - full path to the script, then add -Path "C:\Program Files\Storj\Storage Node\storagenode.log"; pause
after the name of the script, so the Target field would looks like:
powershell.exe C:\Users\Phillip\Downloads\successrate.ps1 -Path "C:\Program Files\Storj\Storage Node\storagenode.log"; pause
This shortcut will be clickable
OK thx
i just try it how you write it to me at the first time.
this is the result from PS
PS C:\WINDOWS\system32> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
AusfĂŒhrungsrichtlinie Ă€ndern
Die AusfĂŒhrungsrichtlinie trĂ€gt zum Schutz vor nicht vertrauenswĂŒrdigen Skripts bei. Wenn Sie die AusfĂŒhrungsrichtlinie
Ă€ndern, sind Sie möglicherweise den im Hilfethema âabout_Execution_Policiesâ unter
âhttps:/go.microsoft.com/fwlink/?LinkID=135170â beschriebenen Sicherheitsrisiken ausgesetzt. Möchten Sie die
AusfĂŒhrungsrichtlinie Ă€ndern?
[J] Ja [A] Ja, alle [N] Nein [K] Nein, keine [H] Anhalten [?] Hilfe (Standard ist âNâ): A
PS C:\WINDOWS\system32> .\successrate.ps1 -Path âC:\Program Files\Storj\Storage Node\storagenode.logâ
.\successrate.ps1 : Die Datei âC:\WINDOWS\system32\successrate.ps1â kann nicht geladen werden. Die Datei
âC:\WINDOWS\system32\successrate.ps1â ist nicht digital signiert. Sie können dieses Skript im aktuellen System nicht
ausfĂŒhren. Weitere Informationen zum AusfĂŒhren von Skripts und Festlegen der AusfĂŒhrungsrichtlinie erhalten Sie unter
âabout_Execution_Policiesâ (https:/go.microsoft.com/fwlink/?LinkID=135170)âŠ
In Zeile:1 Zeichen:1
- .\successrate.ps1 -Path "C:\Program Files\Storj\Storage Node\storagen âŠ
-
+ CategoryInfo : Sicherheitsfehler: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess
In your case you need to open a Policy execution more wide:
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
You usually do not need to, if you cloned the repo. But with downloads it could happen.
THX it work -
sry for wasting time⊠;(
THAT WAS THE PROBLE; â ```
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
Whit this comand it work, maybe update the READ ME :smiley:
As I write before:
If you would follow the instruction it should work as designed.
I just requested only least rights. The Unrestricted
is too wide.
========== AUDIT =============
Critically failed: 0
Critical Fail Rate: 0,00%
Recoverable failed: 0
Recoverable Fail Rate: 0,00%
Successful: 56
Success Rate: 100,00%
========== DOWNLOAD ==========
Failed: 0
Fail Rate: 0,00%
Canceled: 2
Cancel Rate: 0,18%
Successful: 1101
Success Rate: 99,82%
========== UPLOAD ============
Rejected: 0
Acceptance Rate: 100,00%
---------- accepted ----------
Failed: 0
Fail Rate: 0,00%
Canceled: 17
Cancel Rate: 0,03%
Successful: 54993
Success Rate: 99,97%
========== REPAIR DOWNLOAD ===
Failed: 0
Fail Rate: 0,00%
Canceled: 0
Cancel Rate: 0,00%
Successful: 0
Success Rate: 0,00%
========== REPAIR UPLOAD =====
Failed: 0
Fail Rate: 0,00%
Canceled: 0
Cancel Rate: 0,00%
Successful: 35000
Success Rate: 100,00%
That the Result auf my Storage after 133h.
Is that good or bad?!
Doesnât matter for honestly
Since your storagenode is Online, not suspended and not disqualified - it is working fine.
The only matter - the audit and suspend scores on the web-dashboard.
In the output of the script this is AUDIT-related âmetricsâ.
This script was made for just to make Operators happy to be able to compare âscoreâ
You can post your results there: