Update powerwall.sh

This commit is contained in:
2023-10-31 21:40:31 -05:00
parent 634070edb7
commit 6e79e89f88

View File

@@ -1154,8 +1154,9 @@ HOSTPOWER(){
if [ "${idracip}" != "" ]; then
host=${PW_iDRACHOST_SHORTNAMES[${idracip}]}
echo -e "${idsCL[LightCyan]}Host : ${PW_HOST_ADDRESSES[${host}]} (${host})${idsCL[Default]}"
echo -e "${idsCL[LightCyan]}iDrac : ${idracip}${idsCL[Default]}"
echo -e "${idsCL[LightCyan]}Hostname : ${idsCL[Green]}${host}${idsCL[Default]}"
echo -e "${idsCL[LightCyan]}Host IP : ${idsCL[Green]}${PW_HOST_ADDRESSES[${host}]}${idsCL[Default]}"
echo -e "${idsCL[LightCyan]}iDrac IP : ${idsCL[Green]}${idracip}${idsCL[Default]}"
echo
if [ "${2,,}" == "on" ] || [ "${2,,}" == "off" ] || [ "${2,,}" == "status" ]; then
ssh root@${PW_RACADM_ACCESS} ipmitool -I lanplus -H ${idracip} -U ${PW_ESXI_USER} -P "'${PW_ESXI_PASS}'" chassis power ${2,,}