mpstat command solaris to linux migration.

8 views
Skip to first unread message

Tejas Darji

unread,
Jul 2, 2015, 2:05:11 AM7/2/15
to vg...@googlegroups.com
Hello All,

I am facing problem in mpstat command for unix to linux migration.

mpstat command produces different outputs in solaris and linux servers .

I am adding the sample output of the mpstat command below in the mail for both linux and solaris servers.

In Solaris Sever :-
==============

command :- mpstat 

CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt idl

  0   88   1  472    24   17  542    5   23   58    0   696    3   3   2  91
  1   90   1  573   678    2  568    5   22   63    0   798    4   3   2  91
  2   90   1  666    25   17  589    5   22   65    0     3    5   3   2  90
  3   91   0  555   547  441  590    5   20   71    0   808    4   3   2  91
 16   90   1  745     8    1  630    5   22   67    0    64    5   4   2  89
 17   90   1  746   229   11  628    5   22   68    0    80    6   4   2  89



In Linux server :-
========================

command :- mpstat

simple mpstat will produce only one process Output :-

Linux 2.6.32-431.11.2.el6.x86_64 (usa0300lv1315)        06/29/2015      _x86_64_        (4 CPU)

01:54:54 AM  CPU    %usr   %nice    %sys %iowait    %irq   %soft  %steal  %guest   %idle
01:54:54 AM  all    0.98    0.06    0.63    0.53    0.00    0.05    0.00    0.00   97.75



where as the below mpstat  will produce all the process output 

command :-    mpstat -I ALL -u -P ALL


01:56:30 AM  CPU    %usr   %nice    %sys %iowait    %irq   %soft  %steal  %guest   %idle
01:56:30 AM  all    0.98    0.06    0.63    0.53    0.00    0.05    0.00    0.00   97.75
01:56:30 AM    0    0.91    0.06    0.62    0.58    0.00    0.06    0.00    0.00   97.77
01:56:30 AM    1    1.03    0.06    0.62    0.46    0.00    0.04    0.00    0.00   97.79

I want linux server output with smtx  srw syscl wt option, because script is using those options. 

Need help!!

Thanks,
Tejas
Reply all
Reply to author
Forward
0 new messages