Solved

sar command

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

Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

Question has a verified solution.

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

Suggested Solutions

Let’s list some of the technologies that enable smooth teleworking. 
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
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.

911 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

23 Experts available now in Live!

Get 1:1 Help Now