You know you can parse cpus from dmidecode in Linux also.
Thats the way ive done it. Seems to work on a bunch of diffrent Sun and HP-servers with SuSE, ubuntu and debian and with sparc, x86 and x86-64 archs
"Anyone attempting to generate random numbers by deterministic means is, of course, living in a state of sin." -- John Von Neumann