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
HOWTO: Implement SEA Failover with Dual VIOS
Viewed 8117 times since Tue, Jun 4, 2019
AIX, Security, System Admin Difference between sticky bit and SUID/GUID
Viewed 9198 times since Fri, Apr 19, 2019
AIX routing - How Do I Compare ODM with the Current Routing Table?
Viewed 2846 times since Mon, Jul 29, 2019
Online Backups and Recovery in a Snap AIX
Viewed 5377 times since Wed, May 30, 2018
AIX - How to extend JFS filesystem
Viewed 19718 times since Fri, Jun 8, 2018
AIX POWERHA/HACMP: Basic commands
Viewed 5666 times since Sat, Jun 2, 2018
Problem on resizing volume group on AIX 0516-1714, 0516-792, 0516-787, and 0516-404
Viewed 2925 times since Fri, Jul 6, 2018
0516-404 allocp: This system cannot fulfill the allocation request. [AIX]
Viewed 5505 times since Thu, Sep 20, 2018
Control Your Logs AIX
Viewed 19343 times since Wed, May 30, 2018
List AIX File Systems the Easy Way With the lsvgfs Command
Viewed 2352 times since Thu, Sep 20, 2018