|
|
@ -12,7 +12,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# Number of devices (servers) to create
|
|
|
|
# Number of devices (servers) to create
|
|
|
|
EQXNODENUM="3"
|
|
|
|
EQXNODENUM=1
|
|
|
|
|
|
|
|
|
|
|
|
EQXRAND=`dd bs=12 count=1 if=/dev/random 2>/dev/null | base64 | tr [:upper:] [:lower:] | tr -dc [:alpha:]`
|
|
|
|
EQXRAND=`dd bs=12 count=1 if=/dev/random 2>/dev/null | base64 | tr [:upper:] [:lower:] | tr -dc [:alpha:]`
|
|
|
|
EQXPROJECT="$1"
|
|
|
|
EQXPROJECT="$1"
|
|
|
@ -23,11 +23,6 @@ fi
|
|
|
|
echo "Project Name: $EQXPROJECT"
|
|
|
|
echo "Project Name: $EQXPROJECT"
|
|
|
|
echo "Devices to Create: $EQXNODENUM"
|
|
|
|
echo "Devices to Create: $EQXNODENUM"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# XXX WILL ONLY CREATE NEW PROJECT, NOT USE EXISTING ONE.
|
|
|
|
|
|
|
|
# Running this here creates project twice ?
|
|
|
|
|
|
|
|
#eqx-create-project "$EQXPROJECT"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
i=0
|
|
|
|
i=0
|
|
|
|
while [ $i -lt $EQXNODENUM ]
|
|
|
|
while [ $i -lt $EQXNODENUM ]
|
|
|
|
do eqx-create-device "$EQXPROJECT"
|
|
|
|
do eqx-create-device "$EQXPROJECT"
|
|
|
|