Created
November 8, 2021 15:26
-
-
Save wmantly/92e32bad66dc1c27257ec7b21b2e102c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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