ipmitool.py command not found

In this troubleshooting guide we learn how to fix ipmitool.py command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

ipmitool.py: command not found

or when using sudo you get the following error message

sudo: ipmitool.py: command not found

Solutions to ipmitool.py: command not found

How To Fix ipmitool.py: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ipmitool.py is provided by python3-pyipmi package.

python3-pyipmi is:

The Intelligent Platform Management Interface (IPMI) is a set of computer interface specifications for an autonomous computer subsystem that provides management and monitoring capabilities independently of the host system’s CPU, firmware (BIOS or UEFI) and operating system. The python-ipmi library provides an application programming interface (API) for using IPMI protocol within the Python environment. This library supports IPMI version 2.0 as described in the IPMI standard.

There are two ways to communicate with a server using IPMI interface:

  1. IPMI over Local Area Network (LAN) using Remote Management Control Protocol (RMCP) packet datagrams
  2. Intelligent Platform Management Bus (IPMB) is an I2C-based bus

Features:

  • native RMCP interface (using Python libraries only)
  • legacy RMCP interface (requires ipmitool to be installed)
  • IPMB interface (using the Total Phase Aardvark)

To fix this problem, we can install more using the command below.

sudo apt-get -y install python3-pyipmi

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install python3-pyipmi.

sudo apt -y install python3-pyipmi

Or if you have aptitude installed you can use the following command.

sudo aptitude install python3-pyipmi

Summary

In this tutorial we learn how to fix ipmitool.py command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.