AIX - How to monitor CPU usage

AIX - How to monitor CPU usage

 
In AX, topas can be used to monitor CPU usage of the system. Topas is similar to top in Linux though both are not the same.

Question : How to monitor CPU usage in AIX?
Answer : ps command can be used to report a snapshot of the current processes in AIX. Use option aux and sort based on the column to get the top usage based on the parameter you need. If you need to get CPU then you will need to sort column 3.
Example :
[root@server ~]# while true;do echo `ps aux |head -1`;ps aux |sort -nrk 3| head -10;sleep 2;clear;done
Note : Above command will output top 10 processes with highest %CPU in an interval of 2 seconds. Press "Crtl C" to exit the while loop.


Question : How to monitor CPU usage in AIX?
Answer : Besides using method above, topas command can be used to monitor %CPU in AIX.
Example :
[root@server ~]# topas
[root@server ~]# topas -P <--- To display full screen of processes


Question : How to monitor CPU usage in AIX?
Answer : sar command can be used to monitor %CPU in AIX. Use sar with option "u" and specific the interval and numintervals needed.
Example :
[root@server ~]# sar -u 3 3
Note : Above command with execute sar -u in an interval of 3 seconds for 3 times.
4 (1)
Article Rating (1 Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
AIX, Red Hat, Security, System Admin↑ System-wide separated shell history files for each user and session
Viewed 2386 times since Fri, Apr 19, 2019
Epoch & Unix Timestamp Conversion Tools
Viewed 63002 times since Fri, Jun 22, 2018
Script to show Total, Free and Used Memory on AIX
Viewed 3525 times since Thu, Nov 29, 2018
To do a quick check on the number of path present (does not mean all are Enabled] using for loop
Viewed 4018 times since Fri, Jun 8, 2018
Install and configure GNU watch (gwatch) on AIX
Viewed 7958 times since Thu, Feb 21, 2019
Topics: PowerHA / HACMP, Storage Adding a new volume group to an active PowerHA resource group
Viewed 2781 times since Mon, Jun 3, 2019
SNAP
Viewed 2142 times since Mon, Sep 17, 2018
AIX: How do you send an attachment via mail
Viewed 3052 times since Mon, Jun 11, 2018
AIX Net How to check VLAN ID number on AIX?
Viewed 15990 times since Thu, Nov 29, 2018
AIX perf how to
Viewed 19175 times since Tue, Aug 14, 2018