Update powerwall.sh
This commit is contained in:
@@ -2318,14 +2318,20 @@ fi
|
|||||||
echo -e "Usage: ${idsCL[Yellow]}[powerwall or pw] check {type} {flags} ${idsCL[Default]} {"
|
echo -e "Usage: ${idsCL[Yellow]}[powerwall or pw] check {type} {flags} ${idsCL[Default]} {"
|
||||||
width=35
|
width=35
|
||||||
printf "%-${width}s- %s\n" " {type}" "{power / temp} To check either power or temperatures"
|
printf "%-${width}s- %s\n" " {type}" "{power / temp} To check either power or temperatures"
|
||||||
|
printf "%-${width}s- %s\n" " 'power' flag options" ""
|
||||||
printf "%-${width}s- %s\n" " -a|-avg {#days}" "Show average values for X number of days"
|
printf "%-${width}s- %s\n" " -a|-avg {#days}" "Show average values for X number of days"
|
||||||
printf "%-${width}s- %s\n" " -m|-mainsite" "Narrow to Mainsite Equipment"
|
printf "%-${width}s- %s\n" " -m|-mainsite" "Narrow to Mainsite Equipment"
|
||||||
printf "%-${width}s- %s\n" " -o|-offsite" "Narrow to Offsite Equipment"
|
printf "%-${width}s- %s\n" " -o|-offsite" "Narrow to Offsite Equipment"
|
||||||
printf "%-${width}s- %s\n" " -p|-power" "Narrow to Power Equipment"
|
printf "%-${width}s- %s\n" " -p|-power" "Narrow to Power Equipment"
|
||||||
printf "%-${width}s- %s\n" " -e|-esxi" "Narrow to ESXi Hosts"
|
printf "%-${width}s- %s\n" " -e|-esxi" "Narrow to ESXi Hosts"
|
||||||
|
printf "%-${width}s- %s\n" " 'temp' flag options" ""
|
||||||
|
printf "%-${width}s- %s\n" " -a|-avg {#days}" "Show average values for X number of days"
|
||||||
|
printf "%-${width}s- %s\n" " -s|-search" "Narrow to search of sensor name"
|
||||||
echo -e "}\n"
|
echo -e "}\n"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
-a|-avg) avgdays=${2};;
|
||||||
|
-s|-search) search=${2};;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
test) CHECKTEMP ${2} ${3};;
|
test) CHECKTEMP ${2} ${3};;
|
||||||
|
|||||||
Reference in New Issue
Block a user