Update fan_control.sh

Add 10% speed for lower inlet temps
This commit is contained in:
Simon Brezovnik 2023-06-26 08:42:22 +08:00 committed by GitHub
parent ea0ff2990a
commit a08f282fe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,8 +49,14 @@ else
fi fi
# Set fan speed dependant on ambient temperature if inlet temperaturte is below 35deg C. # Set fan speed dependant on ambient temperature if inlet temperaturte is below 35deg C.
# If inlet temperature between 0 and 19deg C then set fans to 15%. # If inlet temperature between 1 and 14deg C then set fans to 10%.
if [ "$T" -ge 0 ] && [ "$T" -le 19 ] if [ "$T" -ge 1 ] && [ "$T" -le 14 ]
then
echo "--> Setting fan speed to 10%"
ipmitool -I lanplus -H $IDRAC_IP -U $IDRAC_USER -P $IDRAC_PASSWORD raw 0x30 0x30 0x02 0xff $SPEED10
# If inlet temperature between 15 and 19deg C then set fans to 15%
elif [ "$T" -ge 15 ] && [ "$T" -le 19 ]
then then
echo "--> Setting fan speed to 15%" echo "--> Setting fan speed to 15%"
ipmitool -I lanplus -H $IDRAC_IP -U $IDRAC_USER -P $IDRAC_PASSWORD raw 0x30 0x30 0x02 0xff $SPEED15 ipmitool -I lanplus -H $IDRAC_IP -U $IDRAC_USER -P $IDRAC_PASSWORD raw 0x30 0x30 0x02 0xff $SPEED15