/var/adm/messages file rotation

From: SURI, SONIA (SONIA) (strehan@lucent.com)
Date: Mon May 29 2006 - 04:56:54 EDT


Hello All,

I have a Server on Solaris 9, I would like to understand how exactly is this
rotation of /var/adm/messages file happening,

I am putting my observation here:

1.The logadm.conf file has entry as follows:

/var/adm/messages -C 4 -P 'Sat May 27 22:10:00 2006' -a 'kill -HUP `cat
/var/run/syslog.pid`'

2.root cron as well have two entries as:

10 3 * * 0,4 /etc/cron.d/logchecker
10 3 * * 0 /usr/lib/newsyslog

3.the newsyslog looks like:

/usr/sbin/logadm /var/log/syslog /var/adm/messages

4.the listing in /var/adm/ looks like:

-rw-r--r-- 1 root root 0 May 28 03:10 messages
-rw-r--r-- 1 root root 136 May 22 19:00 messages.0
-rw-r--r-- 1 root root 314 May 17 13:21 messages.1
-rw-r--r-- 1 root root 32070 May 11 04:51 messages.2
-rw-r--r-- 1 root root 3703 Apr 27 12:31 messages.3

After seeing the listing in /var/adm/messages file, i am not able to make
out what is the bases for this rotation based on the logadm.conf file, -P
option , i could not understand this.
So could you give some hints.

regards
sonia.

The information contained in this e-mail message is privileged and
confidential and is for the exclusive use of the addressee. The person
who receives this message and who is not the addressee, one of his
employees or an agent entitled to hand it over to the addressee, is
informed that he may not use, disclose or reproduce the contents thereof.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:39:58 EDT