LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 05-28-2009, 03:44 AM   #1
praveenk13
LQ Newbie
 
Registered: Dec 2003
Location: Aluva,Cochin,India
Distribution: Mandarke,Redhat
Posts: 4

Rep: Reputation: 0
doubt regarding sar command


Hi
I have a doubt regarding sar command output.

Will there be any difference in the output if i execute the command as a root user or normal user?

The reason for my doubt is we need to do performance monitor while we are running our web application. One of my friend told we should run the sar command as a cron job from the same user where we have started the application server. The man page of sar says it monitors the system activity which means output should be same for any user

Kindly clarify my doubt
 
Old 05-28-2009, 03:56 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
From the sar man page:
Quote:
Note that with recent 2.6 kernels, these statistics can be retrieved only by root.
Anyway, you can give it a try, saving the output in a file using -o and comparing the results.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why sar command not running? your_shadow03 Linux - Newbie 2 02-05-2009 01:29 AM
sar command option -H lensem Linux - Software 1 12-16-2008 03:53 PM
sar command maooah Solaris / OpenSolaris 16 08-12-2008 06:16 AM
sar command rsuks Linux - General 2 03-25-2006 04:53 AM
monitoring I/O with sar command juanb Linux - Hardware 1 04-13-2005 12:43 PM


All times are GMT -5. The time now is 03:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration