Cat 192.168.101.* | grep Load | awk ' {sum+=$4} END {print ' average= ', sum/nr} '
Cat 192.168.101.* | grep Memory | awk ' {sum+=$3} END {print ' average= ', sum/nr} '
Cat 192.168.101.* | grep Os-root | awk ' {sum+=$5} END {print ' average= ', sum/nr} '
Cat 192.168.101.* | grep Load | awk ' BEGIN {max = 0} {if ($4>max) max=$4 fi} END {print "max=", Max} '
Cat 192.168.101.* | grep Memory | awk ' BEGIN {max = 0} {if ($3>max) max=$3 fi} END {print "max=", Max} '
Cat 192.168.101.* | grep Os-root | awk ' BEGIN {max = 0} {if ($5>max) max=$5 fi} END {print "max=", Max} '
The Orange one has an error, as follows:
[[email protected]]# cat 192.168.101.* | grep load
System load average:0.73
System load average:1.32
S Ystem load average:0.59
System load average:1.55
System load average:1.92
System load average:1.28
System Load average:1.00
System load average:0.29
System load average:2.42
System load average:1.14
System load a verage:0.45
System load average:0.10
System load average:2.01
System load average:1.40
System load Average : 1.21
System load average:0.82
system load average:14.61
system load average:3.40
System load average:0.17
System load average:2.39
System load average:0.16
System load average:3.25
Sy Stem load average:1.15
System load average:0.26
System load average:0.17
[[Email protected]]# cat 192.168.101.* | grep Load | awk ' BEGIN {max = 0} {if ($4>max) max=$4 fi} END {print "max=", Max} '
max= 3.40
It turned out to be 3.40, not 14.61.
Pending inquiry
Calculate node system load, memory utilization, and disk utilization average and peak in a single day