LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   how to enable sar report (https://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-enable-sar-report-880608/)

gadhave.vikas 05-13-2011 04:37 PM

how to enable sar report
 
Hi team,

how can i enable sar report on solaris 10 system.

i need the report should genrate every day for 5 hr's start from 1 to 5 am.

Regards,
Vikas

TB0ne 05-13-2011 05:26 PM

Quote:

Originally Posted by gadhave.vikas (Post 4355748)
Hi team,
how can i enable sar report on solaris 10 system. i need the report should genrate every day for 5 hr's start from 1 to 5 am.

Read the man pages for the "sar" and "crontab" commands. Put the sar command (with the appropriate options), in a shell script, and use cron to run it each day at 1 AM.

Blinker_Fluid 05-16-2011 10:24 AM

I have the following in the sys users crontab:

0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/lib/sa/sa1
45 23 * * * /usr/lib/sa/sa2 -s 0:00 -e 23:59 -i 1200 -A


All times are GMT -5. The time now is 05:30 AM.