Merge pull request #11 from TheOddball/main

Complete grammar fix
This commit is contained in:
Jack 2022-05-03 09:35:08 +01:00 committed by GitHub
commit 05b7d7bfa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 41 deletions

View File

@ -1,5 +1,5 @@
[Unit]
Description=Fan Speed Controler using autofan.sh
Description=Fan speed controller using autofan.sh
[Service]
Restart=always

View File

@ -1,43 +1,42 @@
GNU nano 4.8 Install.sh Modified
##!/bin/bash
echo "You are about to Download/Install the required items for the HP ILO Fan control, "
echo "Do you accept that your are about to install? [yes] or [no] :"
echo "You are about to download and install the required items for HP ILO4 fan control."
echo "Do you accept? [yes] or [no] :"
read input
if [ $input = yes ] ; then
# agreement confirmed
# refresh OR create agreement file status
echo "Installing required apt packages sshpass, lm-sensors and wget"
echo "Installing required apt packages; sshpass, lm-sensors, and wget"
apt install sshpass wget lm-sensors jq -y
echo "Installed required apt packages"
cd /
echo "Downloading ILO_250 for ROM Upgrade"
echo "Downloading to / directory"
echo "Downloading ILO_250 for ROM upgrade to the / directory."
wget https://github.com/That-Guy-Jack/HP-ILO-Fan-Control/tree/main/Files/ilo_250
echo "Finished Download"
echo "Download finished!"
echo "Making autofan.service"
cd /etc/systemd/system/
wget https://raw.githubusercontent.com/That-Guy-Jack/HP-ILO-Fan-Control/main/Files/autofan.service
echo "Finished making autofan.service"
echo "Which server are you running? Dl360p 1u (1) or the DL380p 2u (2) [1] or [2] :"
echo "Which server are you running? DL360p G8 (1) or DL380p G8 (2) [1] or [2] :"
read server
if [ $server = 1 ] ; then
echo "Preping autofan.sh for DL360p "
echo "Preping autofan.sh for DL360p G8"
cd /
echo "Downloading Latest autofan.sh"
echo "Downloading latest autofan.sh"
wget https://raw.githubusercontent.com/That-Guy-Jack/HP-ILO-Fan-Control/main/Files/autofan.sh
echo "Downloaded autofan.sh Change Placeholders with correct info"
echo "Please Visit the Github Page to Follow Instructions"
echo "Downloaded autofan.sh, please change the placeholders with correct info"
echo "Please cisit the GitHub page to follow the instructions!"
echo "https://github.com/That-Guy-Jack/HP-ILO-Fan-Control"
exit 1
elif [ $server = 2 ] ; then
echo "Preping autofan.sh for DL380p "
echo "Preping autofan.sh for DL380p G8"
cd /
echo "Downloading Latest autofan.sh"
echo "Downloading latest autofan.sh"
wget https://raw.githubusercontent.com/That-Guy-Jack/HP-ILO-Fan-Control/main/Files/autofan-dl380p-g8.sh
echo "Renaming File"
echo "Renaming file"
mv autofan-dl380p-g8.sh autofan.sh
echo "Downloaded autofan.sh Change Placeholders with correct info"
echo "Please Visit the Github Page to Follow Instructions"
echo "Downloaded autofan.sh, please change the placeholders with correct info"
echo "Please cisit the GitHub page to follow the instructions!"
echo "https://github.com/That-Guy-Jack/HP-ILO-Fan-Control"
exit 1
fi

View File

@ -1,56 +1,55 @@
# HP-ILO-Fan-Control
Uses a Custom ROM for The Hp ILO adapter
Allows a Simple Fan Curve to be set using the Custom ROM by u/phoenixdev on reddit (linked below)
In this Repo all files that you need are included : )
The folder contians the unpacked ilo with the replacement rom pre copied.
Allows a Simple Fan Curve to be set using the custom ROM made by u/phoenixdev on Reddit. (linked below)
This repo contains all of the required files! :)
All you need to run is the commands below.
Currently Linux Only Essxi Support is in the works!
### Currently, the scripts are only for Linux!
ESXi Support is in the works!
## STEPS:
1. Switch Ilo into Maintainance mode. On the Dl360p Gen8 This is located near the backplane conectors on the motherboard. (images in the images file) then reboot.
1. Switch ILO into maintainance mode, then reboot. (On the DL360 G8, this is located near the backplane connectors to the motherboard.)
2. Download the install.sh script and Run it this will download all required files and pre moves installs the autofan.service and downloads the correct autofan.sh based on the input ready to be edited. if You are more advanced you can install everything sperately.
(downlaod using wget https://raw.githubusercontent.com/That-Guy-Jack/HP-ILO-Fan-Control/main/Install.sh)
2. Download the `install.sh` script and run it. This will download all required files and move them, installs the `autofan.service`, and downloads the correct `autofan.sh` based on your input ready to be edited. If you are an advanced user, you can install everything sperately.
(Download using `wget https://raw.githubusercontent.com/That-Guy-Jack/HP-ILO-Fan-Control/main/Install.sh`)
3. Then run The prep.sh in the ilo_250 folder ( cd /ilo_250 ) if this errors it may be beacuse the ilo isnt it maintainace (on non root users you may need to add sudo to this command)
3. Run the `prep.sh` in the `ilo_250` folder. If this errors it may be beacuse the ILO isnt it maintainance mode. (You may need to run this script as root.)
>
./flash_ilo4 --direct (also When Flashing the Fans may spin up to near 100% so be prepared)
./flash_ilo4 --direct (When flashing the fans spin up to 100%, so be prepared)
4. Once the flash has completed shudown your system and unplug it. Make sure to Switch the ilo back out of maintainance mode.
4. Once the flash has completed, shut down your system and unplug it. Make sure to switch ILO back out of maintainance mode.
5. Configure The autofan.sh in the / directory. Replace Your Password, Your username and Your ilo ip with the correct info. Once done save and exit.
5. Configure `autofan.sh` in the / directory. Replace your password, your username, and your ILO ip with the correct info. Once done, save and exit.
6. Run systemctl daemon-reload and systemctl start autofan to activate the scripts
6. Run `systemctl daemon-reload` and `systemctl start autofan` to activate the service.
7. Create a corontab command to start the systemd service on startup: @reboot systemctl start autofan
7. Create a crontab command to start the systemd service on startup: `@reboot systemctl start autofan`.
8. enjoy silence : ) and if thats to fast or slow edit the autofan.sh to your needs.
8. Enjoy silence! :) And if thats toO fast or slow, edit the autofan.sh to your needs.
# Tested Servers:
## 1U Servers:
DL360p Gen8
## 2U Servers:
DL380p Gen8
DL380p Gen9
## 2U Servers:
DL360p Gen8
DL80 Gen9 - Tested by @rootless4real
# Notes
- I Recomend especially for the dl360 to add a small 40mm fan to the raid controler to keep it cool
- If you have the fan script working on a diffent server thats listed in the tested server section create a issue and i'll add it.
- I recommend especially for the DL360 to add a small 40mm fan to the RAID controller to keep it cool.
- If you have the fan script working on a different server than what's listed in the tested server section, create a issue and I'll add it.
-
### To-do
- [x] Create a Script to Install and Create fan control scripts
- [x] Allow easier input of ILO pramaters
- [ ] Make ESXI friendly verstion
- [ ] Add info for the security switch
- [ ] Allow users to input ilo paramaters when using the install.sh
- [ ] Make the install.sh script have fun colours : D
- [ ] Make ESXI friendly version
- [ ] Add info about the security switch
- [ ] Allow users to input ILO paramaters when using `install.sh`
- [ ] Make the install.sh script have fun colours :D
### Links and other stuff
Original Reddit post: https://www.reddit.com/r/homelab/comments/hix44v/silence_of_the_fans_pt_2_hp_ilo_4_273_now_with/