Solved

sar command

Posted on 2000-04-19
3
1,361 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
  • 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now