From a08f282fe276a112386813cc7e860a7ff91ca2cb Mon Sep 17 00:00:00 2001 From: Simon Brezovnik <32946493+brezlord@users.noreply.github.com> Date: Mon, 26 Jun 2023 08:42:22 +0800 Subject: [PATCH] Update fan_control.sh Add 10% speed for lower inlet temps --- fan_control.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fan_control.sh b/fan_control.sh index 4fc554b..1aacb22 100644 --- a/fan_control.sh +++ b/fan_control.sh @@ -49,8 +49,14 @@ else fi # 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 [ "$T" -ge 0 ] && [ "$T" -le 19 ] +# If inlet temperature between 1 and 14deg C then set fans to 10%. +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 echo "--> Setting fan speed to 15%" ipmitool -I lanplus -H $IDRAC_IP -U $IDRAC_USER -P $IDRAC_PASSWORD raw 0x30 0x30 0x02 0xff $SPEED15