#!/bin/bash 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") 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