Visit Our UNIX and Linux User Community

Maintaining SA logs /var/adm/sa/

Thread Tools Search this Thread
Operating Systems Solaris Maintaining SA logs /var/adm/sa/
# 1  
Old 03-22-2016
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)


Last edited by javanoob; 03-23-2016 at 12:23 AM..
# 2  
Old 04-01-2016
What about logadm command?

Last edited by DukeNuke2; 04-01-2016 at 09:21 PM..
# 3  
Old 04-01-2016
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.

Previous Thread | Next Thread
Test Your Knowledge in Computers #681
Difficulty: Medium
In 2011, the Solaris 11 kernel source code was leaked to WikiLeaks.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

Difference between /var/log/syslog and /var/adm/messages

Hi, Is the contents in /var/log/syslog and /var/adm/messages are same?? Regards (3 Replies)
Discussion started by: vks47
3 Replies

2. Solaris

/var/adm & /var/sadm

what is the difference between tha /var/adm and /var/sadm files in solaris 10 Os please can any one respond quickly thanking you (2 Replies)
Discussion started by: wkbn86
2 Replies

3. Solaris

diff b/w /var/log/syslog and /var/adm/messages

hi sirs can u tell the difference between /var/log/syslogs and /var/adm/messages in my working place i am having two servers. in one servers messages file is empty and syslog file is going on increasing.. and in another servers message file is going on increasing but syslog file is... (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

4. Solaris


Check message file and result posted below. Can anyone tell me what this is a sign of, what does it mean? server1% more messages.0 Dec 02 09:35:06 server1 bsd-gw: Inval id protocol request (65): AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA^\\2... (6 Replies)
Discussion started by: finster
6 Replies

5. Solaris


Hello Friends, I am geting the folowing error in /var/adm/message is it disl related problem? if yes.. how to check all the disk are perfect or not? Sep 15 06:01:12 scsi: WARNING: /pci@1f,700000/scsi@2/sd@2,0 (sd7): Sep 15 06:01:12 Error for Command: write(10) Error Level:... (5 Replies)
Discussion started by: bullz26
5 Replies

6. AIX

AIX and cron logs filtering ?: /etc/cronlog.conf, /var/adm/cron/log

Hi, I can use 'crontabs –e' and do all the scheduling I like. However I would like to auto send myself just the cronjobs logs that fail. That is to say the PIDs that fail and the related lines with those PID’s only. (Not the full set of logs) Has anyone done this work? Or does an AIX 5.3 tool... (0 Replies)
Discussion started by: Keith Johnson
0 Replies

7. Solaris

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... (1 Reply)
Discussion started by: RobSand
1 Replies

8. UNIX for Dummies Questions & Answers


Hi, No log entry is found in messages files. The file size is 0. We are using Solaris 9. Anyone knows what could be wrong. (3 Replies)
Discussion started by: FrankC
3 Replies

9. UNIX for Dummies Questions & Answers


Hi, Here im using WinSCP and looking into the remote dir var/adm/cron and I get the following error.Is this bcoz i dont have admin privileges: Cannot get real path for '/var/adm/cron'. Unexpected OK response. Error code: 0 Error message from server: Success Request code: 16 BTW im... (1 Reply)
Discussion started by: thumsup9
1 Replies

10. Solaris


As root I have created the loginlog file in /var/adm with permissions (r and w) for root:root only. Failed attempts(> 5) to log in as root do not get logged in the file. What am I missing?? I am on a Solaris 8 Box. :confused: :confused: :confused: (4 Replies)
Discussion started by: encrypted
4 Replies

Featured Tech Videos