#!/bin/bash
CVE=evacontroller
EVA="Holiday Extras EVA01"

#MYARG1="ls host full"

MYARG2="ADD CONTAINER \"\Virtual Disks\hostgroup\host\host_cont\" size=65 disk_group=\"Disk Group\" redundancy=Vraid5"

MYARG3="SET VDISK \"\Virtual Disks\hostgroup\host\original_host_data\" WRITECACHE=writethrough"

MYARG4="ADD COPY \"\Virtual Disks\hostgroup\host\hostSClone_test\" VDISK=\"\Virtual Disks\hostgroup\host\original_host_data\" CONTAINER=\"\Virtual Disks\hostgroup\host\host_cont\" WAIT_FOR_COMPLETION"

MYARG5="ADD LUN 2 VDISK=\"\Virtual Disks\hostgroup\host\hostSClone_test\" HOST=\"\Hosts\mysnaphost\mysnaphost1\""

USER=xxxxxxxxx
PASS=xxxxxxxxx
OUTFILE=test.txt

/usr/local/src/sssu_sles9_x86 "SET OPTIONS COMMAND_DELAY=30" "select manager ${CVE} username=${USER} password=${PASS}" "select system \"${EVA}\"" "${MYARG2}" "${MYARG3}" "${MYARG4}" "${MYARG5}" "exit" >> ${OUTFILE}