1825737 Members
2474 Online
109687 Solutions
New Discussion

TOP command

 
Michael Cline_1
Occasional Advisor

TOP command

Does anyone by chance know the Solaris equivalent of the TOP command? I'm running HP-UX but trying to diagnose a problem on a solaris box and it won't recognize TOP like HP does...

Thanks!
7 REPLIES 7
Geoff Wild
Honored Contributor

Re: TOP command

You have to download and install it from:

http://www.sunfreeware.com/

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Luk Vandenbussche
Honored Contributor

Re: TOP command

Chadima
New Member

Re: TOP command

prstat is build into the OS
Vibhor Kumar Agarwal
Esteemed Contributor

Re: TOP command

For solaris you should go for prstat.

Its the most accurate.
Vibhor Kumar Agarwal
Arunvijai_4
Honored Contributor

Re: TOP command

# prstat

# prstat
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
28247 root 336K 232K sleep 49 0 0:00:00 0.1% sh/1
28268 root 4568K 4176K cpu2 49 0 0:00:00 0.1% prstat/1
362 root 4168K 2440K sleep 59 0 0:02:45 0.1% automountd/3
28245 root 1896K 1360K sleep 59 0 0:00:00 0.0% in.telnetd/1
412 root 1080K 704K sleep 59 0 0:00:00 0.0% utmpd/1
338 root 3272K 2584K sleep 59 0 0:00:00 0.0% inetd/1
424 root 2120K 1520K sleep 59 0 0:00:00 0.0% smcboot/1
469 root 328K 192K sleep 59 0 0:00:00 0.0% sh/1
470 root 6528K 1816K sleep 59 0 0:00:00 0.0% nsrexecd/1
375 root 3752K 2016K sleep 59 0 0:00:00 0.0% syslogd/14
401 root 1456K 1088K sleep 59 0 0:00:00 0.0% powerd/2
"A ship in the harbor is safe, but that is not what ships are built for"
Yogeeraj_1
Honored Contributor

Re: TOP command

hi,

see also:
http://developers.sun.com/solaris/articles/prstat.html

hope this helps!

regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Michael Cline_1
Occasional Advisor

Re: TOP command

prstat worked!

Thanks!!