Skip to content

Instantly share code, notes, and snippets.

@404john
Last active December 24, 2015 15:28
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 404john/6819976 to your computer and use it in GitHub Desktop.
Save 404john/6819976 to your computer and use it in GitHub Desktop.
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