Update powerwall.sh
This commit is contained in:
@@ -505,15 +505,15 @@ DAILYTEMP(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
GETHOSTPOWER(){
|
GETHOSTPOWER(){
|
||||||
# if [ "$(CHECK_HOST ${1})" != "false" ]; then
|
if [ "$(CHECK_HOST ${1})" != "false" ]; then
|
||||||
if [ "${1}" == "10.10.2.26" ]; then
|
if [ "${1}" == "10.10.2.26" ]; then
|
||||||
temp=0
|
temp=0
|
||||||
else
|
else
|
||||||
temp=$(ssh root@${PW_RACADM_ACCESS} racadm -r ${1} -u ${PW_ESXI_USER} -p "'${PW_ESXI_PASS}'" getsensorinfo | grep "System Board Pwr" | awk '/ / {print $6}' | sed -e 's/Watts//g' 2>&1)
|
temp=$(ssh root@${PW_RACADM_ACCESS} racadm -r ${1} -u ${PW_ESXI_USER} -p "'${PW_ESXI_PASS}'" getsensorinfo | grep "System Board Pwr" | awk '/ / {print $6}' | sed -e 's/Watts//g' 2>&1)
|
||||||
fi
|
fi
|
||||||
# else
|
else
|
||||||
# temp=down
|
temp=down
|
||||||
# fi
|
fi
|
||||||
echo ${temp} >| ${PW_TMPFOLDER}/${1}.hostpower
|
echo ${temp} >| ${PW_TMPFOLDER}/${1}.hostpower
|
||||||
}
|
}
|
||||||
check_GETHOSTPOWER(){
|
check_GETHOSTPOWER(){
|
||||||
|
|||||||
Reference in New Issue
Block a user