LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   How to generate sar report for past months (https://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-generate-sar-report-for-past-months-4175444231/)

shivaa 01-04-2013 11:07 PM

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.

TB0ne 01-05-2013 04:00 PM

Quote:

Originally Posted by shivaa (Post 4863284)
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.

dru8274 01-05-2013 04:32 PM

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!

shivaa 01-05-2013 10:18 PM

@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?

jlliagre 01-06-2013 03:07 AM

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.

shivaa 01-06-2013 04:29 AM

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?

TB0ne 01-06-2013 09:33 AM

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 (Post 4863819)
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.

jlliagre 01-06-2013 03:06 PM

Quote:

Originally Posted by TB0ne (Post 4863939)
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.

shivaa 01-11-2013 09:06 PM

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


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