Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipmitool dcmi power reading #101

Open
rajil opened this issue Mar 6, 2022 · 2 comments
Open

ipmitool dcmi power reading #101

rajil opened this issue Mar 6, 2022 · 2 comments

Comments

@rajil
Copy link

rajil commented Mar 6, 2022

I couldnt find template for the power reading. For example ipmitool can be used as follows:

# ipmitool dcmi power reading

    Instantaneous power reading:                   197 Watts
    Minimum during sampling period:                175 Watts
    Maximum during sampling period:                242 Watts
    Average power reading over sample period:      190 Watts
    IPMI timestamp:                           Sun Mar  6 15:13:42 2022
    Sampling period:                          00123893 Seconds.
    Power reading state is:                   activated

Is there a way to get this information from your templates?

@hairmare
Copy link
Member

We currently use ipmi-sensors with the outofband LAN (IPMI 1.5) driver:

${IPMI_SENSORS_CMD} --driver-type=LAN \

So, unless your stack can do DCMI over LAN (using the IPMI 1.5 protocol) it won't work out of the box. I'm not sure if that exists though.

The easiest way to check is with ipmi-sensors:

# hostname/ip of ipmi
ipmiHost=""
# user
ipmiUser=""
# password
ipmiPassword=""
# `all` or something from `ipmi-sensors --list-sensor-types`
ipmiSensorTypes="all"

ipmi-sensors --driver-type=LAN \
             --hostname="${ipmiHost}" \
             --username="${ipmiUser}" \
             --password="${ipmiPassword}" \
             --privilege-level=USER \
             --sensor-types="${ipmiSensorTypes}" \
             --output-sensor-thresholds \
             --ignore-not-available-sensors \
             --comma-separated-output

If the output contains values for the dcmi power reading sensors, then creating a template might be doable with the current sensor discovery tooling.

Is DCMI an Intel thing or do SuperMicro IPMIs also support it?

@rajil
Copy link
Author

rajil commented Mar 19, 2022

It is a feature of Supermicro motherboard. Unfortunately, the dcmi power reading is not in the ipmi-sensors output for Supermicro X10DriT board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants