Modif functions.sh et ajout premiere ligne impitool

This commit is contained in:
2024-08-01 18:22:08 +02:00
parent 0695be1e61
commit 5c73f2d2c5

View File

@@ -20,6 +20,7 @@ function apply_user_fan_control_profile () {
function set_fan_speed () {
local SPEED=$1
local HEX_SPEED=$(convert_decimal_value_to_hexadecimal $SPEED)
ipmitool -I $IDRAC_LOGIN_STRING raw 0x30 0x30 0x01 0x00 > /dev/null
ipmitool -I $IDRAC_LOGIN_STRING raw 0x30 0x30 0x02 0xff $HEX_SPEED > /dev/null
CURRENT_FAN_CONTROL_PROFILE="User static fan control profile ($SPEED%)"
}