]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
show some system stats after installation
authorHolger Levsen <holger@layer-acht.org>
Thu, 21 Feb 2013 10:59:39 +0000 (11:59 +0100)
committerHolger Levsen <holger@layer-acht.org>
Thu, 21 Feb 2013 10:59:39 +0000 (11:59 +0100)
pxe_install.sh

index 1ddb789400966e5e5ba857c77e9ef4e2eb09a41e..a286456a129769bdda529de92015d0e7a634bdab 100755 (executable)
@@ -16,13 +16,13 @@ fi
 TARGET_HOST=$1
 TARGET_MAC=$2
 TARGET_DEV=$3
-TMPOUTPUT=$(mktemp)
 
 $(dirname $0)/pxe_riserver_setup.sh $TARGET_HOST $TARGET_MAC $TARGET_DEV install ; \
 ipmitool -H ${TARGET_HOST}-ipmi -f /etc/jenkins/$TARGET_HOST.ipmi -U ADMIN chassis power reset ; \
 sleep 90 ; \
 $(dirname $0)/pxe_riserver_setup.sh $TARGET_HOST $TARGET_MAC $TARGET_DEV localboot 
 
+# doesnt work because ipmitool too frequently segfaults
 #ipmitool -H ${TARGET_HOST}-ipmi -f /etc/jenkins/$TARGET_HOST.ipmi -U ADMIN -I lanplus sol activate < /dev/zero | tee $TMPOUTPUT &
 
 set +x
@@ -50,5 +50,12 @@ if ! $(nc -z $TARGET_HOST 22 ) ; then
 fi
 echo
 
-rm $TMPOUTPUT
+figlet $TARGET_HOST
+echo "successfully installed"
+ssh -i ~/.ssh/id_ritest $TARGET_HOST uname -a
+echo
+ssh -i ~/.ssh/id_ritest $TARGET_HOST "dpkg -l | grep profit | sort -k 50"
+echo
+ssh -i ~/.ssh/id_ritest $TARGET_HOST dpkg -l | grep develop
+