Skip to content

Commit 8d6ab2a

Browse files
committedJun 7, 2018
Text indents fixed
1 parent 7e2ce26 commit 8d6ab2a

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed
 

‎README.md

+16-14
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@
1919
***
2020
1. Copy [watchdog.ps1] and [actions.bat] to the desired location
2121
2. Create new Windows Task Scheduler task with following parameters:
22-
* Run with highest privileges: `true`
23-
* Begin task: `on a schedule`
24-
* Schedule: `One-time`
25-
* Repeat task every: `(choose appropriate duration from 5 to 10 minutes)`
26-
* For a duration of `Indefinitely`
27-
* Stop task if it runs longer than: `false`
28-
* Expire: `false`
29-
* Enabled: `true`
30-
* Allow Start On Demand: `true`
31-
* Run only on AC power: `false`
32-
* Action: start a program
33-
* Action details:
34-
* Command: `powershell.exe`
35-
* Arguments: `-ExecutionPolicy Bypass "%path_from_p1%\watchdog.ps1 [optional_arguments]"`
22+
* Run with highest privileges: `true`
23+
* Begin task: `on a schedule`
24+
* Schedule: `One-time`
25+
* Repeat task every: `(choose appropriate duration from 5 to 10 minutes)`
26+
* For a duration of `Indefinitely`
27+
* Stop task if it runs longer than: `false`
28+
* Expire: `false`
29+
* Enabled: `true`
30+
* Allow Start On Demand: `true`
31+
* Run only on AC power: `false`
32+
* Action: start a program
33+
* Action details:
34+
* Command: `powershell.exe`
35+
* Arguments: `-ExecutionPolicy Bypass "%path_from_p1%\watchdog.ps1 [optional_arguments]"`
3636

3737
**OR** just import [Rig Utilization Monitoring.xml] task \(change UserId, schedule and arguments appropriately before use).
3838

@@ -41,6 +41,7 @@
4141
### Usage
4242
***
4343
Watchdog supports following arguments (all arguments are optional):
44+
4445
`watchdog.ps1 -path 'C:\Program Files\NVIDIA Corporation\NVSMI' -threshold 25 -cycleCount 3 -sleepInterval 30 -writeLog 1`
4546

4647
* **path** - path to `nvidia-smi.exe` executable file.
@@ -66,6 +67,7 @@ Watchdog supports following arguments (all arguments are optional):
6667
⚠️⚠️⚠️**Warning**⚠️⚠️⚠️
6768

6869
If you want to use Windows Event Log - you must register log source manually once before use with the following command:
70+
6971
`New-EventLog -source "Rig Monitoring" -logname Application`
7072

7173

‎watchdog.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
param (
77
[String]$_path = "\NVIDIA Corporation\NVSMI\",
8-
[String]$path = (Get-ChildItem -path Env:ProgramFiles).value + $_path,
8+
[String]$path = (Get-ChildItem -path Env:ProgramFiles).value + $_path,
99
[Int]$threshold = 25,
1010
[Int]$cycleCount = 3,
1111
[Int]$sleepInterval = 30,

0 commit comments

Comments
 (0)
Please sign in to comment.