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