Finding how many CPUs/Cores/Threads in a Solaris server
Now this will only work in Solaris 10, but this should give a nice output of how many Physical CPUs, Physical Cores, and Threads [Virtual CPUs] are recognized by Solaris. This will work on Solaris 10 for SPARC or x86.
The output looks like this:
**********
user@host:~$ ~/bin/cpucount.sh
In host.example.com there are:
1 Physical CPUs/Sockets
8 Physical Cores across all CPUs
8 [...]