Update powerwall.sh
This commit is contained in:
@@ -1154,8 +1154,9 @@ HOSTPOWER(){
|
|||||||
|
|
||||||
if [ "${idracip}" != "" ]; then
|
if [ "${idracip}" != "" ]; then
|
||||||
host=${PW_iDRACHOST_SHORTNAMES[${idracip}]}
|
host=${PW_iDRACHOST_SHORTNAMES[${idracip}]}
|
||||||
echo -e "${idsCL[LightCyan]}Host : ${PW_HOST_ADDRESSES[${host}]} (${host})${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}Hostname : ${idsCL[Green]}${host}${idsCL[Default]}"
|
||||||
echo -e "${idsCL[LightCyan]}iDrac : ${idracip}${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
|
echo
|
||||||
if [ "${2,,}" == "on" ] || [ "${2,,}" == "off" ] || [ "${2,,}" == "status" ]; then
|
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,,}
|
ssh root@${PW_RACADM_ACCESS} ipmitool -I lanplus -H ${idracip} -U ${PW_ESXI_USER} -P "'${PW_ESXI_PASS}'" chassis power ${2,,}
|
||||||
|
|||||||
Reference in New Issue
Block a user