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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
08-10-2008, 06:31 AM
|
#1
|
Member
Registered: Dec 2007
Posts: 44
Rep:
|
sar command
hi all
iam on Sun solaris 9 when i try to execute sar command i get the below error messages any help in this regards
$sar
sar: can't open /var/adm/sa/sa10
No such file or directory
Regards
Jaweed
|
|
|
08-10-2008, 07:25 AM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873
|
You probably don't have privileges to read or create the directory. Try running sar as root.
|
|
|
08-10-2008, 08:22 AM
|
#3
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,795
|
Actually, you need to enable the sar service and allow it to collect before data before displaying them with the sar command.
Use
Code:
# svcadm enable sar
|
|
|
08-10-2008, 08:45 AM
|
#4
|
Member
Registered: Dec 2007
Posts: 44
Original Poster
Rep:
|
hi stress and jlliagre
stress: i tried with root user then also i face the same error message
jlliagre: as you said enable this service , is there performance effect if we enable this service
thanks for your cooperation
Regards
|
|
|
08-10-2008, 09:12 AM
|
#5
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,795
|
Enabling sar has no noticeable performance impact.
|
|
|
08-10-2008, 11:20 AM
|
#6
|
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873
|
Quote:
Originally Posted by jlliagre
Actually, you need to enable the sar service and allow it to collect before data before displaying them with the sar command.
|
You can run sar interactively against the running system. If you do that it acts like vmstat and iostat combined. Or you can use sar interactively to interpret sar data files that were collected by a sar daemon.
|
|
|
08-10-2008, 09:02 PM
|
#7
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,795
|
That is indeed an alternate option.
|
|
|
08-11-2008, 02:05 AM
|
#8
|
Member
Registered: Dec 2007
Posts: 44
Original Poster
Rep:
|
hi stress and jlliagre
thanks for your replies
@root $svcadm enable sar
ksh: svcadm: not found
Iam on solaris platform
could you provide solution for the above
Regards
|
|
|
08-11-2008, 02:37 AM
|
#9
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,795
|
You PATH is missing /usr/sbin, which it shouldn't as you are root.
A simple workaround is specifying the full command path:
Code:
/usr/sbin/svcadm enable sar
|
|
|
08-11-2008, 04:00 AM
|
#10
|
Member
Registered: Dec 2007
Posts: 44
Original Poster
Rep:
|
hi
this is error message for the above command
root $/usr/sbin/svcadm enable sar
ksh: /usr/sbin/svcadm: not found
any other input
Regards
|
|
|
08-11-2008, 04:46 AM
|
#11
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,795
|
Oops, my mistake. I thought you were using Solaris 10.
Have a look at Solaris 9 documentation for enabling sar data collection.
http://docs.sun.com/app/docs/doc/806...d68pq3t?a=view
|
|
|
08-12-2008, 02:27 AM
|
#12
|
Member
Registered: Dec 2007
Posts: 44
Original Poster
Rep:
|
Hi all
could anyone explain me this command output
root $sar -r 5 5
SunOS 5.9 Generic_118558-05 sun4us 08/12/2008
10:14:09 freemem freeswap
10:14:14 908554 46089948
10:14:19 911888 46268448
10:14:24 913661 46363924
10:14:29 910352 46190254
10:14:34 913996 46375374
Average 911685 46257338
Regards
Last edited by maooah; 08-12-2008 at 03:17 AM.
|
|
|
08-12-2008, 03:03 AM
|
#13
|
Member
Registered: Dec 2007
Posts: 44
Original Poster
Rep:
|
Hi all
could anyone explain me this command output
root $sar -r 5 5
SunOS 5.9 Generic_118558-05 sun4us 08/12/2008
10:14:09 freemem freeswap
10:14:14 908554 46089948
10:14:19 911888 46268448
10:14:24 913661 46363924
10:14:29 910352 46190254
10:14:34 913996 46375374
Average 911685 46257338
Regards
|
|
|
08-12-2008, 03:30 AM
|
#14
|
Member
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547
Rep:
|
Check the docs (man page) or the Advanced administration guide:
Quote:
sar -r reports the number of memory pages and swap-file disk blocks that are currently unused.
freemem The average number of memory pages that are available to user processes over the intervals sampled by the command. Page size is machine-dependent.
freeswap The number of 512-byte disk blocks that are available for page swapping.
|
Hope this helps,
Enrico
|
|
|
08-12-2008, 03:53 AM
|
#15
|
Member
Registered: Dec 2007
Posts: 44
Original Poster
Rep:
|
hi
i would like to know what is the column
freemem it means physical memory and the values which are displaying it is in bytes or kbytes.
i check documents i couldnot able to follow up
Regards
|
|
|
All times are GMT -5. The time now is 08:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|