OnDemand User Group

Support Forums => MP Server => Topic started by: galina raychuk on April 03, 2024, 08:22:27 AM

Title: ARSXML Export Application group along with Applications
Post by: galina raychuk on April 03, 2024, 08:22:27 AM
Need to export an application group with applications attached to App group.
Looking for some examples. Thank you

I have this to export application group:
#This function will export all existing appgroups from ags.list, update appgroup name to $grpname-ANEX and Account Number to length of 9
function exportappgroupARSXML {
PWD=$(pwd)
appgrps=`cat ${WDIR}/ags.list`
for grpname in ${appgrps}
  do
 cp ${WDIR}/xmlheader ${XMLFILE}
echo $grpname
echo "   <applicationGroup name=\"${grpname}\">" >>${XMLFILE}
echo "  </applicationGroup>" >>$XMLFILE
echo "  </onDemand>" >>$XMLFILE
${ARSXML} export -h ${HOST} -u ${ADM} -p ${PW} -i ${XMLFILE} -r pl -v >${tempout}
Title: Re: ARSXML Export Application group along with Applications
Post by: Mehmet S Yersel on April 03, 2024, 01:24:16 PM
You need to add the -r a option for exporting applications contained within the application group. This part should be:

${ARSXML} export -h ${HOST} -u ${ADM} -p ${PW} -i ${XMLFILE} -r apl -v >${tempout}
Title: Re: ARSXML Export Application group along with Applications
Post by: galina raychuk on April 04, 2024, 07:10:21 AM
Thanks a lot. I did have -r but needed a (for application).