Provides an automated fan speed control of the only one fan in HP Microserver Gen8 based on operating temperature of HDD and CPU.
You must run a modified ILO 4 with accessible fan command in order to use this script.
(see Acknowledgements section)
Login to iLO > Administration (tab) > User Administration.
Create a new user.
Remove the following (all) 5 permissions. They are not needed:
- Administer User Accounts
- Remote Console Access
- Virtual Power and Reset
- Virtual Media
- Configure iLO Settings
You must need an RSA key. Be aware that this command will overwrite your current key, if exists
ssh-keygen -t rsa -b 2048Make sure it's called id_rsa and located in $HOME/.ssh of the user used to run the service
In iLO web interface go to Administration->Security choose a user, click Authorize new Key and paste your public key
You can usually obtain it like this
cat .ssh/id_rsa.pubIf you are going to use password-based auth, then you must have sshpass installed.
For deb-based distributions run
apt install sshpassDownload repository
git clone https://github.com/fed1337/ilo4_fan_management.git
cd ilo4_fan_managementConsult comments in the config file for a setup
nano ilo4_fan_manager.confOpen systemd service file and make sure to set Environment variables.
nano ilo4_fan_manager.serviceYou can install it as a systemd service via an installation script
chmod +x install.sh
sudo ./install.shor manually
Please inspect the script code, specifically how temperatures are grep'ed. Your sensors may be called differently.
Those are HDD* and CPU* variables
Another idea is that you may want a more/less aggressive fan curve. Study how HDD_PERC and CPU_PERC variables are
set.
i.e. fan info does not provide any output
"Solution"
Only the first login can see any responses.
Reset iLO (iLO > Info > Diagnostics) each time in order to see the responses.
This is a firmware bug
It couldn't be possible to sleep at nights with this server in the same room without these talented people