Last active
December 24, 2015 15:28
-
-
Save 404john/6819976 to your computer and use it in GitHub Desktop.
This file contains 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
nano reboot.sh | |
sshpass -f /password.txt ssh cisco@172.20.1.15 reboot.sh | |
sleep 240 | |
sshpass -f /password.txt ssh cisco@172.20.1.9 reboot.sh | |
sleep 240 | |
sshpass -f /password.txt ssh cisco@172.20.1.17 reboot.sh | |
sleep 240 | |
sshpass -f /password.txt ssh cisco@172.20.1.16 reboot.sh | |
sleep 240 | |
sshpass -f /password.txt ssh cisco@172.20.1.8 reboot.sh | |
sleep 240 | |
echo | |
echo | |
echo 172.20.1.15 3rd Floor Closet | |
echo | |
sshpass -f /password.txt ssh cisco@172.20.1.15 uptime.sh | |
echo | |
echo | |
echo | |
echo 172.20.1.9 1st Floor Datacenter | |
echo | |
sshpass -f /password.txt ssh cisco@172.20.1.9 uptime.sh | |
echo | |
echo | |
echo | |
echo 172.20.1.17 2st Floor Janitor Closet | |
echo | |
sshpass -f /password.txt ssh cisco@172.20.1.17 uptime.sh | |
echo | |
echo | |
echo | |
echo 172.20.1.16 1st Floor Excersie Room | |
echo | |
sshpass -f /password.txt ssh cisco@172.20.1.16 uptime.sh | |
echo | |
echo | |
echo | |
echo 172.20.1.8 2nd Floor File Room | |
echo | |
sshpass -f /password.txt ssh cisco@172.20.1.8 uptime.sh | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment