The Assure MIMIX for AIX start script needs to be placed at the beginning of the application server startup sequence, before applications are started.
#!/bin/ksh
#****** Modify the CONTEXT_ID (Primary ContextID) and ******
#****** FAILOVER_CONTEXT_ID (Failover ContextID) below ******
#****** to match your environment ######
CONTEXT_ID=1
FAILOVER_CONTEXT_ID=17
# Read Environment and Common Functions
. /usr/scrt/bin/sccfgd_arch
DATE_CMD=$(date +"%Y-%m-%d %T")
RTSTARTLOG=/usr/scrt/log/rtstart_c${CONTEXT_ID}.log
echo "${DATE_CMD}: Starting ${PRODUCT_NAME} ..." > ${RTSTARTLOG}
/usr/scrt/bin/rtattr -C${CONTEXT_ID} -o production -a HostId -v $(/usr/scrt/bin/rthostid)
/usr/scrt/bin/rtattr -C${FAILOVER_CONTEXT_ID} -o backup -a HostId -v $(/usr/scrt/bin/rthostid)
LVS=$(odmget -q"ContextID=${CONTEXT_ID} and ObjectType=SCRT/containers/PDFC and ObjectAttributeName=FileName" SCCuAttr | \
awk '
{
gsub(/"/,"")
if ($1=="ObjectName")
{
printf("%s\n",$3)
}
}')
for lv in $LVS
do
rm -f /dev/recd$lv
rm -f /dev/rrecd$lv
done
/usr/scrt/bin/rtstart -C${CONTEXT_ID} >> ${RTSTARTLOG} 2>&1
if [[ $? -ne 0 ]]
then
echo "${DATE_CMD}: ${PRODUCT_NAME} startup failed" >> ${RTSTARTLOG} 2>&1
exit 1
fi
echo "${DATE_CMD}: ${PRODUCT_NAME} startup successful" >> ${RTSTARTLOG} 2>&1
#****** <Insert your application start script here> ******
exit 0