[SOLVED] How to generate sar report for past months
Solaris / OpenSolarisThis 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
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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?
...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.
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!
@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?
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: 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.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.