ipmitool dcmi power reading
v1.0.0
Parce que vous vous demandez "comment puis-je obtenir mes numéros de consommation d'énergie"?
Liens Internet:
Vous semblez donc avoir deux options:
J'ai utilisé la méthode RACADM pendant des années, et je trouve cela lent et parfois cela ne fonctionne pas car une session IDRAC est ouverte. Ensuite, j'ai utilisé IPMitool et il a fait du bien, mais j'avais une sortie de texte dont j'avais besoin pour analyser.
J'ai donc écrit le même outil avec la même sortie de texte et cela a fonctionné. Le code C d'origine peut être trouvé ici: ipmitool 1.8.19
Un merci spécial à la bibliothèque IPMI-RS qui a rendu cela possible.
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 }