LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 04-03-2006, 09:38 PM   #1
spyghost
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 245

Rep: Reputation: 30
i cannot get the sar reading for 00:00:00


hi,

i was wondering why i cannot get the 00:00:00 reading from the sar output. here is a sample of what i get:

00:00:00 %usr %sys %wio %idle
01:00:00 0 0 0 100
02:00:00 0 0 0 100
03:00:00 0 0 0 100
04:00:00 0 0 0 100
05:00:00 0 0 0 100
06:00:00 0 0 0 100
07:00:00 0 0 0 100
08:00:00 0 0 0 100
08:20:00 0 0 0 100
08:40:00 6 1 0 93
09:00:00 1 0 0 99
09:20:00 0 0 0 100
09:40:00 0 0 0 100
10:00:00 0 0 0 100
10:20:00 0 0 0 100

Average 0 0 0 100

the sar syntax that i used is sar -s 00:00:00 -e 12:00:00 -f sa04.

the content of the sys crontab is:
#ident "@(#)sys 1.5 92/07/14 SMI" /* SVr4.0 1.2 */
#
# The sys crontab should be used to do performance collection. See cron
# and performance manual pages for details on startup.
#
0 * * * 0-6 /usr/lib/sa/sa1
20,40 8-17 * * 1-5 /usr/lib/sa/sa1

all i get from these settings is from 01:00:00 up to 23:00:00. i dont have a 00:00:00 reading.

is it possible to get a 00:00:00 reading from sar?

thanks
 
Old 04-06-2006, 08:58 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You are asking sar for data at 00:00, based on samples made on day 04.
As far as I understand, sar is computing the average of all samples up to the displayed time. I seems logical to me that no sample exist yet at that time, so sar cannot display any data for midnight.
Just my guess.
 
  


Reply



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
sar command rsuks Linux - General 2 03-25-2006 03:53 AM
Sar sathish80 Linux - Newbie 1 01-16-2006 06:57 AM
SAR does not seem to be updating. Cronjob Debian 1 01-11-2006 10:16 AM
Sar problem ust Linux - Software 0 10-27-2003 01:02 AM
sar - utility bktpv Linux - Networking 1 01-05-2002 04:33 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 06:44 PM.

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
Open Source Consulting | Domain Registration