Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-04-2013, 11:07 PM
|
#1
|
|
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,636
|
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.
|
|
|
|
01-05-2013, 04:00 PM
|
#2
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,822
|
Quote:
Originally Posted by shivaa
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.
|
01-05-2013, 04:32 PM
|
#3
|
|
Member
Registered: Oct 2011
Location: New Zealand
Distribution: Debian
Posts: 105
Rep:
|
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!
|
|
|
|
01-05-2013, 10:18 PM
|
#4
|
|
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,636
Original Poster
|
@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?
|
|
|
|
01-06-2013, 03:07 AM
|
#5
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
As already stated, you need to have data collection enabled first.
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.
|
|
|
|
01-06-2013, 04:29 AM
|
#6
|
|
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,636
Original Poster
|
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?
|
|
|
|
01-06-2013, 09:33 AM
|
#7
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,822
|
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
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.
|
|
|
|
01-06-2013, 03:06 PM
|
#8
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
Quote:
Originally Posted by TB0ne
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.
|
|
|
|
01-11-2013, 09:06 PM
|
#9
|
|
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,636
Original Poster
|
Thanks everyone for your responsese. I managed the data collection of pervious months using HP OVPM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:29 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|