19
19
***
20
20
1 . Copy [ watchdog.ps1] and [ actions.bat] to the desired location
21
21
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]"`
36
36
37
37
**OR** just import [Rig Utilization Monitoring.xml] task \(change UserId, schedule and arguments appropriately before use).
38
38
41
41
### Usage
42
42
***
43
43
Watchdog supports following arguments (all arguments are optional):
44
+
44
45
` watchdog.ps1 -path 'C:\Program Files\NVIDIA Corporation\NVSMI' -threshold 25 -cycleCount 3 -sleepInterval 30 -writeLog 1 `
45
46
46
47
* ** path** - path to ` nvidia-smi.exe ` executable file.
@@ -66,6 +67,7 @@ Watchdog supports following arguments (all arguments are optional):
66
67
⚠️⚠️⚠️** Warning** ⚠️⚠️⚠️
67
68
68
69
If you want to use Windows Event Log - you must register log source manually once before use with the following command:
70
+
69
71
` New-EventLog -source "Rig Monitoring" -logname Application `
70
72
71
73
0 commit comments