Results 1 to 1 of 1
Hi.
I am looking for a command that will return me the amount of CPU used by a specific process in AIX environment.
I know there is TOPAS - but ...
- 10-31-2007 #1Just Joined!
- Join Date
- Oct 2007
- Posts
- 5
Find CPU per process in AIX
Hi.
I am looking for a command that will return me the amount of CPU used by a specific process in AIX environment.
I know there is TOPAS - but it is interactive and I need to get this information from system that connects remotely via SSH.
Using writing to files and than reading them is also not good.
In Solaris for example I do :
prstat 1 1 | grep app| nawk '{print $1"|-|"$9}'
or in linux :
top -n 1 -b | grep app| awk '{print $1"|-|"$9}'
while it returns for each PID the CPU.
Can you think of a non-interactive command like that in AIX that can return this information like prstat or top in linux ?
P.S : I don't have either TOP or NMON installed since it is not coming out of the box in AIX so I can't count on that.
Thanks


Reply With Quote