Maintaining SA logs /var/adm/sa/

Hi all,

I have enable sar and the sa cron jobs in the sys account.

I would like to however, keep only 1 month of data.

Can i check for Solaris10, does sa2 do automatic purging of logs in /var/adm/sa/ that are 1 week old ?

-- Answer = yes ( in "/usr/lib/sa/sa2" if you open the script, you will find a "find" command finding sa* logs with +mtime 7)

Regards,
Noob

What about logadm command?

Change the script code: copy the script's code to another file and run that instead. The longest the sar and sa files will last is 31 days - because the sar outputs use the same name (over and over again) based on the day of the month.