LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 10-22-2007, 09:10 AM   #1
vm_devadas
Member
 
Registered: Sep 2006
Location: India
Distribution: Redhat and Suse
Posts: 75

Rep: Reputation: 15
sar file issue with sles 9 2.6.5-7.257-bigsmp


Hi,

I have a sles 9 server with 2.6.5-7.257-bigsmp kernel

The problem is that I have created a sar output file as
$ sar -o data.file 10 3

The expected output of the below command
$ sar -f data.file
should be like
Linux 2.6.5-7.257-bigsmp (hostname) 10/10/2007

09:31:00 AM CPU %user %nice %system %iowait %idle
09:31:10 AM all 0.31 0.00 2.24 0.82 96.64
09:31:20 AM all 0.10 0.00 0.31 1.22 98.37
09:31:30 AM all 0.00 0.00 0.20 0.51 99.29
Average: all 0.14 0.00 0.92 0.85 98.10

No?, but instead it shows only
Linux 2.6.5-7.257-bigsmp (hostname) 10/10/07

What may be the possible cause for this?
Kindly help me.
 
Old 10-24-2007, 10:17 AM   #2
ddenton
Member
 
Registered: May 2007
Posts: 114

Rep: Reputation: 15
If I remember correctly, the sar command provides human readable output from an "sa" file, created from the sysstat program which usually runs in cron. Take a look at your crontab and see if the line for sysstat is there. On my RHEL boxes, the file containing the cron entry for sysstat is /etc/cron.d/sysstat. That file contains two lines, one that creates the "sa" file, and another that creates the "sar" file. On our systems I've commented out the command that creates the "sar" file, and I use a program called KSAR to generate my own on demand output directly from the "sa" files.

Here's my sysstat file in case it helps...

# run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib/sa/sa1 1 1
# generate a daily summary of process accounting at 23:53
#53 23 * * * root /usr/lib/sa/sa2 -A
 
Old 10-25-2007, 07:04 AM   #3
vm_devadas
Member
 
Registered: Sep 2006
Location: India
Distribution: Redhat and Suse
Posts: 75

Original Poster
Rep: Reputation: 15
My query was not on the cron-autogenerated o/p

but was on sar -f / sar -o comman line issues
 
  


Reply

Tags
file, sar, sles


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
sar file issue with sles 9 2.6.5-7.257-bigsmp vm_devadas Suse/Novell 1 10-22-2007 09:12 AM
sar file issue with sles 9 2.6.5-7.257-bigsmp vm_devadas Linux - Server 0 10-10-2007 02:21 PM
SLES Upgrade issue+kwrite very slow vm_devadas Linux - Server 0 09-14-2007 06:58 PM
certificate issue connecting to ldaps on SLES rimvydazas Suse/Novell 1 08-06-2007 03:17 PM
SLES 10 txqueuelen issue kevins7189 Suse/Novell 2 02-13-2007 03:53 PM


All times are GMT -5. The time now is 10:26 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration