Update power.inc.sh
This commit is contained in:
@@ -709,13 +709,13 @@ HOSTPOWER(){
|
||||
|
||||
if [ "${TEST}" != "true" ]; then
|
||||
current_status=$(ipmitool -I lanplus -H ${idracip} -U ${PW_ESXI_USER} -P "${PW_ESXI_PASS}" chassis power status | grep 'Power is on')
|
||||
if [ "${current_status}" == "" ]; then
|
||||
# if [ "${current_status}" == "" ]; then
|
||||
echo -e "${idsCL[Green]}"
|
||||
ipmitool -I lanplus -H ${idracip} -U ${PW_ESXI_USER} -P "${PW_ESXI_PASS}" chassis power ${2,,}
|
||||
else
|
||||
echo -e "\n${idsCL[LightCyan]}Host is already Powered ON${idsCL[Default]}"
|
||||
|
||||
fi
|
||||
# else
|
||||
# echo -e "\n${idsCL[LightCyan]}Host is already Powered ON${idsCL[Default]}"
|
||||
#
|
||||
# fi
|
||||
else
|
||||
echo -e "\n${idsCL[Yellow]}(TEST MODE)"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user