Skip to main content

IPMI

This is a wrapper to conveniently use ipmi.

Config

Config is expected to be at /opt/ipmi-conf.json within the container. You could inherit from this image or overload it using Kubernetes config maps.

Usage

We recommend setting aliases for ipmi and ipmitool to be executed within the container

alias ipmitool='podman run -it --privileged -v /dev/:/dev/ --rm a_registry/ipmitool'
alias ipmi='podman run -it --privileged -v /dev/:/dev/ --entrypoint=/bin/ipmi --rm a_registry/ipmitool'
Usage: ipmi"
-h, --help Display usage instructions"
-r, --restart Cycle server with given name"
-x, --reset Reset server with given name"
-s, --sol Start SOl for server with given name"
-p, --power Query power state for server with given name"
-d, --down Stop server with given name"
-u, --up Start server with given name"

ipmitool is also available within the container and can be used accordingly.

Examples

  1. built-in ipmi command
# hard reboot server
ipmi -x example
# power up server
ipmi -u example
  1. standard ipmitool command
# set bootdevice to pxe
ipmitool -I lanplus -H 1.2.3.4 -U admin -P adminpassword chassis bootdev pxe

# graceful power cycle
ipmitool -I lanplus -H 1.2.3.4 -U admin -P adminpassword chassis power cycle