how to get cpu and memory configuration on sun

Hi folks, can you please help to print cpu and memory configuration on sun host.

try:

prtdiag -v

OpenSolaris also provides lgrpinfo.

psrinfo [-v] and prtconf can be used on Solaris releases that lack prtdiag.

for configuration->prtdiag -v
Other details-> psrinfo -v, prtconf -v |grep -i mem, prtconf -v |grep proc