Skip to content

Conversation

jacobweinstock
Copy link
Member

What does this PR implement/change/remove?

Some implementations of ipmi, Dell for example, will error out if a machine is already off and an ipmitool power off command is issued. Error is Command not supported in present state. Checking the power state before issuing the power off command is also done in other ipmitool commands.

Checklist

  • Tests added
  • Similar commits squashed

The HW vendor this change applies to (if applicable)

The HW model number, product name this change applies to (if applicable)

The BMC firmware and/or BIOS versions that this change applies to (if applicable)

What version of tooling - vendor specific or opensource does this change depend on (if applicable)

Description for changelog/release notes

ipmitool: check power state before issuing a power off command.

Some implementations of ipmi, Dell for example, will
error out if a machine is already off and an ipmitool
power off command is issued.
Error is "Command not supported in present state".
Checking the power state before issuing the power off
command is also done in other ipmitool commands.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
@mergify mergify bot merged commit 80c6fe5 into bmc-toolbox:main Mar 31, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants