LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-27-2012, 01:19 AM   #1
alvincorrea
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Rep: Reputation: Disabled
free and top not found in Solaris


I am trying to check the memory of my Solaris 10 10/09 s10s_u8wos_08a SPARC box
I am a newbie in Solaris commands hence i surfed the web which yielded in top and free commands but both these commands were not be found .Maybe they are not properly installed

Please could anyone guide me how to install top and free .I checked sunfreeware.com for any packages but couldnt find anything useful

Please could anyone help

Thanks
 
Old 01-27-2012, 02:14 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,733

Rep: Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835
Hi,

top exists in sunfreeware (direct link)
Regarding free, you can use vmstat, or sar. Take a look at their manpages for details

Regards
 
Old 01-27-2012, 02:29 AM   #3
alvincorrea
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks a lot Bathory, somehow had missed top in sunfreeware I will take a shot at that


sar also gave me errors
Code:
# sar -r
sar: can't open /var/adm/sa/sa27
No such file or directory
May be need to find a package for this too
For the time being i got what i needed from
Code:
prtdiag -v
 
Old 01-27-2012, 03:14 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,733

Rep: Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835
Quote:
sar also gave me errors
Code:

# sar -r
sar: can't open /var/adm/sa/sa27
No such file or directory
Well, sar is usually run from a cronjob to gather statistics in the file /var/adm/sa/sadd (where dd is the current date). You can run it from command line like this:
Code:
sar -r 10 6
The above command runs every 10sec and gives 6 reports (i.e. memory usage in a minute). You might take a took here for more details

Regards
 
Old 01-27-2012, 04:16 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,781

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Quote:
Originally Posted by alvincorrea View Post
Please could anyone guide me how to install top and free .
Instead of top which isn't standard on Solaris, you can use prstat. eg:
Code:
prstat -a
prstat -Z
free is probably Linux specific, for detailed memory statistics on Solaris, run (as root):
Code:
echo ::memstat | mdb -k
 
1 members found this post helpful.
Old 01-31-2012, 01:47 AM   #6
alvincorrea
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
thanks a lot Jiilliarge
Code:
echo ::memstat | mdb -k
was very useful for me
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Inconsistencies between top and free grob115 Linux - Newbie 12 05-16-2010 10:37 AM
What does free memory mean in top? blittrell Linux - Newbie 3 08-05-2009 12:10 PM
[SOLVED] top command not found while using ssh vikas027 Programming 8 10-24-2007 07:29 AM
LXer: Sun's top Solaris sellers bail out LXer Syndicated Linux News 0 02-23-2007 07:31 AM
Want to Install Solaris 9 on acer TravelMate 4052LCi Lap Top aTkAl^^PiTcHu Solaris / OpenSolaris 3 03-26-2005 04:43 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration