Just FYI, this functionality has been merged into the new tashi-client.py. - Michael
-----Original Message----- From: Pillai, Padmanabhan S [mailto:[email protected]] Sent: Tuesday, January 13, 2009 4:18 PM To: [email protected] Subject: Useful scripts take two Hello, Since attachments seem to be filtered, here the scripts for launch_many and kill_by_name as inlined text. Please do note the hardcoded paths that work for the Intel Research cluster. - Babu ============== launch_many.sh ============== #!/bin/bash cd /usr/local/tashi export PYTHONPATH=`pwd`/src export TASHI_CM_HOST=merkabah if [ $# -ne 4 ] then echo "Usage: `basename $0` image_name machine_type quantity machine_name_base" exit 1 fi image=$1 mach_type=$2 num=$3 base=$4 for i in `seq -w 00 $(($num-1))` do ./scripts/create $base$i $mach_type $image False done ================== kill_by_name.sh ================== #!/bin/bash cd /usr/local/tashi export PYTHONPATH=`pwd`/src export TASHI_CM_HOST=merkabah if [ $# -lt 1 ] then echo "Usage: `basename $0` machine_name [...]" exit 1 fi machines=`bin/getInstances | grep -E name\:\|id\: | cut -d\: -f 2` for i in $@ do deletethis=false for j in $machines do if [ $deletethis = true ] then echo "Killing VM id " $j bin/destroyVm $j deletethis=false fi if [ $i = $j ] then echo "Found VM named " $i deletethis=true fi done done
