This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
user:bkrishe3:portfolio:hpc0project1 [2014/04/22 17:03] – [Documentation] bkrishe3 | user:bkrishe3:portfolio:hpc0project1 [2014/04/22 17:24] (current) – [Documentation] bkrishe3 | ||
---|---|---|---|
Line 51: | Line 51: | ||
* 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" | ||
+ | </ | ||
+ |