Trying to come up with a command that will show all processes sorted from highest cpu usage to lowest. Any ideas?
The "top" command. It's a freeware, but some OS's come with it.
Also; I've used some Solaris systems that don't come with "top" but do come with "prstat" which will (by default) essentially perform the same function as top.
Cheers
ZB
On AIX it is topas
Im on AIX 5.2 and i can see topas when man topas but when i type it at the prompt it throws the following msg.am I doing something wrong.
$ topas
ksh: topas: not found.
topas should be there in /usr/bin directory..Check your PATH. You may try accessing using complete path /usr/bin/topas. The other possibility is topas is not installed on your machine.. Alternatively you may use sar, ps or similar utilities
ps aux
gives you more information.
sssow !
Do we need to configure topas ????
I don't use AIX, but according to the man page: "The topas command requires the perfagent.tools fileset to be installed on the system."
Looks like permission issue..try running as root
Use top then sort the output by pressing "o" then write "cpu" to the sort by CPU Usage.