psyslclr command to cleanup log files

From: Dhotre, Shekhar (Shekhar.Dhotre@T-T.COM)
Date: Wed Jun 26 2002 - 11:25:25 EDT


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