Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

sar command

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

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

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

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

704 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