Hi.
This is my Solaris 10 server (x86) server. There is one log rotation working for below logs -
bash-3.00# ls -lhtr /tftpboot/dcwdx1*
-rwxrwxrwx 1 root root 55K Feb 26 16:00 /tftpboot/dcwdx1.b.9
-rwxrwxrwx 1 root root 55K Mar 5 16:00 /tftpboot/dcwdx1.b.8
-rwxrwxrwx 1 root root 55K Mar 13 17:00 /tftpboot/dcwdx1.b.7
-rwxrwxrwx 1 root root 55K Mar 20 17:00 /tftpboot/dcwdx1.b.6
-rwxrwxrwx 1 root root 55K Mar 27 17:00 /tftpboot/dcwdx1.b.5
-rwxrwxrwx 1 root root 55K Apr 3 17:00 /tftpboot/dcwdx1.b.4
-rwxrwxrwx 1 root root 55K Apr 10 17:00 /tftpboot/dcwdx1.b.3
-rwxrwxrwx 1 root root 55K Apr 17 17:00 /tftpboot/dcwdx1.b.2
-rwxrwxrwx 1 root root 55K Apr 24 17:00 /tftpboot/dcwdx1.b.1
-rwxrwxrwx 1 root root 55K May 1 17:00 /tftpboot/dcwdx1.b.0
-rwxrwxrwx 1 root root 0 May 2 03:10 /tftpboot/dcwdx1.b
bash-3.00#
Similarly, I want to setup for this log too -
bash-3.00# ls -lhtr /tftpboot/dcddx1*
-rwxrwxrwx 1 user1 grp1 58K May 1 17:00 /tftpboot/dcddx1.b
bash-3.00#
Ideally Solaris 10 logration works with logadm.conf, but I can't see any relevant entry, what must be rotating dcwdx1. There is just -P, which means logadm looked at this log at this time (am I correct on this ?)
I don't see anything in crontab of root too. What am I missing ? I am trying to find, how these logs are being rotated
bash-3.00# crontab -l
#ident "@(#)root 1.21 04/03/23 SMI"
#
# The root crontab should be used to perform accounting data collection.
#
#
10 3 * * * /usr/sbin/logadm
15 3 * * 0 /usr/lib/fs/nfs/nfsfind
30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean
#
# The rtc command is run to adjust the real time clock if and when
# daylight savings time changes.
#
1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
#10 3 * * * /usr/lib/krb5/kprop_script ___slave_kdcs___
bash-3.00#
bash-3.00# cat /etc/logadm.conf | grep -v "#"
/var/cron/log -P 'Wed Apr 23 10:10:00 2025' -c -s 512k -t /var/cron/olog
/var/lp/logs/lpsched -C 2 -N -t '$file.$N'
/var/fm/fmd/errlog -M '/usr/sbin/fmadm -q rotate errlog && mv /var/fm/fmd/errlog.0- $nfile' -N -s 2m
/var/fm/fmd/fltlog -A 6m -M '/usr/sbin/fmadm -q rotate fltlog && mv /var/fm/fmd/fltlog.0- $nfile' -N -s 10m
smf_logs -C 8 -s 1m /var/svc/log/*.log
/var/adm/pacct -C 0 -N -a '/usr/lib/acct/accton pacct' -g adm -m 664 -o adm -p never
/var/log/pool/poold -N -a 'pkill -HUP poold; true' -s 512k
/var/adm/messages -C 8 -P 'Fri May 2 10:10:00 2025' -a 'kill -HUP `cat /var/run/syslog-ng.pid`' -z 0
/var/adm/xymessages -C 8 -P 'Fri May 2 10:10:00 2025' -a 'kill -HUP `cat /var/run/syslog-ng.pid`' -p 1d -z 1
/var/log/authlog -C 8 -P 'Sun Apr 27 10:10:00 2025' -a 'kill -HUP `cat /var/run/syslog-ng.pid`' -g root -m 0640 -o root -z 0
/var/log/maillog -C 8 -P 'Fri Apr 8 10:10:00 2022' -a 'kill -HUP `cat /var/run/syslog-ng.pid`' -z 0
/var/log/locallog -C 8 -P 'Tue Jun 25 10:10:00 2024' -a 'kill -HUP `cat /var/run/syslog-ng.pid`' -z 0
/var/adm/wtmpx -A 1y -P 'Fri Apr 11 10:10:00 2025' -p 1m -z 0
/var/adm/sulog -A 1y -P 'Fri Apr 11 10:10:00 2025' -g root -m 0640 -o root -p 1m -z 0
/tftpboot/daldx1.b -P 'Mon Apr 28 10:10:00 2025'
/tftpboot/iotdx1.b -P 'Wed Apr 30 10:10:00 2025'
/tftpboot/nwtdx1.b -P 'Sat Oct 1 10:10:00 2016'
/tftpboot/phxdx1.b -P 'Mon Apr 28 10:10:00 2025'
/tftpboot/phxdx2.b -P 'Mon Apr 28 10:10:00 2025'
/tftpboot/raldx1.b -P 'Mon Apr 28 10:10:00 2025'
/tftpboot/seadx1.b -P 'Thu May 1 10:10:00 2025'
/tftpboot/seadx2.b -P 'Mon Apr 28 10:10:00 2025'
/tftpboot/dcwdx1.b -P 'Fri May 2 10:10:00 2025'
bash-3.00#
bash-3.00# ls -ltr /var/spool/cron/crontabs/
total 12
-rw------- 1 root sys 308 Mar 17 2009 sys
-rw------- 1 root sys 190 Mar 17 2009 adm
-r-------- 1 root root 452 Mar 17 2009 lp
-r-------- 1 root sys 404 Apr 1 2010 uucp
-rw------- 1 root sys 482 Apr 1 2010 root
-rw------- 1 root autopcap 126 Jan 4 2013 autopcap
bash-3.00# cat /var/spool/cron/crontabs/* | grep tftpboot
bash-3.00#
Can someone give me some pointer, what am I missing here ? Is it something else, which is triggering this rotation ?
Thanks