Update powerwall.sh
This commit is contained in:
11
powerwall.sh
11
powerwall.sh
@@ -521,7 +521,7 @@ CHECKPOWER(){
|
|||||||
start=`date +%s`
|
start=`date +%s`
|
||||||
rm -f ${PW_TMPFOLDER}/*.hostpower*
|
rm -f ${PW_TMPFOLDER}/*.hostpower*
|
||||||
|
|
||||||
if [ "${1}" == "" ] || [ "${1}" == "mainsite" ]; then
|
if [ "${1}" == "" ] || [ "${1}" == "all" ] || [ "${1}" == "mainsite" ]; then
|
||||||
echo
|
echo
|
||||||
DIVIDER . yellow 75
|
DIVIDER . yellow 75
|
||||||
echo -e "${idsCL[Yellow]}Mainsite Power Information"
|
echo -e "${idsCL[Yellow]}Mainsite Power Information"
|
||||||
@@ -597,7 +597,7 @@ CHECKPOWER(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ "${1}" == "" ] || [ "${1}" == "offsite" ]; then
|
if [ "${1}" == "" ] || [ "${1}" == "all" ] || [ "${1}" == "offsite" ]; then
|
||||||
|
|
||||||
|
|
||||||
DIVIDER . yellow 75
|
DIVIDER . yellow 75
|
||||||
@@ -641,7 +641,6 @@ CHECKPOWER(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# if [ "${1}" == "" ] || [ "${1}" == "hosts" ]; then
|
|
||||||
DIVIDER . yellow 75
|
DIVIDER . yellow 75
|
||||||
echo -e "${idsCL[Yellow]}ESXi Host Power Information"
|
echo -e "${idsCL[Yellow]}ESXi Host Power Information"
|
||||||
DIVIDER . yellow 75
|
DIVIDER . yellow 75
|
||||||
@@ -671,7 +670,6 @@ CHECKPOWER(){
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# fi
|
|
||||||
|
|
||||||
end=`date +%s`; runtime=$((end-start)); echo -e "\nruntime: ${runtime}"
|
end=`date +%s`; runtime=$((end-start)); echo -e "\nruntime: ${runtime}"
|
||||||
[ "${action}" != "" ] && echo
|
[ "${action}" != "" ] && echo
|
||||||
@@ -1610,8 +1608,13 @@ fi
|
|||||||
echo -e "${idsCL[White]} Usage: ${idsCL[LightCyan]}powerwall {option}"
|
echo -e "${idsCL[White]} Usage: ${idsCL[LightCyan]}powerwall {option}"
|
||||||
echo
|
echo
|
||||||
echo -e " ${idsCL[Yellow]}status ${idsCL[Default]}--> PowerWall Status Information"
|
echo -e " ${idsCL[Yellow]}status ${idsCL[Default]}--> PowerWall Status Information"
|
||||||
|
echo -e " ${idsCL[Yellow]}check {type} {opt} ${idsCL[Default]}--> Check Temperature Sensors"
|
||||||
|
echo -e " ${idsCL[LightYellow]} type = { all / temp / power }${idsCL[Default]} --> Defaults to All"
|
||||||
|
echo -e " ${idsCL[LightYellow]} opt = { start / stop / restart / status }"
|
||||||
|
|
||||||
echo -e " ${idsCL[Yellow]}checktemp {searchstring} ${idsCL[Default]}--> Check Temperature Sensors"
|
echo -e " ${idsCL[Yellow]}checktemp {searchstring} ${idsCL[Default]}--> Check Temperature Sensors"
|
||||||
echo -e " ${idsCL[Yellow]}checkpower {avg} ${idsCL[Default]}--> Check Power Readings"
|
echo -e " ${idsCL[Yellow]}checkpower {avg} ${idsCL[Default]}--> Check Power Readings"
|
||||||
|
|
||||||
echo -e " ${idsCL[LightYellow]} avg = { noavg='Does not display average' / "
|
echo -e " ${idsCL[LightYellow]} avg = { noavg='Does not display average' / "
|
||||||
echo -e " #='Num of days for avg' }${idsCL[Default]} --> Defaults to 3 days avg"
|
echo -e " #='Num of days for avg' }${idsCL[Default]} --> Defaults to 3 days avg"
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in New Issue
Block a user