LinuxQuestions.org
Help answer threads with 0 replies.
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 01-04-2013, 11:07 PM   #1
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
How to generate sar report for past months


Hello,

I have a Sun Solaris 10.5 system and I want to generate a detailed report on this server's performance in past few months (at least one or two months).
I think sar command can be helpful here, but I don't know how to use sar to generate report for whole months or some defined period of a month?

Please suggest. Thanks.
 
Old 01-05-2013, 04:00 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,681

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by shivaa View Post
Hello,
I have a Sun Solaris 10.5 system and I want to generate a detailed report on this server's performance in past few months (at least one or two months).
I think sar command can be helpful here, but I don't know how to use sar to generate report for whole months or some defined period of a month?
Start with reading the man page on the sar command. There are numerous articles on Google for "how to generate a sar report in solaris", too:
http://www.unix.com/unix-advanced-ex...n-solaris.html
http://www.ibm.com/developerworks/ai...erfmonsar.html

...among others. If you don't have sar configured to collect data, you can't report on it, so if it hasn't already BEEN running for a few months, you can't report on that time.
 
1 members found this post helpful.
Old 01-05-2013, 04:32 PM   #3
dru8274
Member
 
Registered: Oct 2011
Location: New Zealand
Distribution: Debian
Posts: 105

Rep: Reputation: 37
Having used sar to generate some binary log data, you then need to analyse it. I recently discovered ksar, a gui that can create nice graphs from a sar-log, as described here.

Happy with ur solution... then tick "yes" and mark as Solved!
 
Old 01-05-2013, 10:18 PM   #4
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800

Original Poster
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
@TB0ne: I had gone through man pages as well as googled it, but found that sar collects data of live time, not past time.

Well, sar is apparently there, but it's not collecting any data, I mean it's nowhere scheduled in cron and also I did not find any existing collection of data.

So I want suggestions that, are there any other option/alternatives or anything helpful to analysis this server's performance in past few months, at least for CPU utilization and disk I/O?
 
Old 01-06-2013, 03:07 AM   #5
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
As already stated, you need to have data collection enabled first.

Code:
man -S 1m sar
Otherwise, and unless alternative monitoring software is in place, the is no way to display information that hasn't be recorded.

Last edited by jlliagre; 01-06-2013 at 09:05 AM.
 
Old 01-06-2013, 04:29 AM   #6
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800

Original Poster
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Ok, I have enabled data collection be enabling sa1 and sa2 scripts for sys account, so at least I will get it's data for now onwards.
Is any other helpful tool/utility to check performance in pervious days?
 
Old 01-06-2013, 09:33 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,681

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by shivaa
@TB0ne: I had gone through man pages as well as googled it, but found that sar collects data of live time, not past time. Well, sar is apparently there, but it's not collecting any data, I mean it's nowhere scheduled in cron and also I did not find any existing collection of data
If you did Google it/read the man page, why didn't you see the options that let you collect various bits of data, and how to schedule it in cron to keep track of that data?

SAR does one thing: it snapshots what's going on with the system when it runs. Think of it as a movie camera...each frame is a still picture...put them one after the other, and you have a movie. SAR collects data points when it runs....enough data points, and you get an idea of what your system has done.
Quote:
Originally Posted by shivaa View Post
Ok, I have enabled data collection be enabling sa1 and sa2 scripts for sys account, so at least I will get it's data for now onwards.
Is any other helpful tool/utility to check performance in pervious days?
How can there be?? That's like asking "I've never taken a backup of my system, but I need a file restored from six months ago...". Unless you collect the data, you can't report on it.
 
Old 01-06-2013, 03:06 PM   #8
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
Quote:
Originally Posted by TB0ne View Post
If you did Google it/read the man page, why didn't you see the options that let you collect various bits of data, and how to schedule it in cron to keep track of that data?
I guess the reason is there is no mention of these collecting options and cron scheduling in the sar(1) manual page that shows up when you run "man sar". This only appears if you specifically ask for the sar(1m) manual page.
 
Old 01-11-2013, 09:06 PM   #9
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800

Original Poster
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Thanks everyone for your responsese. I managed the data collection of pervious months using HP OVPM.
 
  


Reply

Tags
performance, report, sar, server, solaris



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
[SOLVED] sar report fernfrancis Linux - Newbie 6 05-31-2011 01:12 AM
Generate audit log every 6 months it_guy Red Hat 2 03-11-2011 07:18 AM
sar output for the past 4 days ZAMO Linux - Enterprise 2 12-24-2008 05:00 PM
sar report mokku Linux - Newbie 2 08-14-2008 01:11 PM

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

All times are GMT -5. The time now is 07:59 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