Re: psyslclr command to cleanup log files

From: Dhotre, Shekhar (Shekhar.Dhotre@T-T.COM)
Date: Wed Jun 26 2002 - 14:05:35 EDT


"logmgt.acl" 6 lines, 265 characters
# set -o vi
# psyslclr -y 30 -l /var/adm/msgs
psyslclr: 2508-302 Insufficient authorization to trim syslog files.

uncommented entries in /etc/logmgt.acl file Not working .
do u use cleanup script ?

Thanks .
SD
-----Original Message-----
From: Holger.VanKoll@SWISSCOM.COM [mailto:Holger.VanKoll@SWISSCOM.COM]
Sent: Wednesday, June 26, 2002 12:15 PM
To: aix-l@Princeton.EDU
Subject: Re: psyslclr command to cleanup log files

uncomment root.admin principal in /etc/logmgt.acl

> -----Original Message-----
> From: Dhotre, Shekhar [mailto:Shekhar.Dhotre@T-T.COM]
> Sent: Mittwoch, 26. Juni 2002 17:25
> To: aix-l@Princeton.EDU
> Subject: psyslclr command to cleanup log files
>
>
> Hi All,
>
> I am trying to use psyslclr -y 30 -l /var/adm/msgs command
> to cleanup log
> files on SP system and I am getting following error #
> psyslclr -y 30 -l
> /var/adm/msgs
> psyslclr: 2508-302 Insufficient authorization to trim syslog files.
>
> # id
>
> uid=0(root) gid=0(system)
> groups=2(bin),3(sys),7(security),8(cron),10(audit),20
> (dba)
>
> # uname -a
>
> AIX spnode3int 3 4 000076644C00
>
> #
>
> how all SP/AIX admins out there managing cleanup of log files ? Does
> anyone have script to clean up these log files on regular
> basis ? If so
> please mail me . I am thinking to add these entries in
> crontab file which
> may not be the best way .
>
>
> 0 11 * * * /usr/bin/errclear -d S,O 30
> 0 12 * * * /usr/bin/errclear -d H 90
> 01 5 * * * /usr/lpp/diagnostics/bin/run_ssa_ela 1>/dev/null
> 2>/dev/null
> 0 * * * * /usr/lpp/diagnostics/bin/run_ssa_healthcheck 1>/dev/null
> 2>/dev/null
> 0 0 * * * /usr/lpp/ssp/bin/cleanup.logs.ws
>
>
> Has anybody else done this, or am I crossing into a black hole?
> I searched the archives but could not find anything that would help.
>
> Thanks
> Shekhar Dhotre.
> Unix Admin
> Boston ,MA-02071
> USA.
>



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:01 EDT