This commit is contained in:
2023-12-09 19:06:58 -06:00
parent b4d861f6f3
commit c366191519
2 changed files with 4 additions and 4 deletions

View File

@@ -118,7 +118,7 @@ PW_HOST_ADDRESSES['iDS-vMS-Host7']='10.10.2.17'
PW_HOST_ADDRESSES['OFF-vMS-Host1']='10.2.1.11'
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.12']='iDS-vMS2-Host2'
PW_ESXI_HOST_NAMES['10.10.2.16']='iDS-vMS-Host6'

View File

@@ -1620,9 +1620,6 @@ ISCSISYSVMSHUTDOWN(){
}
HOSTPOWER(){
echo -e "\n${idsCL[Yellow]}Host Power Control"
DIVIDER . yellow 75
if [ "${PW_iDRACHOST_SHORTNAMES[${1}]}" != "" ]; then
idracip=${1}
elif [ "${PW_ESXI_HOST_NAMES[${1}]}" != "" ]; then
@@ -1636,6 +1633,9 @@ HOSTPOWER(){
idracip=''
fi
echo -e "\n${idsCL[Yellow]}POWERING ${2^^} '${PW_iDRACHOST_SHORTNAMES[${idracip}]}'"
DIVIDER . yellow 75
if [ "${idracip}" != "" ]; then
# host=${PW_iDRACHOST_SHORTNAMES[${idracip}]}
# c=0; spcA=''; spc1=`expr 21 - ${#host} - 1`; until [ ${c} = ${spc1} ]; do spcA="${spcA} "; c=`expr ${c} + 1`; done