Skip to content

Instantly share code, notes, and snippets.

@wmantly
Created November 8, 2021 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wmantly/92e32bad66dc1c27257ec7b21b2e102c to your computer and use it in GitHub Desktop.
Save wmantly/92e32bad66dc1c27257ec7b21b2e102c to your computer and use it in GitHub Desktop.
#/bin/bash
PASSWORD='ilo password'
USERNAME="william"
ILOIP="192.168.1.45"
SPEED="100"
sshpass -p "$PASSWORD" ssh $USERNAME@$ILOIP -o KexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc "fan p 0 max $SPEED"
sshpass -p "$PASSWORD" ssh $USERNAME@$ILOIP -o KexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc "fan p 1 max $SPEED"
sshpass -p "$PASSWORD" ssh $USERNAME@$ILOIP -o KexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc "fan p 2 max $SPEED"
sshpass -p "$PASSWORD" ssh $USERNAME@$ILOIP -o KexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc "fan p 3 max $SPEED"
sshpass -p "$PASSWORD" ssh $USERNAME@$ILOIP -o KexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc "fan p 4 max $SPEED"
sshpass -p "$PASSWORD" ssh $USERNAME@$ILOIP -o KexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc "fan p 5 max $SPEED"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment