Update fan_control.sh

This commit is contained in:
brezlord 2020-09-04 13:59:12 +08:00 committed by GitHub
parent 1dbd1c63cd
commit e8bb9d229d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
# #
# https://github.com/brezlord/iDRAC7_fan_control
# A simple script to control fan speeds on Dell generation 12 PowerEdge servers. # A simple script to control fan speeds on Dell generation 12 PowerEdge servers.
# If the inlet temperature is above 35deg C enable iDRAC dynamic control and exit program. # If the inlet temperature is above 35deg C enable iDRAC dynamic control and exit program.
# If inlet temp is below 35deg C set fan control to manual and set fan speed to predetermined value. # If inlet temp is below 35deg C set fan control to manual and set fan speed to predetermined value.
@ -70,4 +71,4 @@ elif [ "$T" -ge 30 ] && [ "$T" -le 34 ]
then then
echo "--> Setting fan speed to 30%" echo "--> Setting fan speed to 30%"
ipmitool -I lanplus -H $IDRAC_IP -U $IDRAC_USER -P $IDRAC_PASSWORD raw 0x30 0x30 0x02 0xff $SPEED30 ipmitool -I lanplus -H $IDRAC_IP -U $IDRAC_USER -P $IDRAC_PASSWORD raw 0x30 0x30 0x02 0xff $SPEED30
fi fi