1829107 Members
2367 Online
109986 Solutions
New Discussion

sar reports

 
sheevm
Regular Advisor

sar reports

Is there a tip to generate sar reports weekly, monthly?
Currently we are collecting the data every hour from 8-5 and genearting the report at the end of the day.

We have a crontab entry. Every hour it is overwriting the same file. At the end of the day report is the last hour's report.

Thanks
be good and do good
2 REPLIES 2
Charlie Rubeor
Frequent Advisor

Re: sar reports

Raji

It sounds like you could use sa1 and sa2. They will write out daily sar reports, keeping the most current 7 days in /var/adm/sa. You can then rename them and keep as much history as you like. There are man pages. Here are the cron entries:

0 * * * 0,6 /usr/lbin/sa/sa1
0 8-17 * * 1-5 /usr/lbin/sa/sa1 1200 3
0 18-7 * * 1-5 /usr/lbin/sa/sa1
5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 3600

If you want a single report that spans multiple days, I believe that you could configure the cron entries to do that.

If you have some money in your budget, look at the OpenView products. There are some excellent performance monitoring products available. Glance+ is more geared towards providing a snapshot of your system.

hth!
I_M
Honored Contributor

Re: sar reports

Charlie,
Does HP have glance+ for Linux?

Regards,