badfish
badfish copied to clipboard
Using --get-power-consumed against NVidia not working
I'm not sure if redfish on NVidia exposes what is needed to make this flag work. The output I see is:
# /usr/bin/python3 /usr/bin/badfish -u <user> -p <password> --host <bmc hostname / IP of Nvidia> -v --get-power-consumed --output yaml
Traceback (most recent call last):
File "/usr/bin/badfish", line 33, in <module>
sys.exit(load_entry_point('badfish==1.0.2', 'console_scripts', 'badfish')())
File "/usr/lib/python3.9/site-packages/badfish/main.py", line 2705, in main
_host, result = loop.run_until_complete(
File "/usr/lib64/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/usr/lib/python3.9/site-packages/badfish/main.py", line 2304, in execute_badfish
await badfish.get_power_consumed_watts()
File "/usr/lib/python3.9/site-packages/badfish/main.py", line 653, in get_power_consumed_watts
cwc = data["PowerControl"][0]["PowerConsumedWatts"]
KeyError: 'PowerConsumedWatts'
Msg me for access to test against NVidia test host.