2 ##############################################################################
\r
3 # - Copyright 2012, 2016 AT&T Intellectual Properties
\r
4 ##############################################################################
6 ROOT_DIR=${INSTALL_ROOT}/${distFilesRootDirPath}
\r
8 # Grab the IID of all resources running under the name and same version(s) we're working on and stop those instances
\r
9 ${LRM_HOME}/bin/lrmcli -running | \
\r
10 grep ${artifactId} | \
\r
15 if [ -n "${_iid}" ]; then
\r
16 ${LRM_HOME}/bin/lrmcli -shutdown -iid ${_iid} | grep SUCCESS
\r
17 if [ $? -ne 0 ]; then
\r
18 echo "$LRMID-{_iid} Shutdown failed"
\r
23 # Grab the resources configured under the name and same version we're working on and delete those instances
\r
24 ${LRM_HOME}/bin/lrmcli -configured | \
\r
25 grep ${artifactId} | \
\r
28 while read _name _version _routeoffer
\r
30 if [ -n "${_name}" ]; then
\r
31 ${LRM_HOME}/bin/lrmcli -delete -name ${_name} -version ${_version} -routeoffer ${_routeoffer} | grep SUCCESS
\r
32 if [ $? -ne 0 ]; then
\r
33 echo "${_version} Delete failed"
\r