mirror of
https://github.com/tigerblue77/Dell_iDRAC_fan_controller_Docker.git
synced 2025-10-23 04:51:57 +00:00
7c74e7870e73b2da8c901a68a3836e2c186e745b
Dell iDRAC fan controller Docker image
https://hub.docker.com/repository/docker/tigerblue77/dell_idrac_fan_controller
Table of Contents
Container console log example
Prerequisites
To access iDRAC over LAN (not needed in "local" mode) :
- Log into your iDRAC web console
- In the left side menu, expand "iDRAC settings", click "Network" then click "IPMI Settings" link at the top of the web page.
- Check the "Enable IPMI over LAN" checkbox then click "Apply" button.
- Test access to IPMI over LAN running the following commands :
apt -y install ipmitool
ipmitool -I lanplus \
-H <iDRAC IP address> \
-U <iDRAC username> \
-P <iDRAC password> \
sdr elist all
Usage
- with local iDRAC:
docker run -d \
--name Dell_iDRAC_fan_controller \
--restart=unless-stopped \
-e IDRAC_HOST=local \
-e FAN_SPEED=<decimal or hexadecimal fan speed> \
-e CPU_TEMPERATURE_TRESHOLD=<decimal temperature treshold> \
-e CHECK_INTERVAL=<seconds between each check> \
--device=/dev/ipmi0:/dev/ipmi0:rw \
tigerblue77/dell_idrac_fan_controller:latest
- with LAN iDRAC:
docker run -d \
--name Dell_iDRAC_fan_controller \
--restart=unless-stopped \
-e IDRAC_HOST=<iDRAC IP address> \
-e IDRAC_USERNAME=<iDRAC username> \
-e IDRAC_PASSWORD=<iDRAC password> \
-e FAN_SPEED=<decimal or hexadecimal fan speed> \
-e CPU_TEMPERATURE_TRESHOLD=<decimal temperature treshold> \
-e CHECK_INTERVAL=<seconds between each check> \
tigerblue77/dell_idrac_fan_controller:latest
docker-compose.yml
examples:
- to use with local iDRAC:
version: '3'
services:
Dell_iDRAC_fan_controller:
image: tigerblue77/dell_idrac_fan_controller:latest
container_name: Dell_iDRAC_fan_controller
restart: unless-stopped
environment:
- IDRAC_HOST=local
- FAN_SPEED=<decimal or hexadecimal fan speed>
- CPU_TEMPERATURE_TRESHOLD=<decimal temperature treshold>
- CHECK_INTERVAL=<seconds between each check>
devices:
- /dev/ipmi0:/dev/ipmi0:rw
- to use with LAN iDRAC:
version: '3'
services:
Dell_iDRAC_fan_controller:
image: tigerblue77/dell_idrac_fan_controller:latest
container_name: Dell_iDRAC_fan_controller
restart: unless-stopped
environment:
- IDRAC_HOST=<iDRAC IP address>
- IDRAC_USERNAME=<iDRAC username>
- IDRAC_PASSWORD=<iDRAC password>
- FAN_SPEED=<decimal or hexadecimal fan speed>
- CPU_TEMPERATURE_TRESHOLD=<decimal temperature treshold>
- CHECK_INTERVAL=<seconds between each check>
Parameters
All parameters are optional as they have default values (including default iDRAC username and password).
IDRAC_HOST
parameter can be set to "local" or to your distant iDRAC's IP address. Default value is "local".IDRAC_USERNAME
parameter is only necessary if you're adressing a distant iDRAC. Default value is "root".IDRAC_PASSWORD
parameter is only necessary if you're adressing a distant iDRAC. Default value is "calvin".FAN_SPEED
parameter can be set as a decimal (from 0 to 100%) or hexadecimaladecimal value (from 0x00 to 0x64) you want to set the fans to. Default value is 5(%).CPU_TEMPERATURE_TRESHOLD
parameter is the T°junction (junction temperature) threshold beyond which the Dell fan mode defined in your BIOS will become active again (to protect the server hardware against overheat). Default value is 50(°C).CHECK_INTERVAL
parameter is the time (in seconds) between each temperature check and potential profile change. Default value is 60(s).
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Description
Languages
Shell
94%
Dockerfile
6%