Advertisement
zefie

HP iLO Fan Control Script

Oct 13th, 2023
786
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.47 KB | None | 0 0
  1. #!/bin/bash
  2. CMD=("ssh" "-oHostKeyAlgorithms=+ssh-rsa" "-oKexAlgorithms=diffie-hellman-group14-sha1,diffie-hellman-group1-sha1" "-oPubkeyAcceptedKeyTypes=+ssh-rsa" "-i/root/.ssh/id_ilo" "Administrator@192.168.11.7" "-C")
  3. SPEED0=100
  4. SPEED1=75
  5.  
  6. # HOT
  7. #SPEED0=255
  8. #SPEED1=175
  9.  
  10. # main fan (iLO/HD Controller/LAN/etc)
  11. ${CMD[@]} fan p 0 max ${SPEED0};
  12. ${CMD[@]} fan p 1 max ${SPEED0};
  13.  
  14. # rest of the fans
  15. for f in `seq 2 7`; do
  16.     ${CMD[@]} fan p ${f} max ${SPEED1};
  17. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement