Last active
March 27, 2025 05:32
-
-
Save clemone210/3c3351a8411182989be96dcf91751aee to your computer and use it in GitHub Desktop.
Script to set the fan speed on HP Server trough iLO firmware
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Variables | |
ilo_user="#" # Replace with your iLO username | |
ilo_pass="#" # Replace with your iLO password | |
ilo_host="#" # Replace with your iLO hostname or IP address | |
# Options to enable older key exchange and host key methods | |
ssh_options="-o KexAlgorithms=diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 -o HostKeyAlgorithms=ssh-rsa,ssh-dss -o StrictHostKeyChecking=no" | |
# Loop through the sensor numbers and send the command | |
for sensor in {01..46} | |
do | |
#echo "Setting fan PID $sensor to 1600 lo" | |
# SSH into iLO and send the command | |
sshpass -p $ilo_pass ssh $ssh_options $ilo_user@$ilo_host "fan pid $sensor lo 1600" | |
done | |
echo "All commands sent." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The last version this works was 2.77 I believe.
Indeed you need to flash a modified version of iLO.
Here you can find additional information/resources:
https://www.reddit.com/r/homelab/comments/sx3ldo/hp_ilo4_v277_unlocked_access_to_fan_controls/