zefie icon

HP iLO Fan Control Script

zefie | PRO | 10/13/23 04:18:51 PM UTC | 0 ⭐ | 1261 👁️ | Never ⏰ | []
Bash |

470 B

|

None

|

0 👍

/

0 👎

#!/bin/bash
CMD=("ssh" "-oHostKeyAlgorithms=+ssh-rsa" "-oKexAlgorithms=diffie-hellman-group14-sha1,diffie-hellman-group1-sha1" "-oPubkeyAcceptedKeyTypes=+ssh-rsa" "-i/root/.ssh/id_ilo" "[email protected]" "-C")
SPEED0=100
SPEED1=75
 
# HOT
#SPEED0=255
#SPEED1=175
 
# main fan (iLO/HD Controller/LAN/etc)
${CMD[@]} fan p 0 max ${SPEED0};
${CMD[@]} fan p 1 max ${SPEED0};
 
# rest of the fans
for f in `seq 2 7`; do
    ${CMD[@]} fan p ${f} max ${SPEED1};
done

Comments