![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| logs | lordmod | UNIX for Advanced & Expert Users | 1 | 02-13-2007 06:41 PM |
| scp logs | gsr_kashyap | Linux | 0 | 08-02-2006 04:22 AM |
| Logs | charbel | Shell Programming and Scripting | 5 | 05-04-2006 08:59 AM |
| rcp logs | ilkergu | HP-UX | 0 | 08-08-2005 04:51 AM |
| Logs | jtapia | UNIX Desktop for Dummies Questions & Answers | 4 | 03-28-2002 12:12 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
sar logs in /var/adm/sa
I recently enabled sar (system activity recorder tool) on a Solaris 10 sparc
system. The performance "logs" being recorded in /var/adm/sa are getting quite large, quite quickly! How do I rotate these logs so I keep 7 days worth of logs and everything else gets automatically deleted? I suspect this is done in the crontab file. Here are the contents of my crontab file: 0,5,10,15,20,25,30,35,40,45,50,55 * * * 0-6 /usr/lib/sa/sa1 20,40 8-17 * * 1-5 /usr/lib/sa/sa1 5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A I have heard that the line above containing "sa2" is supposed to rotate the logs, but it does not appear to be doing so. Any suggestions are greatly appreciated and thanks ahead of time! Sincerely, Rob Sandifer |
|
||||
|
Rob,
I have no experience with SAR however have you thought about writing a simple script that will do this for you... You could write a script that rotates your logs.... you can also take a look at Freeware for Solaris for the log-rotate utility. Regards, Johan Louwers. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|