update
This commit is contained in:
@@ -818,9 +818,7 @@ HOSTPOWER(){
|
||||
fi
|
||||
|
||||
if [ "${TEST}" != "true" ]; then
|
||||
echo "${idracip}"
|
||||
current_status=$(ipmitool -I lanplus -H ${idracip} -U ${PW_ESXI_USER} -P "${PW_ESXI_PASS}" chassis power status | grep "Power is ${2,,}")
|
||||
echo "-"
|
||||
if [ "${current_status}" == "" ]; then
|
||||
echo -e "${idsCL[Green]}"
|
||||
ipmitool -I lanplus -H ${idracip} -U ${PW_ESXI_USER} -P "${PW_ESXI_PASS}" chassis power ${2,,}
|
||||
|
||||
Reference in New Issue
Block a user