FUSE_HOME=/opt/jboss-fuse-6.3.0.redhat-343
CLIENT="bin/client -u admin -p admin -h localhost"
FULL_CLIENT=$FUSE_HOME/$CLIENT

$FULL_CLIENT "container-remove-profile host1 test1; container-remove-profile sshhost2 test1; container-remove-profile sshhost3 test1; profile-delete test1"
$FULL_CLIENT "profile-create test1; container-add-profile host1 test1; container-add-profile sshhost2 test1; container-add-profile sshhost3 test1"

COMMAND_PROFILE_EDIT="fabric:profile-edit --pid numbers/number1=1 test1; fabric:profile-edit --pid numbers/number2=1 test1; fabric:profile-edit --pid numbers/number3=1 test1"

for j in {2..19}
do
  COMMAND_PROFILE_EDIT="$COMMAND_PROFILE_EDIT ; fabric:profile-edit --pid numbers/number1=$j test1 ; fabric:profile-edit --pid numbers/number2=$j test1; fabric:profile-edit --pid numbers/number3=$j test1"
done
#$FULL_CLIENT "$COMMAND_PROFILE_EDIT"

for i in {1..50}
do
  $FULL_CLIENT "$COMMAND_PROFILE_EDIT"
done


