On SUN Servers, use the following to work out the number of cpus:
expr `mpstat wc -l` - 1
where:
mpstat gives information about cpu's and heading info,
wc-l gives the number of lines in the output,
expr lets you use some maths to remove the heading in the count of number of cpu's.
4096 Columns
3 weeks ago