Use prtdiag. Example:
$ /usr/platform/sun4u/sbin/prtdiag
System Configuration: Sun Microsystems sun4u SUNW,Ultra-Enterprise-10000
System clock frequency: 100 MHz
Memory size: 4096 Megabytes
========================= CPUs =========================
Run Ecache CPU CPU
Brd CPU Module MHz MB Impl. Mask
--- --- ------- ----- ------ ------ ----
1 4 0 400 8.0 US-II 10.0
1 5 1 400 8.0 US-II 10.0
1 6 2 400 8.0 US-II 10.0
1 7 3 400 8.0 US-II 10.0
========================= Memory =========================
Memory Units: Size
0: MB 1: MB 2: MB 3: MB
----- ----- ----- -----
Board 1 1024 1024 1024 1024