Solved

sar is not working for users

Posted on 2000-04-19
2
261 Views
Last Modified: 2013-12-27
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 Comments
 
LVL 20

Accepted Solution

by:
tfewster earned 10 total points
ID: 2731940
sar can be used in 2 forms:
sar -options interval no_of_samples, e.g. sar -d 10 5, to do 5 "samples" at 10 second intervals, or
sar -options [-f sar_log] to read a daily log [sa19 is todays log - the default]

If you are  not running sar logging in roots crontab, the files in /var/adm/sa won't be getting created, so you will have to use the first form of the command.
0
 
LVL 5

Expert Comment

by:ianB
ID: 2855607
We have opened up a new Solaris Topic Area.  

To increase the visibility of questions, we moved questions we felt
appropriate to the new Solaris Topic Area where they will be easier for
Solaris experts to find and answer. You may view your question at
http://www.experts-exchange.com/Computers/Operating_Systems/Solaris/ 

If you have any questions about the new topic area you can contact
Community Support by posting a comment at the following URL or by
emailing us at cs@experts-exchange.com.
http://www.experts-exchange.com/Customer_Service/Experts_Exchange/ 

Ian
Community Support @ Experts Exchange

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CPU monthly average? 12 107
Generate FIPS 140-2 Public Key on Unix 5 67
Using Grep to Find a file 8 87
Solaris 10.  Nmap installation fails 2 49
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

896 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

11 Experts available now in Live!

Get 1:1 Help Now