This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:bkrishe3:portfolio:hpc0project1 [2014/04/22 16:55] – [Documentation] bkrishe3 | user:bkrishe3:portfolio:hpc0project1 [2014/04/22 17:24] (current) – [Documentation] bkrishe3 | ||
---|---|---|---|
Line 50: | Line 50: | ||
* scp $FILE to both vms | * scp $FILE to both vms | ||
* now append this file to authorized_keys on both vms | * now append this file to authorized_keys on both vms | ||
+ | < | ||
+ | |||
+ | * Script itself isn't very long but it gets the job done | ||
+ | <cli> | ||
+ | #!/bin/bash | ||
+ | |||
+ | VM1=' | ||
+ | VM2=' | ||
+ | |||
+ | echo " | ||
+ | echo " | ||
+ | ssh root@$VM1 " | ||
+ | echo -e " | ||
+ | echo "Free Space" | ||
+ | ssh root@$VM1 "df -h | grep rootfs" | ||
+ | echo -e " | ||
+ | |||
+ | echo " | ||
+ | echo " | ||
+ | ssh root@$VM2 " | ||
+ | echo -e " | ||
+ | echo "Free Space" | ||
+ | ssh root@$VM2 "df -h | grep rootfs" | ||
+ | </ | ||
+ |