File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,14 +64,21 @@ Set it up once:
6464 sc.exe start Scaphandre
6565 ```
6666
67- 4 . Verify:
67+ 4 . Verify — ** in PowerShell** (the ` & ` call operator and ` Invoke-WebRequest ` are
68+ PowerShell; don't paste these into ` cmd.exe ` ), one per line:
6869
69- ```
70- driverquery /v | findstr capha
70+ ``` powershell
71+ driverquery /v | Select-String capha
7172 & 'C:\Program Files (x86)\scaphandre\scaphandre.exe' stdout
72- powershell -Command " (Invoke-WebRequest http://127.0.0.1:8080/metrics).Content | Select-String scaph_socket_power"
73+ (Invoke-WebRequest http://127.0.0.1:8080/metrics -UseBasicParsing ).Content | Select-String scaph_socket_power
7374 ```
7475
76+ The cmd.exe equivalents are ` driverquery /v | findstr /i capha ` ,
77+ ` "C:\Program Files (x86)\scaphandre\scaphandre.exe" stdout ` , and
78+ ` curl http://127.0.0.1:8080/metrics | findstr scaph_socket_power ` . If step 2
79+ prints ` Failed to open device : HANDLE(-1) ` , the driver isn't loaded — do the
80+ test-signing step above and reboot.
81+
7582Heimdall scrapes ` http://127.0.0.1:8080/metrics ` and reports the summed per-socket
7683power (` scaph_socket_power_microwatts ` ) as ` power.cpu ` — pure Go, no cgo. If
7784Scaphandre listens elsewhere, point Heimdall at it with ` HEIMDALL_SCAPHANDRE_URL ` ;
You can’t perform that action at this time.
0 commit comments