top -b -n2 | grep 'Cpu(s)' | awk 'FNR >1 {print $2 + $4}'
top -b -n1 | grep 'Mem' | awk '{print $2 "," $4 " ," $6}'
free -m | grep 'Mem' | awk '{print $2 "," $3 " ," $4}'