I need the code for mpstat command in AIX . I searched the internet but icouldn't get it. Any idea about the structure it uses 开发者_StackOverflowwill also be helpful
The excellent nmon tool has been released to open source, so you could look at the source code of that to see where it gets the data you want from.
http://www.ibm.com/developerworks/wikis/display/WikiPtype/nmon
http://nmon.sourceforge.net/pmwiki.php
Do iostat
or vmstat
not serve your needs? I'm not aware of mpstat
for AIX.
EDIT: I wasn't aware of mpstat under my older AIX5.2 development machine. Its available on AIX5.3 and later.
精彩评论