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
Part 3, Monitoring your network packets and tuning the network
Viewed 6093 times since Mon, Jun 4, 2018
Getting list users and groups in AIX
Viewed 3899 times since Mon, May 28, 2018
7 Tips – Tuning Command Line History in Bash
Viewed 5500 times since Fri, Jul 5, 2019
A Unix Utility You Should Know About: lsof
Viewed 2058 times since Tue, Apr 16, 2019
How to Analyze or Read OS Watcher Output in three easy steps -- With Example ?
Viewed 41862 times since Thu, Jun 21, 2018
replacing (hot-swap) failed disk in rootvg
Viewed 9336 times since Thu, Sep 20, 2018
Replacing a failed disk (rootvg)
Viewed 3062 times since Mon, May 21, 2018
Installing a Interim Fix (APAR IV16587)
Viewed 3128 times since Tue, Jul 17, 2018
Checking HBA status on AIX
Viewed 18541 times since Fri, Oct 5, 2018
Convert to Scalable Volume Groups
Viewed 4136 times since Wed, May 30, 2018