Question

How can I get CPU user time and system time for each cpu on AIX. I know I can get this value from cat /proc/stat on a linux machine, and from pstat_getprocessor() on an HP-UX machine. Is there a way to get this same metric on an AIX machine.

$ cat /proc/stat
...   
cpu  23697394 7969 2744135 4505191649 2958605 190 17883 0 0
cpu0 12511394 4575 1520243 2251753159 1480624 137 10580 0 0
cpu1 11186000 3394 1223891 2253438490 1477980 53 7302 0 0
...
Was it helpful?

Solution

mpstat is providing these metrics, either parse its output or figure out how/where does it find them.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top