Solved

sar command

Posted on 2000-04-19
3
1,370 Views
Last Modified: 2013-12-23
Can somebody please help as to how I can allow users to use the command.
when the users are using sar -d it says sar: can't open /var/adm/sa/sa19
No such file or directory
This is happening in sun solaris
Please help me out.
Thanks in advance
Arun
0
Comment
Question by:tumma
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
dserna earned 10 total points
ID: 2733675
I believe that the syntax is:

sar -d 1 5

the -d flag will show you disk usage stats the #'s after the -d tells sar to print the usage 5 times in 1 second intervals. If I wanted to see the usage 10 times in 5 second intervals, I would do:

sar -d 5 10

If you only specify sar -d, sar will expect you to supply an accounting file, which will only exist if you have accounting turned on which you don't in this case.

Hope that helps.
0
 

Author Comment

by:tumma
ID: 2735174
But how do I on the accounting so that the user just uses sar -d or sar -g apart from the time intervals
Please let me know
thanks
Arun
0
 
LVL 1

Expert Comment

by:dserna
ID: 2735638
Hello,

Click on the link below and it will take to a document that shows you how to turn on accounting:

http://docs.sun.com:80/ab2/coll.47.8/SYSADV2/@Ab2PageView/idmatch(SYSRESACCTSETUP-41702)#SYSRESACCTSETUP-41702?DwebQuery=accounting&Ab2Lang=C&Ab2Enc=iso-8859-1


Hope that helps.
0

Featured Post

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question