Oracle Solaris System Administration (MOSC)

MOSC Banner

Unable to rotate the /var/adm/messages in logadm.conf gile

edited Feb 22, 2017 4:00AM in Oracle Solaris System Administration (MOSC) 11 commentsAnswered

Hi Experts,

I would like to rotate /var/adm/message files (Solaris 10 & 11) weekly once and need to keep for 180 days. I have put the below entry in /etc/logadm.conf file.

/var/adm/messages -C 25 -p 7d -a 'kill -HUP `cat /var/run/syslog.pid`' -z 0

-C : No: of files

-p: 7 days

-z : "-z 0" option to compress logfiles after they are rotated

But still I'm unable to rotate the files. Please let me know, the changes needs to perform on above entry in /etc/logadm.conf file.

Thanks in advance.

Regards,

Fuad

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center