ledctl command not found

In this troubleshooting guide we learn how to fix ledctl command not found error message

Introduction

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

ledctl: command not found

or when using sudo you get the following error message

sudo: ledctl: command not found

Solutions to ledctl: command not found

How To Fix ledctl: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ledctl is provided by ledmon package.

ledmon is:

ledmon and ledctl are userspace tools designed to control storage enclosure LEDs. The user must have root privileges to use these tools.

These tools use the SGPIO and SES-2 protocols to monitor and control LEDs. They been verified to work with Intel(R) storage controllers (i.e. the Intel(R) AHCI controller) and have not been tested with storage controllers of other vendors (especially SAS/SCSI controllers).

For backplane enclosures attached to ISCI controllers, support is limited to Intel(R) Intelligent Backplanes.

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

sudo apt-get -y install ledmon

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

You can also use apt command to install ledmon.

sudo apt -y install ledmon

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

sudo aptitude install ledmon

Summary

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