update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
VERS='2.7.54-05242024'
|
||||
VERS='2.7.55-05252024'
|
||||
|
||||
noheader=' update service dailytemp confsync -r -report '
|
||||
|
||||
|
||||
13
powerwall.sh
13
powerwall.sh
@@ -478,6 +478,19 @@ SHUTDOWN_SERVER(){
|
||||
touch ${PW_TMPFOLDER}/maintmode.${ESXI_HOST}
|
||||
fi
|
||||
|
||||
##DECREASE CPU OVERCOMMIT
|
||||
if [[ "${PW_OFFSITE_HOSTS}" != *"${ESXI_HOST}"* ]] && [ "${ESXI_HOST}" != "OFFSITE" ]; then
|
||||
MSG="Decreasing DRS CPU-Overcommit back down to 2"
|
||||
c=0; MSG_SPC=''; spc1=`expr ${HC_CW} - ${#MSG}`; until [ ${c} = ${spc1} ]; do MSG_SPC="${MSG_SPC} "; ((c++)); done
|
||||
echo -en "${idsCL[White]}${MSG}${MSG_SPC}: "
|
||||
if [ "${TEST}" != "true" ]; then
|
||||
${PW_FOLDER}/esxi-scripts/set-drs.ps1 2 >/dev/null 2>&1 &
|
||||
echo -e "${idsCL[Green]}Command Sent${idsCL[Default]}\n"
|
||||
else
|
||||
echo -e "${idsCL[Yellow]}(TEST MODE)${idsCL[Default]}\n"
|
||||
fi
|
||||
fi
|
||||
|
||||
else
|
||||
echo -e "${idsCL[LightRed]}Host cannot be found for '${1}'${idsCL[Default]}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user