Does anyone know of EPAgent script to run mpstat on RHEL? More specifically, I would love to get the output of
mpstat -P ALL 7
Hiko_Davis, I saw you did an mpstat for Solaris and I tried to adapt it for red hat, but the red hat one will likely have to be stateful, because if you run it without the interval, it doesn't seem to update correctly after successive manual executions.
Sample output:
05:01:46 PM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
05:01:53 PM all 3.03 0.00 1.07 0.12 0.00 0.03 0.00 95.76 1379.14
05:01:53 PM 0 3.00 0.00 1.00 0.00 0.00 0.00 0.00 96.00 1000.14
05:01:53 PM 1 0.29 0.00 1.28 0.00 0.00 0.00 0.00 98.43 0.00
05:01:53 PM 2 0.14 0.00 0.14 1.14 0.00 0.14 0.00 98.43 34.86
05:01:53 PM 3 2.28 0.00 2.00 0.57 0.00 0.00 0.00 95.15 32.29
05:01:53 PM 4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 9.00
05:01:53 PM 5 0.29 0.00 1.14 0.14 0.00 0.14 0.00 98.29 77.71
05:01:53 PM 6 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
05:01:53 PM 7 0.29 0.00 0.43 0.00 0.00 0.00 0.00 99.29 0.00
05:01:53 PM 8 0.29 0.00 0.00 0.00 0.00 0.00 0.00 99.71 0.00
05:01:53 PM 9 7.29 0.00 1.57 0.00 0.00 0.00 0.00 91.14 36.14
05:01:53 PM 10 0.72 0.00 3.00 0.00 0.00 0.00 0.00 96.28 1.00
05:01:53 PM 11 14.14 0.00 3.14 0.00 0.00 0.14 0.00 82.57 34.86
05:01:53 PM 12 9.57 0.00 1.00 0.00 0.00 0.00 0.00 89.43 1.00
05:01:53 PM 13 2.14 0.00 1.71 0.00 0.00 0.00 0.00 96.14 6.00
05:01:53 PM 14 0.14 0.00 0.00 0.00 0.00 0.00 0.00 99.86 2.14
05:01:53 PM 15 7.70 0.00 1.14 0.00 0.00 0.14 0.00 91.01 144.14
Thanks,
Ryan