User Tools

Site Tools


user:bkrishe3:portfolio:hpc0project1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
user:bkrishe3:portfolio:hpc0project1 [2014/04/22 17:03] – [Documentation] bkrishe3user: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
 <cli>root@vm-###:~/.ssh# cat $FILE >> authorized_keys </cli> <cli>root@vm-###:~/.ssh# cat $FILE >> authorized_keys </cli>
 +
 +  * Script itself isn't very long but it gets the job done
 +<cli>
 +#!/bin/bash
 +
 +VM1='vm-102.projects.lan'
 +VM2='vm-103.projects.lan'
 +
 +echo "VM-102"
 +echo "Uptime"
 +ssh root@$VM1 "uptime"
 +echo -e "\n"
 +echo "Free Space"
 +ssh root@$VM1 "df -h | grep rootfs"
 +echo -e "\n"
 +
 +echo "VM-103"
 +echo "Uptime"
 +ssh root@$VM2 "uptime"
 +echo -e "\n"
 +echo "Free Space"
 +ssh root@$VM2 "df -h | grep rootfs"
 +</cli>
 +
user/bkrishe3/portfolio/hpc0project1.1398186226.txt.gz · Last modified: 2014/04/22 17:03 by bkrishe3