cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject [2/3] Removing the obsolete scripts directory from agent-simulator
Date Thu, 02 Aug 2012 14:15:19 GMT
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/guava/__old__/stress2.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/guava/__old__/stress2.sh b/agent-simulator/scripts/guava/__old__/stress2.sh
deleted file mode 100755
index 5e2b705..0000000
--- a/agent-simulator/scripts/guava/__old__/stress2.sh
+++ /dev/null
@@ -1,127 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# Setup Stress. Destroy and Deploy Virtual Machines on 
-# Guava like environment
-#Environment
-#1. 1 host per cluster
-
-# Create 300 Accounts
-# Deploy 300 VMs
-# Destroy 300 VMs
-# Repeat
-
-
-usage() {
-  printf "Setup Stress\nUsage: %s: -h management-server -z zoneid [-d delay] [-t templateid] -s service-offering-id [-n number of accounts]\n" $(basename $0) >&2
-}
-
-create_account() {
-    seq=$1
-    account_query="GET	http://$host/client/?command=createAccount&accounttype=0&email=simulator%40simulator.com&username=$account_prefix$seq&firstname=first$seq&lastname=last$seq&password=5f4dcc3b5aa765d61d8327deb882cf99&account=$account_prefix$seq&domainid=1	HTTP/1.1\n\n"
-    echo -e $account_query | nc -v -q 120 $host 8096
-}
-
-stress() {
-    #Deploy 300 VMs in these accounts
-    for ((i=1;i<=$numberofaccounts;i++))
-    do
-        out=$(./deployVirtualMachine.sh -h $host -z $zoneid -t $template -s $service -a $account_prefix$i)
-        id=$(echo $out | sed 's/\(.*<id>\)\([0-9]*\)\(.*\)/\2/g')
-        echo "deployed vm with id: " $id
-        VmArray[$i]=$id
-    done
-    sleep $delay
-    
-    rindex=$(($RANDOM%$numberofaccounts))
-    #Stop/Start 300 VMs at random
-    for ((i=1;i<=$numberofaccounts;i++))
-    do
-	    ./stopVirtualMachine.sh -h $host -i ${VmArray:$rindex}
-        rindex=$(($RANDOM%$numberofaccounts))
-	    echo "stopped vm with id: " ${VmArray:$rindex}
-	    
-   	    ./startVirtualMachine.sh -h $host -i ${VmArray:$rindex}
-        rindex=$(($RANDOM%$numberofaccounts))
-	    echo "started vm with id: " ${VmArray:$rindex}
-    done
-    sleep $delay
-}
-
-#options
-hflag=1
-zflag=
-dflag=1
-tflag=1
-sflag=
-nflag=1
-
-
-declare -a VmArray
-host="127.0.0.1" #default localhost
-zoneid=
-delay=300 #default 5 minutes
-template=2 #default centos
-service=
-account_prefix="USER"
-numberofaccounts=300
-
-while getopts 'h:z:d:t:s:n:' OPTION
-do
- case $OPTION in
-  h)	hflag=1
-        host="$OPTARG"
-        ;;
-  z)    zflag=1
-        zoneid="$OPTARG"
-        ;;    
-  d)    dflag=1
-        delay="$OPTARG"
-        ;;
-  t)    tflag=1
-        template="$OPTARG"
-        ;;
-  s)    sflag=1
-        service="$OPTARG"
-        ;;
-  n)    nflag=1
-        numberofaccounts="$OPTARG"
-        ;; 
-  ?)	usage
-		exit 2
-		;;
-  esac
-done
-
-if [ $hflag$zflag$dflag$tflag$sflag$nflag != "111111" ]
-then
- usage
- exit 2
-fi
-
-#Create 300 Accounts
-#for ((i=1;i<=$numberofaccounts;i++))
-#do
-#    create_account $i
-#done
-
-for i in {1..5}
-do
-    #Do the stress test
-    stress
-done

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/guava/setup.py
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/guava/setup.py b/agent-simulator/scripts/guava/setup.py
deleted file mode 100644
index 76d1199..0000000
--- a/agent-simulator/scripts/guava/setup.py
+++ /dev/null
@@ -1,147 +0,0 @@
-#!/usr/bin/env python
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-'''
-# guava uses nfs storage, before setting up make sure
-#     * optionally turn off stats collectors
-#     * expunge.delay and expunge.interval are 60s
-'''
-
-from optparse import OptionParser
-from configGenerator import *
-import random
-
-
-def getGlobalSettings():
-    global_settings = {'expunge.delay': '60',
-                       'expunge.interval': '60',
-                       'expunge.workers': '3',
-                       'workers': '10',
-                       'use.user.concentrated.pod.allocation': 'true',
-                       'vm.allocation.algorithm': 'random',
-                       'vm.op.wait.interval': '5',
-                       'guest.domain.suffix': 'guava.simulator',
-                       'instance.name': 'TEST',
-                       'direct.agent.load.size': '1000',
-                       'default.page.size': '10000',
-                       'linkLocalIp.nums': '10',
-                       'check.pod.cidrs': 'false',
-                      }
-    for k, v in global_settings.iteritems():
-        cfg = configuration()
-        cfg.name = k
-        cfg.value = v
-        yield cfg
-
-
-def describeGuavaResources(dbnode='localhost', mshost='localhost'):
-    zs = cloudstackConfiguration()
-    numberofpods = 1
-
-    clustersPerPod = 100
-    hostsPerCluster = 10
-
-    z = zone()
-    z.dns1 = '4.2.2.2'
-    z.dns2 = '192.168.110.254'
-    z.internaldns1 = '10.91.28.6'
-    z.internaldns2 = '192.168.110.254'
-    z.name = 'Guava'
-    z.networktype = 'Advanced'
-    z.guestcidraddress = '10.1.1.0/24'
-    z.vlan='100-3000'
-
-    p = pod()
-    p.name = 'POD1'
-    p.gateway = '172.1.2.1'
-    p.startip = '172.1.2.2'
-    p.endip = '172.1.255.252'
-    p.netmask = '255.255.0.0'
-
-    v = iprange()
-    v.vlan = 'untagged'
-    v.startip = '172.2.1.2'
-    v.endip = '172.2.255.252'
-    v.gateway = '172.2.1.1'
-    v.netmask = '255.255.0.0'
-
-    curhost = 1
-    for i in range(1, clustersPerPod + 1):
-        c = cluster()
-        c.clustername = 'POD1-CLUSTER' + str(i)
-        c.hypervisor = 'Simulator'
-        c.clustertype = 'CloudManaged'
-
-        for j in range(1, hostsPerCluster + 1):
-            h = host()
-            h.username = 'root'
-            h.password = 'password'
-            h.url = 'http://sim/test-%d'%(curhost)
-            c.hosts.append(h)
-            curhost = curhost + 1
-
-        ps = primaryStorage()
-        ps.name = 'spool'+str(i)
-        ps.url = 'nfs://172.16.24.32/export/path/'+str(i)
-        c.primaryStorages.append(ps)
-        p.clusters.append(c)
-
-
-    secondary = secondaryStorage()
-    secondary.url = 'nfs://172.16.25.32/secondary/path'
-
-    z.pods.append(p)
-    z.ipranges.append(v)
-    z.secondaryStorages.append(secondary)
-    zs.zones.append(z)
-
-    '''Add mgt server'''
-    mgt = managementServer()
-    mgt.mgtSvrIp = mshost
-    zs.mgtSvr.append(mgt)
-
-    '''Add a database'''
-    db = dbServer()
-    db.dbSvr = opts.dbnode
-    zs.dbSvr = db
-
-    '''Add some configuration'''
-    [zs.globalConfig.append(cfg) for cfg in getGlobalSettings()]
-
-    ''''add loggers'''
-    testClientLogger = logger()
-    testClientLogger.name = 'TestClient'
-    testClientLogger.file = '/var/log/testclient.log'
-
-    testCaseLogger = logger()
-    testCaseLogger.name = 'TestCase'
-    testCaseLogger.file = '/var/log/testcase.log'
-
-    zs.logger.append(testClientLogger)
-    zs.logger.append(testCaseLogger)
-    return zs
-
-
-if __name__ == '__main__':
-    parser = OptionParser()
-    parser.add_option('-o', '--output', action='store', default='./guavaCfg', dest='output', help='the path where the json config file generated')
-    parser.add_option('-d', '--dbnode', dest='dbnode', help='hostname/ip of the database node', action='store')
-    parser.add_option('-m', '--mshost', dest='mshost', help='hostname/ip of management server', action='store')
-
-    (opts, args) = parser.parse_args()
-    cfg = describeGuavaResources(opts.dbnode, opts.mshost)
-    generate_setup_config(cfg, opts.output)

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/guava/tests/testProvision.py
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/guava/tests/testProvision.py b/agent-simulator/scripts/guava/tests/testProvision.py
deleted file mode 100644
index 5fef55c..0000000
--- a/agent-simulator/scripts/guava/tests/testProvision.py
+++ /dev/null
@@ -1,139 +0,0 @@
-#!/usr/bin/env python
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-    import unittest2 as unittest
-except ImportError:
-    import unittest
-
-import random
-import hashlib
-from cloudstackTestCase import *
-
-class Provision(cloudstackTestCase):
-    '''
-    '''
-    def setUp(self):
-        pass
-
-
-    def tearDown(self):
-        pass
-
-
-    def test_1_createAccounts(self, numberOfAccounts=5):
-        '''
-        Create a bunch of user accounts
-        '''
-        mdf = hashlib.md5()
-        mdf.update('password')
-        mdf_pass = mdf.hexdigest()
-        api = self.testClient.getApiClient()
-        for i in range(1, numberOfAccounts + 1):
-            acct = createAccount.createAccountCmd()
-            acct.accounttype = 0
-            acct.firstname = 'user' + str(i)
-            acct.lastname = 'user' + str(i)
-            acct.password = mdf_pass
-            acct.username = 'user' + str(i)
-            acct.email = 'user@example.com'
-            acct.account = 'user' + str(i)
-            acct.domainid = 1
-            acctResponse = api.createAccount(acct)
-            self.debug("successfully created account: %s, user: %s, id: %s"%(acctResponse.account, acctResponse.username, acctResponse.id))
-
-
-    def test_2_createServiceOffering(self):
-        apiClient = self.testClient.getApiClient()
-        createSOcmd=createServiceOffering.createServiceOfferingCmd()
-        createSOcmd.name='Sample SO'
-        createSOcmd.displaytext='Sample SO'
-        createSOcmd.storagetype='shared'
-        createSOcmd.cpunumber=1
-        createSOcmd.cpuspeed=100
-        createSOcmd.memory=128
-        createSOcmd.offerha='false'
-        createSOresponse = apiClient.createServiceOffering(createSOcmd)
-        return createSOresponse.id 
-
-    def deployCmd(self, account, service):
-        deployVmCmd = deployVirtualMachine.deployVirtualMachineCmd()
-        deployVmCmd.zoneid = 1
-        deployVmCmd.hypervisor='Simulator'
-        deployVmCmd.account=account
-        deployVmCmd.domainid=1
-        deployVmCmd.templateid=10
-        deployVmCmd.serviceofferingid=service
-        return deployVmCmd
-
-    def listVmsInAccountCmd(self, acct):
-        api = self.testClient.getApiClient()
-        listVmCmd = listVirtualMachines.listVirtualMachinesCmd()
-        listVmCmd.account = acct
-        listVmCmd.zoneid = 1
-        listVmCmd.domainid = 1
-        listVmResponse = api.listVirtualMachines(listVmCmd)
-        return listVmResponse
-
-
-    def destroyVmCmd(self, key):
-        api = self.testClient.getApiClient()
-        destroyVmCmd = destroyVirtualMachine.destroyVirtualMachineCmd()
-        destroyVmCmd.id = key
-        api.destroyVirtualMachine(destroyVmCmd)
-
-
-    def test_3_stressDeploy(self):
-        '''
-            Deploy 20 Vms in each account
-        '''
-        service_id = self.test_2_createServiceOffering()
-        api = self.testClient.getApiClient()
-        for acct in range(1, 5):
-            [api.deployVirtualMachine(self.deployCmd('user'+str(acct), service_id)) for x in range(0,20)]
-
-    def test_4_stressDestroy(self):
-        '''
-            Cleanup all Vms in every account
-        '''
-        api = self.testClient.getApiClient()
-        for acct in range(1, 6):
-            for vm in self.listVmsInAccountCmd('user'+str(acct)):
-                if vm is not None:
-                    self.destroyVmCmd(vm.id)
-
-    def test_5_combineStress(self):
-        for i in range(0, 5):
-            self.test_3_stressDeploy()
-            self.test_4_stressDestroy()
-
-    def deployN(self,nargs=300,batchsize=0):
-        '''
-        Deploy Nargs number of VMs concurrently in batches of size {batchsize}.
-        When batchsize is 0 all Vms are deployed in one batch
-        VMs will be deployed in 5:2:6 ratio
-        '''
-        cmds = []
-
-        if batchsize == 0:
-            self.testClient.submitCmdsAndWait(cmds)
-        else:
-            while len(z) > 0:
-                try:
-                    newbatch = [cmds.pop() for b in range(batchsize)] #pop batchsize items
-                    self.testClient.submitCmdsAndWait(newbatch)
-                except IndexError:
-                    break

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/kumquat/setup.py
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/kumquat/setup.py b/agent-simulator/scripts/kumquat/setup.py
deleted file mode 100644
index 2a305a1..0000000
--- a/agent-simulator/scripts/kumquat/setup.py
+++ /dev/null
@@ -1,194 +0,0 @@
-#!/usr/bin/env python
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-'''
-# Kumquat uses nfs storage, before setting up make sure
-#     * optionally turn off stats collectors
-#     * expunge.delay and expunge.interval are 60s
-'''
-
-from optparse import OptionParser
-from configGenerator import *
-import random
-
-
-def getGlobalSettings():
-    global_settings = {'expunge.delay': '60',
-                       'expunge.interval': '60',
-                       'capacity.skipcounting.hours': '2',
-                       'cpu.overprovisioning.factor': '1.5',
-                       'expunge.workers': '3',
-                       'workers': '10',
-                       'use.user.concentrated.pod.allocation': 'true',
-                       'vm.allocation.algorithm': 'random',
-                       'vm.op.wait.interval': '5',
-                       'guest.domain.suffix': 'kumquat.simulator',
-                       'instance.name': 'KIM',
-                       'direct.agent.load.size': '16',
-                       'default.page.size': '500',
-                       'linkLocalIp.nums': '10',
-                       'check.pod.cidrs': 'false',
-                       'max.account.public.ips': '10000',
-                       'max.account.snapshots': '10000',
-                       'max.account.templates': '10000',
-                       'max.account.user.vms': '10000',
-                       'max.account.volumes': '10000',
-                      }
-    for k, v in global_settings.iteritems():
-        cfg = configuration()
-        cfg.name = k
-        cfg.value = v
-        yield cfg
-
-
-def podIpRangeGenerator():
-    x=1
-    y=2
-    while 1:
-        if y == 255:
-            x=x+1
-            if x == 255:
-                x=1
-                break
-
-            y=1
-
-        y=y+1            
-        #pod mangement network
-        yield ('172.'+str(x)+'.'+str(y)+'.129', '172.'+str(x)+'.'+str(y)+'.130', '172.'+str(x)+'.'+str(y)+'.189')
-
-
-def vlanIpRangeGenerator():
-    x=1
-    y=2
-    while 1:
-        if y == 255:
-            x=x+1
-            if x==255:
-                x=1
-                break
-
-            y=1
-
-        y=y+1            
-        #vlan ip range
-        yield ('172.'+str(x)+'.'+str(y)+'.129', '172.'+str(x)+'.'+str(y)+'.190', '172.'+str(x)+'.'+str(y)+'.249')
-
-
-def describeKumquatResources(dbnode='localhost', mshost='localhost'):
-    zs = cloudstackConfiguration()
-    numberofpods = 5
-
-    clustersPerPod = 2
-    hostsPerCluster = 8
-
-    curpod = 0
-    curhost = 0
-
-    z = zone()
-    z.dns1 = '4.2.2.2'
-    z.dns2 = '192.168.110.254'
-    z.internaldns1 = '10.91.28.6'
-    z.internaldns2 = '192.168.110.254'
-    z.name = 'Kumquat'
-    z.networktype = 'Advanced'
-    z.guestcidraddress = '10.1.1.0/24'
-    z.vlan='100-3000'
-
-    for podRange,vlanRange in zip(podIpRangeGenerator(), vlanIpRangeGenerator()):
-        p = pod()
-        curpod=curpod+1
-        p.name = 'POD'+str(curpod)
-        p.gateway=podRange[0]
-        p.startip=podRange[1]
-        p.endip=podRange[2]
-        p.netmask='255.255.255.128'
-
-        for i in range(1,clustersPerPod+1):
-            c = cluster()
-            c.clustername = 'POD'+str(curpod)+'-CLUSTER'+str(i)
-            c.hypervisor = 'Simulator'
-            c.clustertype = 'CloudManaged'
-
-            ps = primaryStorage()
-            ps.name = 'spool'+str(i)
-            ps.url = 'nfs://172.16.24.32/export/path/'+str(curpod)+'/'+str(i)
-            c.primaryStorages.append(ps)
-
-            for i in range(1, hostsPerCluster + 1):
-                h = host()
-                h.username = 'root'
-                h.password = 'password'
-                h.url = "http://sim/test-%d"%(curhost)
-                c.hosts.append(h)
-                curhost=curhost+1
-
-            p.clusters.append(c)
-
-        z.pods.append(p)
-        if curpod == numberofpods:
-            break
-
-    v = iprange()
-    v.vlan = 'untagged'
-    v.gateway='172.2.1.1'
-    v.startip='172.2.1.2'
-    v.endip='172.2.255.252'
-    v.netmask="255.255.0.0"
-    z.ipranges.append(v)
-
-    secondary = secondaryStorage()
-    secondary.url = 'nfs://172.16.25.32/secondary/path'
-    z.secondaryStorages.append(secondary)
-    zs.zones.append(z)
-
-    '''Add mgt server'''
-    mgt = managementServer()
-    mgt.mgtSvrIp = mshost
-    zs.mgtSvr.append(mgt)
-
-    '''Add a database'''
-    db = dbServer()
-    db.dbSvr = opts.dbnode
-    zs.dbSvr = db
-
-    '''Add some configuration'''
-    [zs.globalConfig.append(cfg) for cfg in getGlobalSettings()]
-
-    ''''add loggers'''
-    testClientLogger = logger()
-    testClientLogger.name = 'TestClient'
-    testClientLogger.file = '/var/log/testclient.log'
-
-    testCaseLogger = logger()
-    testCaseLogger.name = 'TestCase'
-    testCaseLogger.file = '/var/log/testcase.log'
-
-    zs.logger.append(testClientLogger)
-    zs.logger.append(testCaseLogger)
-    return zs
-
-
-if __name__ == '__main__':
-    parser = OptionParser()
-    parser.add_option('-o', '--output', action='store', default='./KumquatCfg', dest='output', help='the path where the json config file generated')
-    parser.add_option('-d', '--dbnode', dest='dbnode', help='hostname/ip of the database node', action='store')
-    parser.add_option('-m', '--mshost', dest='mshost', help='hostname/ip of management server', action='store')
-
-    (opts, args) = parser.parse_args()
-    cfg = describeKumquatResources(opts.dbnode, opts.mshost)
-    generate_setup_config(cfg, opts.output)

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/kumquat/tests/testProvision.py
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/kumquat/tests/testProvision.py b/agent-simulator/scripts/kumquat/tests/testProvision.py
deleted file mode 100644
index e0d531e..0000000
--- a/agent-simulator/scripts/kumquat/tests/testProvision.py
+++ /dev/null
@@ -1,259 +0,0 @@
-#!/usr/bin/env python
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-    import unittest2 as unittest
-except ImportError:
-    import unittest
-
-import random
-import hashlib
-from cloudstackTestCase import *
-import string
-import time
-
-import pdb
-
-class Provision(cloudstackTestCase):
-    numberOfAccounts = 5
-    accounts = []
-
-    def setUp(self):
-        pass
-
-    def tearDown(self):
-        pass
-
-    def setupServiceOffering(self):
-        socreate = createServiceOffering.createServiceOfferingCmd()
-        socreate.cpunumber = 1
-        socreate.cpuspeed = 100
-        socreate.displaytext = 'Sample SO'
-        socreate.memory = 128
-        socreate.name = 'Sample SO'
-        api = self.testClient.getApiClient()
-        soresponse = api.createServiceOffering(socreate)
-        return soresponse.id
-
-
-    def test_1_createAccounts(self):
-        '''
-        Create a bunch of user accounts
-        '''
-        mdf = hashlib.md5()
-        mdf.update('password')
-        mdf_pass = mdf.hexdigest()
-        api = self.testClient.getApiClient()
-        for i in range(1, self.numberOfAccounts + 1):
-            acct = createAccount.createAccountCmd()
-            acct.accounttype = 0
-            name = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(10))
-            acct.firstname = name
-            acct.lastname = name
-            acct.password = mdf_pass
-            acct.username = name
-            acct.email = 'user@example.com'
-            acct.account = name
-            acct.domainid = 1
-            acctResponse = api.createAccount(acct)
-            self.accounts.append(acctResponse.account.name)
-            self.debug("created account %s with id %d:"%(acctResponse.account.name, acctResponse.account.id))
-
-
-    def deployCmd(self, acct):
-        deployVmCmd = deployVirtualMachine.deployVirtualMachineCmd()
-        deployVmCmd.zoneid = 1
-        deployVmCmd.hypervisor='Simulator'
-        deployVmCmd.account=acct
-        deployVmCmd.domainid=1
-        deployVmCmd.templateid=10
-        deployVmCmd.serviceofferingid=self.setupServiceOffering()
-        return deployVmCmd
-
-
-    def destroyCmd(self, vmid):
-        destroyVmCmd = destroyVirtualMachine.destroyVirtualMachineCmd()
-        destroyVmCmd.zoneid = 1
-        destroyVmCmd.id = vmid
-        return destroyVmCmd
-
-    def startCmd(self, vmid):
-        startVmCmd = startVirtualMachine.startVirtualMachineCmd()
-        startVmCmd.id = vmid
-        return startVmCmd
-
-    def listVmsInAccount(self, acct):
-        listVm = listVirtualMachines.listVirtualMachinesCmd()
-        listVm.account = acct
-        listVm.zoneid = 1
-        listVm.domainid = 1
-        return self.testClient.getApiClient().listVirtualMachines(listVm)
-
-    def listAccounts(self, acct):
-        listacct = listAccounts.listAccountsCmd()
-        listacct.name = acct
-        listacct.accounttype = 0
-        return self.testClient.getApiClient().listAccounts(listacct)
-
-
-    def test_2_stressDeploy(self):
-        api = self.testClient.getApiClient()
-        for acct in self.accounts:
-            [api.deployVirtualMachine(self.deployCmd(acct)) for x in range(0, 25)]
-
-
-    def test_3_parallelDeployAndDestroy(self):
-        p_accts = []
-        #create 3 user accounts
-        mdf = hashlib.md5()
-        mdf.update('password')
-        mdf_pass = mdf.hexdigest()
-        api = self.testClient.getApiClient()
-        for i in range(1, 3):
-            acct = createAccount.createAccountCmd()
-            acct.accounttype = 0
-            name = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(10))
-            acct.firstname = name
-            acct.lastname = name
-            acct.password = mdf_pass
-            acct.username = name
-            acct.email = 'puser@example.com'
-            acct.account = name
-            acct.domainid = 1
-            acctResponse = api.createAccount(acct)
-            p_accts.append(acctResponse.account.name)
-            self.debug("created account %s under root"%name)
-
-        #deploy VMs each parallely in all three accounts
-        deployCmds = []
-        for acct in p_accts:
-            for i in range(0, 50):
-                deployCmds.append(self.deployCmd(acct))
-        random.shuffle(deployCmds)
-        self.execCmds(deployCmds)
-
-        #destroy VMs each parallely in all three accounts
-        destroyCmds = []
-        for acct in p_accts:
-            acctVms = self.listVmsInAccount(acct)
-            self.debug("%d vms deployed in account: %s. Destroying them"%(len(acctVms),acct))
-            for vm in acctVms[:45]:
-                destroyCmds.append(self.destroyCmd(vm.id))
-        random.shuffle(destroyCmds)
-        self.execCmds(destroyCmds)
-
-        for acct in p_accts:
-            acctVms = self.listVmsInAccount(acct)
-            self.assertEqual(len(acctVms), 5)
-            listacct = self.listAccounts(acct)
-            self.assertEqual(int(listacct[0].vmrunning) + int(listacct[0].vmstopped),\
-                             int(listacct[0].vmtotal))
-            self.debug("%d vms found left in account: %s. Finishing Test"%(len(acctVms),acct))
-
-
-    def test_4_listVm(self):
-        allVms = self.listVmsInAccount(None)
-        self.debug("%d vms in all"%len(allVms))
-
-
-    def test_5_multipleStartRequests(self):
-        '''
-            Start a few Vms, start them again before they reach running state,
-            make sure the resource count remains consistent
-        '''
-        mdf = hashlib.md5()
-        mdf.update('password')
-        mdf_pass = mdf.hexdigest()
-        api = self.testClient.getApiClient()
-        acct = createAccount.createAccountCmd()
-        acct.accounttype = 0
-        name = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(10))
-        acct.firstname = name
-        acct.lastname = name
-        acct.password = mdf_pass
-        acct.username = name
-        acct.email = 'puser@example.com'
-        acct.account = name
-        acct.domainid = 1
-        acctResponse = api.createAccount(acct)
-
-        for i in range(0, 5):
-           resp = api.deployVirtualMachine(self.deployCmd(name))
-           api.startVirtualMachine(self.startCmd(resp.id))
-
-        acctVms = self.listVmsInAccount(name)
-        self.debug("%d vms found in account: %s."%(len(acctVms),name))
-        self.assertEqual(5, len(acctVms))
-        listacctresponse = self.listAccounts(name)
-        self.assertEqual(int(listacctresponse[0].vmrunning) +\
-                         int(listacctresponse[0].vmstopped),\
-                         int(listacctresponse[0].vmtotal))
- 
-
-    def test_6_multipleDestroyRequests(self):
-        '''
-        Start a few Vms, destroy them, destroy them again before they reach
-        expunging state, make sure the resource count remains consistent
-        '''
-        mdf = hashlib.md5()
-        mdf.update('password')
-        mdf_pass = mdf.hexdigest()
-        api = self.testClient.getApiClient()
-        acct = createAccount.createAccountCmd()
-        acct.accounttype = 0
-        name = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(10))
-        acct.firstname = name
-        acct.lastname = name
-        acct.password = mdf_pass
-        acct.username = name
-        acct.email = 'puser@example.com'
-        acct.account = name
-        acct.domainid = 1
-        acctResponse = api.createAccount(acct)
-
-        vmlist = []
-        for i in range(0, 5):
-            resp = api.deployVirtualMachine(self.deployCmd(name))
-            vmlist.append(resp.id)
-
-        for vm in vmlist:
-            api.destroyVirtualMachine(self.destroyCmd(vm))
-            time.sleep(1)
-            api.destroyVirtualMachine(self.destroyCmd(vm))
-
-        acctVms = self.listVmsInAccount(name)
-        if acctVms is not None:
-            self.debug("%d vms found in account: %s."%(len(acctVms),name))
-            self.assertEqual(5, len(acctVms))
-            listacctresponse = self.listAccounts(name)
-            self.assertEqual(int(listacctresponse[0].vmrunning) +\
-                             int(listacctresponse[0].vmstopped),\
-                             int(listacctresponse[0].vmtotal))
-
-
-    def execCmds(self,cmds=[],batchsize=0):
-        '''
-            When batchsize is 0 all Vms are deployed in one batch
-        '''
-        if batchsize == 0:
-            self.testClient.submitCmdsAndWait(cmds)
-        else:
-            while len(cmds) > 0:
-                try:
-                    newbatch = [cmds.pop() for b in range(batchsize)] #pop batchsize items
-                    self.testClient.submitCmdsAndWait(newbatch)
-                except IndexError:
-                    break

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/run.bat
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/run.bat b/agent-simulator/scripts/run.bat
deleted file mode 100644
index 1138ce0..0000000
--- a/agent-simulator/scripts/run.bat
+++ /dev/null
@@ -1,19 +0,0 @@
-rem - Licensed to the Apache Software Foundation (ASF) under one
-rem - or more contributor license agreements.  See the NOTICE file
-rem - distributed with this work for additional information
-rem - regarding copyright ownership.  The ASF licenses this file
-rem - to you under the Apache License, Version 2.0 (the
-rem - "License"); you may not use this file except in compliance
-rem - with the License.  You may obtain a copy of the License at
-rem - 
-rem -   http://www.apache.org/licenses/LICENSE-2.0
-rem - 
-rem - Unless required by applicable law or agreed to in writing,
-rem - software distributed under the License is distributed on an
-rem - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-rem - KIND, either express or implied.  See the License for the
-rem - specific language governing permissions and limitations
-rem - under the License.
-
-java -cp cloud-utils.jar;agent-simulator.jar;log4j-1.2.15.jar;apache-log4j-extras-1.0.jar;ws-commons-util-1.0.2.jar;xmlrpc-client-3.1.3.jar;cloud-agent.jar;cloud-core.jar;xmlrpc-common-3.1.3.jar;javaee-api-5.0-1.jar;gson-1.3.jar;commons-httpclient-3.1.jar;commons-logging-1.1.1.jar;commons-codec-1.3.jar;commons-collections-3.2.1.jar;commons-pool-1.4.jar;.\;.\conf com.cloud.agent.AgentSimulator %*
-

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/deletePod.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/deletePod.sh b/agent-simulator/scripts/zucchini/__old__/deletePod.sh
deleted file mode 100755
index 01cb7ce..0000000
--- a/agent-simulator/scripts/zucchini/__old__/deletePod.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
- 
-
-x=$1
-
-pod_query="GET  http://10.91.30.226:8096/client/?command=deletePod&id=$x	HTTP/1.0\n\n"
-
-
-echo -e $pod_query | nc -v -q 20 10.91.30.226 8096
-

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/deleteServiceOffering.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/deleteServiceOffering.sh b/agent-simulator/scripts/zucchini/__old__/deleteServiceOffering.sh
deleted file mode 100755
index 1a6c808..0000000
--- a/agent-simulator/scripts/zucchini/__old__/deleteServiceOffering.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
- 
-
-x=$1
-
-delete_so="GET  http://10.91.30.226:8096/client/?command=deleteServiceOffering&id=$x	HTTP/1.0\n\n"
-
-echo -e $delete_so | nc -v -q 20 10.91.30.226 8096
-

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/deleteVlan.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/deleteVlan.sh b/agent-simulator/scripts/zucchini/__old__/deleteVlan.sh
deleted file mode 100755
index 34ced90..0000000
--- a/agent-simulator/scripts/zucchini/__old__/deleteVlan.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
- 
-
-x=$1
-
-vlan_query="GET  http://10.91.30.226:8096/client/?command=deleteVlanIpRange&id=$x	HTTP/1.0\n\n"
-
-
-echo -e $vlan_query | nc -v -q 20 10.91.30.226 8096
-

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/deployBulk-sg.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/deployBulk-sg.sh b/agent-simulator/scripts/zucchini/__old__/deployBulk-sg.sh
deleted file mode 100755
index 427fbe2..0000000
--- a/agent-simulator/scripts/zucchini/__old__/deployBulk-sg.sh
+++ /dev/null
@@ -1,206 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-  
-usage() {
-  printf "Deploy many VMs: %s: -h management-server -n numberofvms [[-b batchsize] [-w wait for success] [-d db-node]]\n" $(basename $0) >&2
-  printf "-w option when specifed waits for successful deployment of batchsize (specifed by -b option) number of VMs. default batchsize =100\n"
-}
-
-getSgListRandom() {
-    num_groups=$((RANDOM%groups_per_vm))
-    if [[ $num_groups -eq 0 ]]; then
-        num_groups=1 #set back to default
-    fi
-
-    #form sg list string
-    local sg_list=""
-    for ((i=0;i<$num_groups;i++))
-    do
-        sgid=$((RANDOM%numberofgroups))
-        if [[ $sgid -eq 0 || $sgid -eq 1 ]]; then
-            sgid=1 #set back to default security group
-            sg_list=$sgid","$sg_list            
-            continue
-        fi
-        
-        sg_exists="GET  http://$host/client/?command=listSecurityGroups&id=$sgid  HTTP/1.0\n\n"
-        sg_out=$(echo -e $sg_exists | nc -v -q 60 $host 8096)
-        count=$(echo $sg_out | sed 's/\(.*<count>\)\([0-9]*\)\(.*\)/\2/g')        
-        if [[ $count != "1" ]]; then #FAIL: Invalid security group was randomly selected
-            continue
-        fi        
-        sg_list=$sgid","$sg_list
-    done
-    echo "$sg_list"
-}
-
-
-waitDeploy() {
-   local dbnode=$1
-   local batchsize=$2
-   while [ 1 ]
-   do
-  	    donecount=$(mysql -uroot -Dcloud -h$dbnode -s -r --skip-column-names -e"select count(*) from async_job where job_cmd like '%DeployVM%' and last_updated is null")
-        echo "[DEBUG] " $(date) " " $donecount " VMs still deploying"
-        if [[ $donecount == "0" || $donecount -eq 0 ]]
-        then
-           break
-        fi
-        sleep $(($donecount*2))s #2 seconds per VM
-   done
-}
-
-hflag=
-nflag=1
-wflag=
-bflag= 
-dflag=
-iterator=0
-
-declare -a sg_array=('79' '79' '79' '79' '79' '79' '79' '79' '79')
-#declare -a sg_array=('72' '73' '74' '75' '76' '77' '78' '79' '80')
-
-host="127.0.0.1" #defaults to locahost
-numberofvms=1040 #defaults
-batchsize=100 #default
-dbnode=
-waitSuccess=false
-
-while getopts 'h:n:b:d:w' OPTION
-do
-	case $OPTION in
-		h)	  hflag=1
-			host="$OPTARG"
-			;;
-		n)    nflag=1
-			numberofvms="$OPTARG"
-			;;
-		w)    wflag=1
-			waitSuccess=true
-			;;
-		b)    bflag=1
-			batchsize="$OPTARG"
-			;;
-		d)    dflag=1
-			dbnode="$OPTARG"
-			;;
-		?)	usage
-			exit 2
-			;;
-	esac
-done
-
-if [ $hflag$nflag != "11" ]
-then
- usage
- exit 2
-fi
-
-if [[ $wflag == "1" && $dflag != "1" ]]
-then
-   echo "please specify dbnode -d option"
-   usage
-   exit 2
-fi
-
-
-if [[ $bflag == "1" && $wflag != "1" ]]
-then
-   echo "-w option mandatory when -b is given"
-   usage
-   exit 2
-fi
-
-tag1=$(($numberofvms*5/13))
-tag2=$(($numberofvms*2/13))
-tag3=$(($numberofvms*6/13))
-
-tag1_so=9 #defaults from a regular installation
-tag2_so=10
-tag3_so=11
-vmcount=0
-
-echo -n "Service Offering ID with TAG1 hosttag: "
-read tag1_so
-
-echo -n "Service Offering ID with TAG2 hosttag: "
-read tag2_so
-
-echo -n "Service Offering ID with TAG3 hosttag: "
-read tag3_so
-
-echo "Deploying TAG1 VMs with Service Offering: " $tag1_so
-for ((c=1;c<$tag1;c++))
-do
-	if [[ $vmcount -eq $batchsize && waitSuccess ]]
-	then
-		waitDeploy $dbnode $batchsize
-		vmcount=0
-	fi
-        sglist=${sg_array[$((iterator % 9))]}
-        iterator=$((iterator+1))
-
-        job_out=$(./deployVirtualMachine.sh -h $host -z 1 -t 2 -s $tag1_so -u -g $sglist)
-				job_id=$(echo $job_out | sed 's/\(.*<jobid>\)\([0-9]*\)\(.*\)/\2/g') 
-				vmid=$(echo $job_out | sed 's/\(.*<id>\)\([0-9]*\)\(.*\)/\2/g')
-				echo "[DEBUG] $(date) deployed vm: " $vmid " in job: " $job_id
-
-        vmcount=$((vmcount+1))
-done
-
-sleep 60s
-
-echo "Deploying TAG2 VMs with Service Offering: " $tag2_so
-for ((c=1;c<$tag2;c++))
-do
-	if [[ $vmcount -eq $batchsize && wflag == "1" ]]
-	then
-		waitDeploy $dbnode $batchsize
-		vmcount=0
-	fi
-        sglist=${sg_array[$((iterator % 9))]}
-        iterator=$((iterator+1))
-
-        job_out=$(./deployVirtualMachine.sh -h $host -z 1 -t 2 -s $tag2_so -u -g $sglist)
-				job_id=$(echo $job_out | sed 's/\(.*<jobid>\)\([0-9]*\)\(.*\)/\2/g') 
-				vmid=$(echo $job_out | sed 's/\(.*<id>\)\([0-9]*\)\(.*\)/\2/g')
-				echo "[DEBUG] $(date) deployed vm: " $vmid " in job: " $job_id
-
-        vmcount=$((vmcount+1))
-done
-
-sleep 60s
-
-echo "Deploying TAG3 VMs with Service Offering: " $tag3_so
-for ((c=1;c<$tag3;c++))
-do
-	if [[ $vmcount -eq $batchsize && wflag == "1" ]]
-	then
-		waitDeploy $dbnode $batchsize
-		vmcount=0
-	fi
-        sglist=${sg_array[$((iterator % 9))]}
-        iterator=$((iterator+1))
-
-        job_out=$(./deployVirtualMachine.sh -h $host -z 1 -t 2 -s $tag3_so -u -g $sglist)
-				job_id=$(echo $job_out | sed 's/\(.*<jobid>\)\([0-9]*\)\(.*\)/\2/g') 
-				vmid=$(echo $job_out | sed 's/\(.*<id>\)\([0-9]*\)\(.*\)/\2/g')
-				echo "[DEBUG] $(date) deployed vm: " $vmid " in job: " $job_id
-
-        vmcount=$((vmcount+1))
-done

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/deployBulk.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/deployBulk.sh b/agent-simulator/scripts/zucchini/__old__/deployBulk.sh
deleted file mode 100755
index 226a8aa..0000000
--- a/agent-simulator/scripts/zucchini/__old__/deployBulk.sh
+++ /dev/null
@@ -1,159 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-  
-usage() {
-  printf "Deploy many VMs: %s: -h management-server -n numberofvms  [[-b batchsize] [-w wait for success] [-d db-node]]\n" $(basename $0) >&2
-}
-
-waitDeploy() {
-   local dbnode=$1
-   local batchsize=$2
-   while [ 1 ]
-   do
-  	    donecount=$(mysql -uroot -Dcloud -h$dbnode -s -r --skip-column-names -e"select count(*) from async_job where job_cmd like '%DeployVM%' and last_updated is null")
-        echo "[DEBUG] " $(date) " " $donecount " VMs still deploying"
-        if [[ $donecount == "0" || $donecount -eq 0 ]]
-        then
-           break
-        fi
-        sleep $(($donecount*2))s #2 seconds per VM
-   done
-}
-
-hflag=
-nflag=1
-wflag=
-bflag= 
-dflag=
-iterator=0
-
-host="127.0.0.1" #defaults to locahost
-numberofvms=1040 #defaults
-numberofgroups= 
-groups_per_vm=1 #default one group per vm
-batchsize=100
-waitSuccess=false
-
-while getopts 'h:n:b:d:w' OPTION
-do
-	case $OPTION in
-		h)	  hflag=1
-			host="$OPTARG"
-			;;
-		n)    nflag=1
-			numberofvms="$OPTARG"
-			;;
-		w)    wflag=1
-			waitSuccess=true
-			;;
-		b)    bflag=1
-			batchsize="$OPTARG"
-			;;
-		d)    dflag=1
-			dbnode="$OPTARG"
-			;;
-		?)	usage
-			exit 2
-			;;
-	esac
-done
-
-if [ $hflag$nflag != "11" ]
-then
- usage
- exit 2
-fi
-
-if [[ $wflag == "1" && $dflag != "1" ]]
-then
-   echo "please specify dbnode -d option"
-   usage
-   exit 2
-fi
-
-
-if [[ $bflag == "1" && $wflag != "1" ]]
-then
-   echo "-w option mandatory when -b is given"
-   usage
-   exit 2
-fi
-
-tag1=$(($numberofvms*5/13))
-tag2=$(($numberofvms*2/13))
-tag3=$(($numberofvms*6/13))
-
-tag1_so=9 #defaults from a regular installation
-tag2_so=10
-tag3_so=11
-vmcount=0
-
-echo -n "Service Offering ID with TAG1 hosttag: "
-read tag1_so
-
-echo -n "Service Offering ID with TAG2 hosttag: "
-read tag2_so
-
-echo -n "Service Offering ID with TAG3 hosttag: "
-read tag3_so
-
-echo "Deploying TAG1 VMs with Service Offering: " $tag1_so
-for ((c=1;c<$tag1;c++))
-do
-    if [[ $vmcount -eq $batchsize && waitSuccess ]]
-	then
-		waitDeploy $dbnode $batchsize
-		vmcount=0
-	fi
-	job_out=$(./deployVirtualMachine.sh -h $host -z 1 -t 2 -s $tag1_so -u)
-	job_id=$(echo $job_out | sed 's/\(.*<jobid>\)\([0-9]*\)\(.*\)/\2/g') 
-	vmid=$(echo $job_out | sed 's/\(.*<id>\)\([0-9]*\)\(.*\)/\2/g')
-	echo "[DEBUG] $(date) deployed vm: " $vmid " in job: " $job_id		
-    vmcount=$((vmcount+1))    
-done
-
-echo "Deploying TAG2 VMs with Service Offering: " $tag2_so
-for ((c=1;c<$tag2;c++))
-do
-    if [[ $vmcount -eq $batchsize && waitSuccess ]]
-	then
-		waitDeploy $dbnode $batchsize
-		vmcount=0
-	fi
-	job_out=$(./deployVirtualMachine.sh -h $host -z 1 -t 2 -s $tag2_so -u)
-	job_id=$(echo $job_out | sed 's/\(.*<jobid>\)\([0-9]*\)\(.*\)/\2/g') 
-	vmid=$(echo $job_out | sed 's/\(.*<id>\)\([0-9]*\)\(.*\)/\2/g')    
-	echo "[DEBUG] $(date) deployed vm: " $vmid " in job: " $job_id	
-    vmcount=$((vmcount+1))	
-done
-
-
-echo "Deploying TAG3 VMs with Service Offering: " $tag3_so
-for ((c=1;c<$tag3;c++))
-do
-    if [[ $vmcount -eq $batchsize && waitSuccess ]]
-	then
-		waitDeploy $dbnode $batchsize
-		vmcount=0
-	fi
-	job_out=$(./deployVirtualMachine.sh -h $host -z 1 -t 2 -s $tag3_so -u)
-	job_id=$(echo $job_out | sed 's/\(.*<jobid>\)\([0-9]*\)\(.*\)/\2/g') 
-	vmid=$(echo $job_out | sed 's/\(.*<id>\)\([0-9]*\)\(.*\)/\2/g')	
-	echo "[DEBUG] $(date) deployed vm: " $vmid " in job: " $job_id		
-    vmcount=$((vmcount+1))		    
-done

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/deployVirtualMachine.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/deployVirtualMachine.sh b/agent-simulator/scripts/zucchini/__old__/deployVirtualMachine.sh
deleted file mode 100755
index 15539d2..0000000
--- a/agent-simulator/scripts/zucchini/__old__/deployVirtualMachine.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
- 
-
-zoneid=$1
-templateId=$2
-serviceOfferingId=$3
-
-query="GET	http://10.91.30.226:8096/client/?command=deployVirtualMachine&zoneId=$1&templateId=$2&serviceOfferingId=$3&account=admin&domainid=1	HTTP/1.0\n\n"
- 
-echo -e $query | nc -v -q 20 10.91.30.226 8096

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/destroySystemVm.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/destroySystemVm.sh b/agent-simulator/scripts/zucchini/__old__/destroySystemVm.sh
deleted file mode 100755
index a2907a1..0000000
--- a/agent-simulator/scripts/zucchini/__old__/destroySystemVm.sh
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-usage() {
-  printf "Destroy System Virtual Machine\nUsage: %s: -h management-server-ip -i vmid\n" $(basename $0) >&2
-}
-
-
-hflag=
-iflag=
-
-vmid=
-host="127.0.0.1" #defaults to localhost
-
-while getopts 'h:i:' OPTION
-do
- case $OPTION in
-  h)	hflag=1
-        host="$OPTARG"
-        ;;
-  i)    iflag=1
-        vmid="$OPTARG"
-        ;;        
-  ?)	usage
-		exit 2
-		;;
-  esac
-done
-
-if [[ $iflag != "1" ]]
-then
-    usage
-    exit 2
-fi 
-
-destroy="GET  http://$host:8096/client/?command=destroySystemVm&id=$vmid	HTTP/1.0\n\n"
-echo -e $destroy | nc -v -w 60 $host 8096
-

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/destroyVirtualMachine.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/destroyVirtualMachine.sh b/agent-simulator/scripts/zucchini/__old__/destroyVirtualMachine.sh
deleted file mode 100755
index df9201e..0000000
--- a/agent-simulator/scripts/zucchini/__old__/destroyVirtualMachine.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
- 
-
-x=$1
-
-destroy="GET  http://10.91.30.226:8096/client/?command=destroyVirtualMachine&id=$x	HTTP/1.0\n\n"
-
-echo -e $destroy | nc -v -q 60 10.91.30.226 8096
-

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/listCapacity.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/listCapacity.sh b/agent-simulator/scripts/zucchini/__old__/listCapacity.sh
deleted file mode 100755
index 9b27305..0000000
--- a/agent-simulator/scripts/zucchini/__old__/listCapacity.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
- 
-
-query="GET	http://10.91.30.226:8096/client/?command=listCapacity&zoneId=$1&podid=$2&response=json	HTTP/1.0\n\n"
- 
-echo -e $query | nc -v -q 120 10.91.30.226 8096

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/listEvents.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/listEvents.sh b/agent-simulator/scripts/zucchini/__old__/listEvents.sh
deleted file mode 100755
index bd4e3d8..0000000
--- a/agent-simulator/scripts/zucchini/__old__/listEvents.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
- 
-
-test="GET	http://10.91.30.226:8096/?command=listEvents&page=1     HTTP/1.0\n\n"
-echo -e $test | nc -v -q 120 10.91.30.226 8096
-

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/listHosts.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/listHosts.sh b/agent-simulator/scripts/zucchini/__old__/listHosts.sh
deleted file mode 100755
index ec74fdb..0000000
--- a/agent-simulator/scripts/zucchini/__old__/listHosts.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
- 
-
-query="GET	http://10.91.30.226:8096/client/?command=listHosts&zoneId=$1&account=admin&domainid=1&page=$2	HTTP/1.0\n\n"
- 
-echo -e $query | nc -v -q 120 10.91.30.226 8096

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/listRouters.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/listRouters.sh b/agent-simulator/scripts/zucchini/__old__/listRouters.sh
deleted file mode 100755
index 015e5b0..0000000
--- a/agent-simulator/scripts/zucchini/__old__/listRouters.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
- 
-
-query="GET	http://10.91.30.226:8096/client/?command=listRouters&zoneId=$1&account=admin&domainid=1	HTTP/1.0\n\n"
- 
-echo -e $query | nc -v -q 120 10.91.30.226 8096

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/listTemplates.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/listTemplates.sh b/agent-simulator/scripts/zucchini/__old__/listTemplates.sh
deleted file mode 100755
index 1c5fa4d..0000000
--- a/agent-simulator/scripts/zucchini/__old__/listTemplates.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
- 
-
-query="GET	http://10.91.30.212:8096/client/?command=listTemplates&templatefilter=featured&zoneid=$1	HTTP/1.0\n\n"
-
-echo -e $query | nc -v -w 120 10.91.30.212 8096

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/listVirtualMachine.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/listVirtualMachine.sh b/agent-simulator/scripts/zucchini/__old__/listVirtualMachine.sh
deleted file mode 100755
index dc20f11..0000000
--- a/agent-simulator/scripts/zucchini/__old__/listVirtualMachine.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
- 
-
-query="GET	http://10.91.30.226:8096/client/?command=listVirtualMachines&zoneId=$1&account=admin&domainid=1	HTTP/1.0\n\n"
- 
-echo -e $query | nc -v -q 120 10.91.30.226 8096

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/monitor.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/monitor.sh b/agent-simulator/scripts/zucchini/__old__/monitor.sh
deleted file mode 100755
index 2cd4f58..0000000
--- a/agent-simulator/scripts/zucchini/__old__/monitor.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-while [ 1 ] 
-do
-	echo  ==== $(date) ==== 
-#	mysql -uroot -Dcloud -h$host -e"select count(*), status, mgmt_server_id from host group by status, mgmt_server_id;"
-	mysql -uroot -Dcloud -h$host -e"select count(*), state, type from vm_instance group by state, type;"
-	mysql -uroot -Dcloud -h$host -e"select avg(timestampdiff(second,created,last_updated)),count(id),job_cmd,job_status,job_result_code from async_job where last_updated is not null group by job_cmd,job_status,job_result_code;"
-	mysql -uroot -Dcloud -h$host -e "select count(*) as locks from op_lock;"
-	echo === last 5 successful DeployVM ===
-	mysql -uroot -Dcloud -h$host -e"select created,last_updated,id, timestampdiff(second,created,last_updated) from async_job where job_cmd like '%DeployVM%' and job_result_code=0 and last_updated is not null order by id desc limit 5;"
-	echo === nwgroup status ===
-	mysql -uroot -Dcloud -h$host -e"select step, count(*) from op_nwgrp_work group by step;"
-	mysql -uroot -Dcloud -h$host -e"select avg(timestampdiff(second,created,taken)), count(id),mgmt_server_id from op_nwgrp_work where step='Done' and taken is not null and created < taken group by mgmt_server_id;"
-	mysql -uroot -Dcloud -h$host -e"select id,mgmt_server_id,instance_id,created,taken,timestampdiff(second,created,taken) from op_nwgrp_work where taken is not null and created!=taken order by id desc limit 5;"
-	echo 
-	echo
-	echo
-	sleep 30s
-done

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/newsetup.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/newsetup.sh b/agent-simulator/scripts/zucchini/__old__/newsetup.sh
deleted file mode 100755
index 03e85e3..0000000
--- a/agent-simulator/scripts/zucchini/__old__/newsetup.sh
+++ /dev/null
@@ -1,228 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# zucchini uses local storage, before setting up make sure
-#     * xen.public.network.device is set
-#     * use.local.storage and systemvm.use.local.storage are true
-#     * optionally turn off stats collectors
-#     * expunge.delay and expunge.interval are 60s
-#     * ping.interval is around 3m
-#     * turn off dns updates to entire zone, network.dns.basiczone.update=pod
-#     * capacity.skipcounting.hours=0
-#     * direct.agent.load.size=1000
-
-#   This script will only setup an approximate number of hosts. To achieve the ratio
-#   by 13. So if 4000 hosts are added, you might see only 3900 come up
-#   10 hosts per pod @ 1 host per cluster in a single zone
-#   Each pod has a /25, so 128 addresses. I think we reserved 5 IP addresses for system VMs in each pod. 
-#   Then we had something like 60 addresses for hosts and 60 addresses for VMs.
-   
-#Environment
-#1. Approximately 10 hosts per pod. 
-#2. Only 3 host tags. 
-#3. With in each pod, the host tags are the same. Homogenous Pods
-#5. In simulator.properties, workers=1
-
-usage() {
-  printf "Setup Zucchini Like Environment\nUsage: %s: -h management-server -z zoneid [-d delay] -n numberofhosts\n" $(basename $0) >&2
-}
-
-a=1 #CIDR - 16bytes
-b=2 #CIDR - 8 bytes
-
-#options
-hflag=1
-zflag=
-dflag=1
-nflag=1
-
-host="127.0.0.1" #default localhost
-zoneid=
-delay=300 #default 5 minutes
-numberofhosts=1300 #default 1300 hosts
-tag1="TAG1"
-tag2="TAG2"
-tag3="TAG3"
-
-while getopts 'h:z:d:n:' OPTION
-do
- case $OPTION in
-  h)	hflag=1
-        host="$OPTARG"
-        ;;
-  z)    zflag=1
-        zoneid="$OPTARG"
-        ;;    
-  d)    dflag=1
-        delay="$OPTARG"
-        ;;
-  n)    nflag=1
-        numberofhosts="$OPTARG"
-        ;;
-  ?)	usage
-		exit 2
-		;;
-  esac
-done
-
-if [ $zflag$nflag != "11" ]
-then
- usage
- exit 2
-fi
-
-numberofpods=$(($numberofhosts/10)) #10 hosts per pod
-tag_one_range=$(($numberofpods*5/13))
-tag_two_range=$(($numberofpods*2/13))
-tag_three_range=$(($numberofpods-$tag_one_range-$tag_two_range))
-
-clusters_per_pod=10 #each cluster has one host
-hosts_per_pod=10
-
-
-declare -a pod_array
-declare -a cluster_array
-
-echo "Split Ratio :: " $tag_one_range":"$tag_two_range":"$tag_three_range
-
-#create the zone
-zone_query="GET  http://$host/client/?command=createZone&networktype=Basic&securitygroupenabled=false&name=Zucchini&dns1=4.2.2.2&internaldns1=4.2.2.2  HTTP/1.0\n\n"
-echo -e $zone_query | nc -v -w $delay $host 8096
-
-#Add Secondary Storage
-sstor_query="GET  http://$host/client/?command=addSecondaryStorage&zoneid=$zoneid&url=nfs://172.16.15.32/export/share/secondary  HTTP/1.0\n\n"
-echo -e $sstor_query | nc -v -w $delay $host 8096
-
-let x=a
-let y=b
-
-echo "[DEBUG] $(date) Starting Creation of $numberofpods Pods"
-for ((name=1;name<=$numberofpods;name++))
-do
-    echo "[DEBUG] $(date) Creating pod[POD$name]"
-   	pod_query="GET  http://$host/client/?command=createPod&zoneId=$zoneid&name=POD$name&netmask=255.255.255.128&startIp=172.$x.$y.130&endIp=172.$x.$y.189&gateway=172.$x.$y.129	HTTP/1.0\n\n"
-    pod_out=$(echo -e $pod_query | nc -v -w $delay $host 8096)	
-    pod_id=$(echo $pod_out | sed 's/\(.*<id>\)\([0-9]*\)\(.*\)/\2/g')
-    if ! [[ "$pod_id" =~ ^[0-9]+$ ]] ; then
-       exec >&2; echo "[ERROR] $(date) pod [POD$name] creation failed"; continue
-    fi
-    echo "[DEBUG] $(date) Created pod["$pod_id":POD"$name"]"
-    pod_array[$name]=$pod_id
-    
-    echo "[DEBUG] $(date) Creating vlan for pod[POD$name]"
-    vlan_query="GET http://$host/client/?command=createVlanIpRange&vlan=untagged&zoneid=$zoneid&podId=$pod_id&forVirtualNetwork=false&gateway=172.$x.$y.129&netmask=255.255.255.128&startip=172.$x.$y.190&endip=172.$x.$y.249        HTTP/1.0\n\n"
-   	vlan_out=$(echo -e $vlan_query | nc -v -w $delay $host 8096)
-    vlan_id=$(echo $vlan_out | sed 's/\(.*<id>\)\([0-9]*\)\(.*\)/\2/g')
-    if ! [[ "$vlan_id" =~ ^[0-9]+$ ]] ; then           
-       let y+=1
-       if [ "$y" -eq 256 ]
-       then
-           let x+=1
-           y=1
-       fi
-       exec >&2; echo "[ERROR] $(date) vlan creation for pod[POD$name] failed"; continue
-    fi
-    echo "[DEBUG] $(date) Created vlan for pod[POD$name]"    
-        
-	#add clusters
-	echo "[DEBUG] $(date) Starting Creation of $clusters_per_pod clusters for pod[POD$name]"
-	for ((cluster=1;cluster<=$clusters_per_pod;cluster++))
-	do
-	    echo "[DEBUG] $(date) Creating cluster[POD$name-CLUSTER$cluster] for pod[POD$name]"
-		cluster_query="GET  http://$host/client/?command=addCluster&hypervisor=Simulator&clustertype=CloudManaged&zoneId=$zoneid&podId=$pod_id&clustername=POD$name-CLUSTER$cluster HTTP/1.0\n\n"
-        cluster_out=$(echo -e $cluster_query | nc -v -w $delay $host 8096)
-        cluster_id=$(echo $cluster_out | sed 's/\(.*<id>\)\([0-9]*\)\(.*\)/\2/g')
-        if ! [[ "$cluster_id" =~ ^[0-9]+$ ]] ; then
-           exec >&2; echo "[ERROR] $(date) cluster[POD$name-CLUSTER$cluster] creation for pod[POD$name] failed"; continue
-        fi          
-        echo "[DEBUG] $(date) Created cluster["$cluster_id":POD"$name"-CLUSTER"$cluster"]"
-        cluster_array[$(($name*$clusters_per_pod + $cluster))]=$cluster_id
-	done
-	echo "[DEBUG] $(date) Finished Creating clusters for pod[POD$name]"
-    let y+=1
-    if [ "$y" -eq 256 ]
-    then
-        let x+=1
-        y=1
-    fi	
-done
-echo "[DEBUG] $(date) Finished Creating $numberofpods Pods"
-
-#echo "DEBUG:Pods and Clusters"
-#echo "PODS:("${#pod_array[@]}")" ${pod_array[@]}
-#echo "CLUSTERS:("${#cluster_array[@]}")" ${cluster_array[@]}
-echo
-echo
-
-#Add hosts
-#TAG1
-for ((i=1;i<=$tag_one_range;i++))
-do
-    podid=${pod_array[$i]}
-    for ((j=1;j<=$hosts_per_pod;j++))
-	do
-	    clusterid=${cluster_array[$(($i*$clusters_per_pod + $j))]}
-	    host_query="GET	http://$host/client/?command=addHost&zoneId=$zoneid&podId=$podid&username=sim&password=sim&clusterid=$clusterid&url=http%3A%2F%2Fsim&hypervisor=Simulator&clustertype=CloudManaged&hosttags=$tag1	HTTP/1.0\n\n"
-		host_out=$(echo -e $host_query | nc -v -w $delay $host 8096)
-		host_id=$(echo $host_out | sed 's/\(.*<id>\)\([0-9]*\)\(.*\)/\2/g')
-		if ! [[ "$host_id" =~ ^[0-9]+$ ]] ; then
-           exec >&2; echo "[ERROR] $(date) host addition failed in [pod:$podid,cluster:$clusterid]"; continue
-        fi 
-		host_name=$(echo $host_out | sed 's/\(.*<name>\)\(SimulatedAgent.[-0-9a-zA-Z]*\)\(.*\)/\2/g')
-		echo "[DEBUG] $date added host [$host_id:$host_name] to [pod:$podid,cluster:$clusterid] for TAG1"
-	done	
-done
-
-#TAG2
-for ((i=$(($tag_one_range + 1));i<=$(($tag_one_range + $tag_two_range));i++))
-do
-    podid=${pod_array[$i]}
-    for ((j=1;j<=$hosts_per_pod;j++))
-	do
-	    clusterid=${cluster_array[$(($i*$clusters_per_pod + $j))]}
-	    host_query="GET	http://$host/client/?command=addHost&zoneId=$zoneid&podId=$podid&username=sim&password=sim&clusterid=$clusterid&url=http%3A%2F%2Fsim&hypervisor=Simulator&clustertype=CloudManaged&hosttags=$tag2	HTTP/1.0\n\n"
-		host_out=$(echo -e $host_query | nc -v -w $delay $host 8096)
-		host_id=$(echo $host_out | sed 's/\(.*<id>\)\([0-9]*\)\(.*\)/\2/g')
-		if ! [[ "$host_id" =~ ^[0-9]+$ ]] ; then
-           exec >&2; echo "[ERROR] $(date) host addition failed in [pod:$podid,cluster:$clusterid]"; continue
-        fi 
-		host_name=$(echo $host_out | sed 's/\(.*<name>\)\(SimulatedAgent.[-0-9a-zA-Z]*\)\(.*\)/\2/g')
-		echo "[DEBUG] $date added host [$host_id:$host_name] to [pod:$podid,cluster:$clusterid] for TAG2"		
-	done
-done
-
-#TAG3
-for ((i=$(($tag_two_range + $tag_one_range + 1));i<=$(($tag_three_range + $tag_two_range + $tag_one_range));i++))
-do
-    podid=${pod_array[$i]}
-    for ((j=1;j<=$hosts_per_pod;j++))
-	do
-	    clusterid=${cluster_array[$(($i*$clusters_per_pod + $j))]}
-	    host_query="GET	http://$host/client/?command=addHost&zoneId=$zoneid&podId=$podid&username=sim&password=sim&clusterid=$clusterid&url=http%3A%2F%2Fsim&hypervisor=Simulator&clustertype=CloudManaged&hosttags=$tag3	HTTP/1.0\n\n"
-		host_out=$(echo -e $host_query | nc -v -w $delay $host 8096)
-		host_id=$(echo $host_out | sed 's/\(.*<id>\)\([0-9]*\)\(.*\)/\2/g')
-		if ! [[ "$host_id" =~ ^[0-9]+$ ]] ; then
-           exec >&2; echo "[ERROR] $(date) host addition failed in [pod:$podid,cluster:$clusterid]"; continue
-        fi 
-		host_name=$(echo $host_out | sed 's/\(.*<name>\)\(SimulatedAgent.[-0-9a-zA-Z]*\)\(.*\)/\2/g')
-		echo "[DEBUG] $date added host [$host_id:$host_name] to [pod:$podid,cluster:$clusterid] for TAG3"		
-	done	
-done
-
-echo "Setup complete"
-exit 0

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/reconnectStats.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/reconnectStats.sh b/agent-simulator/scripts/zucchini/__old__/reconnectStats.sh
deleted file mode 100755
index 8cba78a..0000000
--- a/agent-simulator/scripts/zucchini/__old__/reconnectStats.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-
- 
-
-name=$1
-while [ 1 ]
-do
-	mysql -s -r -uroot -Dcloud -h10.1.1.215 -e"select count(id),now(),max(disconnected),mgmt_server_id,status from host group by mgmt_server_id,status;" >> $1
-	sleep 5
-	echo --------------------------------------------------------------------------------------------------------------------- >> $1
-done

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/setup.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/setup.sh b/agent-simulator/scripts/zucchini/__old__/setup.sh
deleted file mode 100755
index afb561b..0000000
--- a/agent-simulator/scripts/zucchini/__old__/setup.sh
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-
- 
-
-
-#1. Approximately 10 hosts per pod. 
-#2. Only 3 host tags. 
-
-a=$1 #CIDR - 16bytes
-b=$2 #CIDR - 8 bytes
-
-zone_query="GET  http://10.91.30.219/client/?command=createZone&name=Zucchini&dns1=4.2.2.2&internaldns1=4.2.2.2&vlan=10-4000&guestcidraddress=10.1.1.0%2F24  HTTP/1.0\n\n"
-echo -e $zone_query | nc -v -q 120 10.91.30.219 8096
-
-# Pod Ratio: 38:15:47 @ 10 hosts per pod
-let x=a
-let y=b
-for name in `seq 1 152`
-do
-	pod_query="GET  http://10.91.30.219:8096/client/?command=createPod&zoneId=1&name=POD$name&cidr=172.$x.$y.0%2F24&startIp=172.$x.$y.2&endIp=172.$x.$y.252&gateway=172.$x.$y.1	HTTP/1.0\n\n"
-	vlan_query="GET http://10.91.30.219:8096/client/?command=createVlanIpRange&vlan=untagged&zoneid=1&podId=$name&forVirtualNetwork=false&gateway=172.$y.$x.1&netmask=255.255.255.0&startip=172.$y.$x.2&endip=172.$y.$x.252        HTTP/1.0\n\n"
-	echo -e $pod_query | nc -v -q 20 10.91.30.219 8096
-	echo -e $vlan_query | nc -v -q 20 10.91.30.219 8096
-
-	for cluster in `seq 1 10`
-	do
-		host_query="GET	http://10.91.30.219:8096/client/?command=addHost&zoneId=1&podId=$name&username=sim&password=sim&clustername=simulator-POD$name-CLUSTER$cluster&hosttags=TAG1&url=http%3A%2F%2Fsim	HTTP/1.0\n\n"
-		echo -e $host_query | nc -v -q 6000 10.91.30.219 8096
-	done
-
-	let x+=1
-	let y+=1
-done
-
-#reset for tag2
-let x=a
-let y=b
-for name in `seq 153 212`
-do
-	pod_query="GET  http://10.91.30.219:8096/client/?command=createPod&zoneId=1&name=POD$name&cidr=182.$x.$y.0%2F24&startIp=182.$x.$y.2&endIp=182.$x.$y.252&gateway=182.$x.$y.1	HTTP/1.0\n\n"
-	vlan_query="GET http://10.91.30.219:8096/client/?command=createVlanIpRange&vlan=untagged&zoneid=1&podId=$name&forVirtualNetwork=false&gateway=182.$y.$x.1&netmask=255.255.255.0&startip=182.$y.$x.2&endip=182.$y.$x.252        HTTP/1.0\n\n"
-	echo -e $pod_query | nc -v -q 20 10.91.30.219 8096
-	echo -e $vlan_query | nc -v -q 20 10.91.30.219 8096
-
-	for cluster in `seq 1 10`
-	do
-		host_query="GET	http://10.91.30.219:8096/client/?command=addHost&zoneId=1&podId=$name&username=sim&password=sim&clustername=simulator-POD$name-CLUSTER$cluster&hosttags=TAG2&url=http%3A%2F%2Fsim	HTTP/1.0\n\n"
-		echo -e $host_query | nc -v -q 6000 10.91.30.219 8096
-	done
-
-	let x+=1
-	let y+=1
-done
-
-#reset for TAG3
-let x=a
-let y=b
-for name in `seq 213 400`
-do
-	pod_query="GET  http://10.91.30.219:8096/client/?command=createPod&zoneId=1&name=POD$name&cidr=192.$x.$y.0%2F24&startIp=192.$x.$y.2&endIp=192.$x.$y.252&gateway=192.$x.$y.1	HTTP/1.0\n\n"
-	vlan_query="GET http://10.91.30.219:8096/client/?command=createVlanIpRange&vlan=untagged&zoneid=1&podId=$name&forVirtualNetwork=false&gateway=192.$y.$x.1&netmask=255.255.255.0&startip=192.$y.$x.2&endip=192.$y.$x.252        HTTP/1.0\n\n"
-	echo -e $pod_query | nc -v -q 20 10.91.30.219 8096
-	echo -e $vlan_query | nc -v -q 20 10.91.30.219 8096
-
-	for cluster in `seq 1 10`
-	do
-		host_query="GET	http://10.91.30.219:8096/client/?command=addHost&zoneId=1&podId=$name&username=sim&password=sim&clustername=simulator-POD$name-CLUSTER$cluster&hosttags=TAG3&url=http%3A%2F%2Fsim	HTTP/1.0\n\n"
-		echo -e $host_query | nc -v -q 6000 10.91.30.219 8096
-	done
-
-	let x+=1
-	let y+=1
-done

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/setupDirectPods.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/setupDirectPods.sh b/agent-simulator/scripts/zucchini/__old__/setupDirectPods.sh
deleted file mode 100755
index 1993096..0000000
--- a/agent-simulator/scripts/zucchini/__old__/setupDirectPods.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
- 
-
-x=$1
-y=$2
-name=$3
-
-pod_query="GET  http://10.91.30.212:8096/client/?command=createPod&zoneId=1&name=SSP$name&cidr=182.$x.$y.0%2F24&startIp=182.$x.$y.2&endIp=182.$x.$y.252&gateway=182.$x.$y.1
-HTTP/1.0\n\n"
-
-echo -e $pod_query | nc -v -w 20 10.91.30.212 8096
-
-#vlan_query="GET http://10.91.30.212/client/?command=createVlanIpRange&vlan=untagged&zoneid=1&podId=$name&forVirtualNetwork=false&gateway=172.$y.$x.1&netmask=255.255.255.0&startip=172.$y.$x.2&endip=172.$y.$x.252        HTTP/1.0\n\n"
-
-#echo -e $vlan_query | nc -v -w 20 10.91.30.212 8096

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/setupHosts.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/setupHosts.sh b/agent-simulator/scripts/zucchini/__old__/setupHosts.sh
deleted file mode 100755
index 29607ce..0000000
--- a/agent-simulator/scripts/zucchini/__old__/setupHosts.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
- 
-
-name=$1
-
-host_query="GET	http://10.91.30.226:8096/client/?command=addHost&zoneId=1&podId=$((name+250))&username=sim&password=sim&clustername=simulator-$name&hosttags=RP$name&url=http%3A%2F%2Fsim	HTTP/1.0\n\n"
-echo -e $host_query | nc -v -q 60 10.91.30.226 8096

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/setupPodAndNetwork.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/setupPodAndNetwork.sh b/agent-simulator/scripts/zucchini/__old__/setupPodAndNetwork.sh
deleted file mode 100755
index 606daf7..0000000
--- a/agent-simulator/scripts/zucchini/__old__/setupPodAndNetwork.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
- 
-
-workers=$1
-x=$2 #CIDR - 16bytes
-y=$3 #CIDR - 8 bytes
-
-for name in `seq 1 $workers`
-do
-	pod_query="GET  http://10.91.30.226:8096/client/?command=createPod&zoneId=1&name=RP$name&cidr=182.$x.$y.0%2F24&startIp=182.$x.$y.2&endIp=182.$x.$y.252&gateway=182.$x.$y.1	HTTP/1.0\n\n"
-	vlan_query="GET http://10.91.30.226:8096/client/?command=createVlanIpRange&vlan=untagged&zoneid=1&podId=$((name+250))&forVirtualNetwork=false&gateway=182.$y.$x.1&netmask=255.255.255.0&startip=182.$y.$x.2&endip=182.$y.$x.252        HTTP/1.0\n\n"
-	so_query="GET	http://10.91.30.226:8096/client/?command=createServiceOffering&name=RP$name&displayText=RP$name&storageType=local&cpuNumber=1&cpuSpeed=1000&memory=512&offerha=false&usevirtualnetwork=false&hosttags=RP$name	HTTP/1.0\n\n"
-
-	echo -e $pod_query | nc -v -q 20 10.91.30.226 8096
-	echo -e $vlan_query | nc -v -q 20 10.91.30.226 8096
-	echo -e $so_query | nc -v -q 20 10.91.30.226 8096
-
-	let x+=1
-	let y+=1
-done
-
-
-

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/setupServiceOffering.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/setupServiceOffering.sh b/agent-simulator/scripts/zucchini/__old__/setupServiceOffering.sh
deleted file mode 100755
index fecf242..0000000
--- a/agent-simulator/scripts/zucchini/__old__/setupServiceOffering.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
- 
-
-x=$1
-
-so_query="GET	http://10.91.30.226:8096/client/?command=createServiceOffering&name=SO$x&displayText=SO$x&storageType=local&cpuNumber=1&cpuSpeed=1000&memory=512&offerha=false&usevirtualnetwork=false&hosttags=SP$x	HTTP/1.0\n\n"
-
-echo -e $so_query | nc -v -q 20 10.91.30.226 8096

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1a18d5ca/agent-simulator/scripts/zucchini/__old__/setupVlan.sh
----------------------------------------------------------------------
diff --git a/agent-simulator/scripts/zucchini/__old__/setupVlan.sh b/agent-simulator/scripts/zucchini/__old__/setupVlan.sh
deleted file mode 100755
index 0d2587e..0000000
--- a/agent-simulator/scripts/zucchini/__old__/setupVlan.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-# 
-#   http://www.apache.org/licenses/LICENSE-2.0
-# 
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
- 
-
-x=$1
-y=$2
-name=$3
-
-vlan_query="GET http://10.91.30.212/client/?command=createVlanIpRange&vlan=untagged&zoneid=1&podId=$name&forVirtualNetwork=false&gateway=172.$x.$y.1&netmask=255.255.255.0&startip=172.$x.$y.2&endip=172.$x.$y.252        HTTP/1.0\n\n"
-
-echo -e $vlan_query | nc -v -w 20 10.91.30.212 8096


Mime
View raw message