Link to home
Start Free TrialLog in
Avatar of bkreynolds48
bkreynolds48

asked on

nmon cpu top usage in a script

I have been up the last three nights being paged about high cpu usage on AIX 7.1
I can run nmon the press c then press u and nmon displays the top cpu processes/programs

is there a way to run that in a script and capture the output?

any help would be appreciated
I have tried several options to put the info in a file but cannot get the output desired
the summary of top cpu when running the command includes
PID %CPU ResSize Char Command - don't really need the Char column
Avatar of Carl Dula
Carl Dula
Flag of United States of America image

AIX normally runs topas in the background all the time. Do "ps -ef | grep topas" and you will see the process.

If you are not familiar with topas, use the man pages for an overview.

The output normally goes in /etc/perf/daily, with the output in files ending in .topas.

You can't view these files directly, but use the man pages on topasout to see how to view the result.
Avatar of bkreynolds48
bkreynolds48

ASKER

I am familiar with topas but that was not my question
I want to use nmon to capture top cpu activity processes via a script
ASKER CERTIFIED SOLUTION
Avatar of Rainer Franzel
Rainer Franzel
Flag of Austria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial