Sample Header Ad - 728x90

fancontrol(1) and ipmi

2 votes
1 answer
220 views
My server supports IPMI, so I can run a script like this: ~~~ fanspeed() { # 0 C => 10, 55 C => 10, 65 C => 100 sensors -j | jq '[.[]["temp1"]["temp1_input"]] | (max-55)*(100/(65-55)) | if . 100 then 100 else .|floor end end'; } autofan() { setspeed() { ipmitool -I lanplus -H drac -U root -P password raw 0x30 0x30 0x02 0xff $@ } while true; do fanspeed=fanspeed printf "$fanspeed "$(setspeed $fanspeed) sleep 1 done } ~~~ This keeps the CPU temp 55 C. But this sounds like a job for fancontrol. Can fancontrol use IPMI to control the fan?
Asked by Ole Tange (37348 rep)
Oct 16, 2020, 04:25 PM
Last activity: Dec 18, 2022, 04:07 AM