1822195 Members
3920 Online
109640 Solutions
New Discussion юеВ

Re: TOP Command

 
Fadia Almarei
Super Advisor

TOP Command

Dear All
in the hp unix we found that the top command used to show the cpu performance ,and it is also in linux system ,but in sun system there is no top command , so i want a software to install and run this command .

Thanks in Advance
fadia.marei
11 REPLIES 11
Abdul Rahiman
Esteemed Contributor

Re: TOP Command

Fadia,

Check http://www.sunfreeware.com, there is binary and source code available to download for different solaris versions.

HTH,
Abdul Rahiman.
No unix, no fun
Abdul Rahiman
Esteemed Contributor

Re: TOP Command

The above downloadis for "top" utility of course, I didn't mention that explicitly. I don't think Sun packages top with it's default OS media.
No unix, no fun
Steven E. Protter
Exalted Contributor

Re: TOP Command

top is pretty basic, but if you download it and compile it on a Sun box, you should get the same basic data as on any other OS.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Joseph Loo
Honored Contributor

Re: TOP Command

hi,

the download site of a solaris version of top:

ftp://ftp.groupsys.com/pub/top/

regards.
(p.s. please assign some points)
what you do not see does not mean you should not believe
Fadia Almarei
Super Advisor

Re: TOP Command

i tried the ftp site and the web site ,and after i start to compile the system i found many errors the basic one is that he told me that the gcc compiler can not work (language option is not instlled) that i know that it is the gcc compiler problem( i search for it ) so what should i do for that and what compiler to use instead of the gcc

fadia.marei
Joseph Loo
Honored Contributor

Re: TOP Command

hi,

refer to point 16, from the website. do a search for TOP and click on the INFO:

16.
"I tried to compile top with gcc and it doesn't work. I get compilation errors in the include files, or I get an executable that dumps core, or top displays incorrect numbers in some of the displays. What's wrong?"
Gnu CC likes very much to use its own include files. Not being a gcc expert, I can't explain why it does this. But I can tell you that if you upgrade your operating system (say from Solaris 2.4 to Solaris 2.5) after installing gcc, then the include files that gcc uses will be incorrect, especially those found in the "sys" directory. Your choices are: (1) rebuild and reinstall the "standard" include files for gcc (look for scripts in the distribution called "fixincludes" and "fixinc.svr4"), (2) compile machine.c with "CFLAGS=-I/usr/include" then make the rest of the object files normally, or (3) use "cc".

regards.
what you do not see does not mean you should not believe
dirk dierickx
Honored Contributor

Re: TOP Command

there is a native look-a-like 'top' command on solaris called 'prstat', give it a try, it might be already good enough for your needs.
Rajesh D L
Frequent Advisor

Re: TOP Command

Hi,

prstat is equivalent to top in hp. top for solaris can be downloaded from www.sunfreeware.com

regards,
RDL.
SAHA
Honored Contributor

Re: TOP Command

Top won't come default witk Solaris.

Download binaries or source code from www.sunfreeware.com

It works fine.

Thanks,
You must PASS failure on way to success !!!
Bruno Ganino
Honored Contributor

Re: TOP Command

Fadia, top command
download from: http://www.sunfreeware.com
specifically for solaris 8
ftp://ftp.sunfreeware.com/pub/freeware/sparc/8/top-3.5beta12.5-sol8-sparc-local.gz
gunzip it then pkgadd it

HTH
Bruno
Torino (Turin) +2H
Anupam Anshu_1
Valued Contributor

Re: TOP Command



you can try "prstat" this seems to be doing something like top. This I think is avaiable on solaris.

Anshu