CPU >> top, cat /etc/cpuinfo
Memory >> top, cat /etc/meminfo
CPU >> sar, sar -u 10 60, mpstat 10 60
Memory >> prstat -a -s size
CPU >> topas
Memory >> topas, lsattr -El mem0
Note : Past CPU data can be retrived using sar using the below commands:
LANG=C sar -A -dp [[For today date data]]
LANG=C sar -A -dp -f /var/log/sa/sa01 -s 12:00:00 -e 13:00:00 [[yesterday time period data]]