The mpstat command writes to standard output activities for each available processor.
The mpstat command can be used both on SMP and UP machines, but in the latter, only global average activities will be printed.
Usage
$ mpstat <interval> <count>
Interval is the time in seconds between printing out a line of statistics. Count is the number of lines of output you want.
Note that the first line of output from mpstat (like iostat, vmstat, etc.) contains averages since system boot. The subsequent lines will show current values.
Examples
Different examples of output under different operating systems: