From: Nomen Publicus on 18 Dec 2009 15:08 underh20 <underh20.scubadiving(a)gmail.com> wrote: > Hello, > > Our server is running Solaris 10 (03/08). By default, our /var/adm/ > messages > file gets to keep 7 days of logs data and new file "messages.*" is > created to keep the previous week of logs data All together there are > a month of logs data kept, i.e., messages.0,1,2,3 in the server. See > below. > > We'd need to have /var/adm/messages to keep 90 days of logs data and > new file "messages.*" is created to keep 90 days of logs data each. > There will be messages.0, 1, 2, 3 in the /var/adm directory and each > will contain 90 days of logs data. > > Could anyone show me how to do this ? Thanks, Bill > The log files are managed by logadm. The man page explains. > > > $ date > Fri Dec 18 14:07:46 EST 2009 > $ > $ ls -lt /var/adm/messages* > -rw-r--r-- 1 root root 10615 Dec 18 14:07 /var/adm/ > messages > -rw-r--r-- 1 root root 156320 Dec 18 02:27 /var/adm/ > messages.0 > -rw-r--r-- 1 root root 156946 Dec 11 02:27 /var/adm/ > messages.1 > -rw-r--r-- 1 root root 158008 Dec 4 02:29 /var/adm/ > messages.2 > -rw-r--r-- 1 root root 156470 Nov 27 02:24 /var/adm/ > messages.3 -- Gods dont kill people. People with Gods kill people. -- David Viaene
|
Pages: 1 Prev: live upgrade using flash archive Next: Networking to a zone - I'm stuck! |