how to get how many cpu does my box have? what is the command,
try prtconf
You can also try....
\#psrinfo
Any of the following:
#lsdev -Ccprocessor | grep -ci available
# lparstat -i | grep "Online Virtual CPUs"
Online Virtual CPUs : x
The following will tell you what the specification is...
# lsattr -El proc0
Looks like virtually every command will tell you how many CPUs the box has. ;-))
Well, here is one more possibility: "vmstat 1" will, before the normal vmstat-output, print a line with "cpu=<nr>" and "lcpu=<nr>". The number after "cpu=" is the number of physical CPUs, the number after "lcpu=" is the number of logical CPUs.
bakunin
You can try "uname -X". however this command will not work in GNU/Linux
uname -X does not work in aix,hpux also 