update
This commit is contained in:
@@ -118,7 +118,7 @@ PW_HOST_ADDRESSES['iDS-vMS-Host7']='10.10.2.17'
|
|||||||
PW_HOST_ADDRESSES['OFF-vMS-Host1']='10.2.1.11'
|
PW_HOST_ADDRESSES['OFF-vMS-Host1']='10.2.1.11'
|
||||||
|
|
||||||
declare -A PW_ESXI_HOST_NAMES
|
declare -A PW_ESXI_HOST_NAMES
|
||||||
PW_ESXI_HOST_NAMES['10.10.2.10']='iDS-vMS-iSCSI'
|
PW_ESXI_HOST_NAMES['10.10.2.10']='iDS-vMS-Host0'
|
||||||
PW_ESXI_HOST_NAMES['10.10.2.11']='iDS-vMS-Host1'
|
PW_ESXI_HOST_NAMES['10.10.2.11']='iDS-vMS-Host1'
|
||||||
# PW_ESXI_HOST_NAMES['10.10.2.12']='iDS-vMS2-Host2'
|
# PW_ESXI_HOST_NAMES['10.10.2.12']='iDS-vMS2-Host2'
|
||||||
PW_ESXI_HOST_NAMES['10.10.2.16']='iDS-vMS-Host6'
|
PW_ESXI_HOST_NAMES['10.10.2.16']='iDS-vMS-Host6'
|
||||||
|
|||||||
@@ -1620,9 +1620,6 @@ ISCSISYSVMSHUTDOWN(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
HOSTPOWER(){
|
HOSTPOWER(){
|
||||||
echo -e "\n${idsCL[Yellow]}Host Power Control"
|
|
||||||
DIVIDER . yellow 75
|
|
||||||
|
|
||||||
if [ "${PW_iDRACHOST_SHORTNAMES[${1}]}" != "" ]; then
|
if [ "${PW_iDRACHOST_SHORTNAMES[${1}]}" != "" ]; then
|
||||||
idracip=${1}
|
idracip=${1}
|
||||||
elif [ "${PW_ESXI_HOST_NAMES[${1}]}" != "" ]; then
|
elif [ "${PW_ESXI_HOST_NAMES[${1}]}" != "" ]; then
|
||||||
@@ -1636,6 +1633,9 @@ HOSTPOWER(){
|
|||||||
idracip=''
|
idracip=''
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo -e "\n${idsCL[Yellow]}POWERING ${2^^} '${PW_iDRACHOST_SHORTNAMES[${idracip}]}'"
|
||||||
|
DIVIDER . yellow 75
|
||||||
|
|
||||||
if [ "${idracip}" != "" ]; then
|
if [ "${idracip}" != "" ]; then
|
||||||
# host=${PW_iDRACHOST_SHORTNAMES[${idracip}]}
|
# host=${PW_iDRACHOST_SHORTNAMES[${idracip}]}
|
||||||
# c=0; spcA=''; spc1=`expr 21 - ${#host} - 1`; until [ ${c} = ${spc1} ]; do spcA="${spcA} "; c=`expr ${c} + 1`; done
|
# c=0; spcA=''; spc1=`expr 21 - ${#host} - 1`; until [ ${c} = ${spc1} ]; do spcA="${spcA} "; c=`expr ${c} + 1`; done
|
||||||
|
|||||||
Reference in New Issue
Block a user