ipmitool dcmi power reading
v1.0.0
Weil Sie sich fragen: "Wie bekomme ich meine Stromverbrauchszahlen"?
Internetlinks:
Sie scheinen also zwei Optionen zu haben:
Ich habe die RACADM -Methode jahrelang verwendet und finde sie langsam und manchmal funktioniert sie nicht, weil eine IDRAC -Sitzung offen ist. Dann benutzte ich ipmitool und es tat großartig, hatte aber eine Textausgabe, die ich analysieren musste.
Also habe ich zum ersten Mal das gleiche Tool mit demselben Textausgang geschrieben und es hat funktioniert. Der ursprüngliche C -Code finden Sie hier: ipmitool 1.8.19
Besonderer Dank geht an die Bibliotheks-IPMI-RS, die dies ermöglicht hat.
A tool to fetch the power reading with ipmi dcmi
Usage: ipmitool-dcmi-power-reading [OPTIONS]
Options:
-c, --connection-uri <CONNECTION_URI>
The connection URI to use [default: file:///dev/ipmi0]
--timeout-ms <TIMEOUT_MS>
How many milliseconds to wait before timing out while waiting for a response [default: 2000]
--format <FORMAT>
The format to output [default: text] [possible values: text, json]
-h, --help
Print help
-V, --version
Print version
Instantaneous power reading : 212 Watts
Minimum during sampling period : 2 Watts
Maximum during sampling period : 468 Watts
Average power reading over sample period : 184 Watts
IPMI timestamp : 2024-05-05 14:17:17 UTC
Sampling period : 1000 Milliseconds
Power reading state is : activated
{ "grp_id" : 220 , "curr_pwr" : 209 , "min_sample" : 2 , "max_sample" : 468 , "avg_pwr" : 184 , "time_stamp" : 1714918638 , "sample" : 1000 , "state" : 64 }