# Execution problem wid mpstat command

**URL:** <https://community.unix.com/t/execution-problem-wid-mpstat-command/309064>\
**Category:** Linux\
**Created:** [April 25, 2012, 8:27am UTC](https://community.unix.com/t/execution-problem-wid-mpstat-command/309064 "2012-04-25T08:27:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pritesh\_patil](https://community.unix.com/letter_avatar/pritesh_patil/32/5_5575768a8748004e209b776fc1b2916d.png) [@pritesh\_patil](https://community.unix.com/u/pritesh_patil)\
**Post date:** [April 25, 2012, 8:27am UTC](https://community.unix.com/t/execution-problem-wid-mpstat-command/309064/1 "2012-04-25T08:27:38Z")

</div>

mpstat -P ALL 1 10  
it results..

08:05:54 PM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s  
08:05:55 PM all 0.00 0.00 0.49 0.00 0.49 0.00 0.00 99.02 1024.75  
08:05:55 PM 0 0.00 0.00 0.00 0.00 0.99 0.00 0.00 99.01 1024.75  
08:05:55 PM 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00

it shows for every interval %user, % nice %sys and all other coloumn names..  
how should i modified a command so that i ll get only once as a column header and after every interval only relevant data.

---

<div class="post-metadata">

**Author:** ![Rajeshc](https://community.unix.com/letter_avatar/rajeshc/32/5_5575768a8748004e209b776fc1b2916d.png) [@Rajeshc](https://community.unix.com/u/Rajeshc)\
**Post date:** [April 25, 2012, 8:29am UTC](https://community.unix.com/t/execution-problem-wid-mpstat-command/309064/2 "2012-04-25T08:29:18Z")

</div>

your subject line is regarding vmstat command and what you have posted is mpstat command. what do you want to check acctually ?
