Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

sar command

Posted on 2000-04-19
3
Medium Priority
?
1,376 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 30 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Make the most of your online learning experience.
This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

971 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