Sar + awk to show free RAM in GB


for i in $(ls /var/log/sa/ | egrep -vi sar); do sar -r -f /var/log/sa/$i | awk ‘{derp = ($4 – $6 – $7)/1024/1024; print derp}’ | sort | uniq; done

Leave a Reply

Your email address will not be published. Required fields are marked *