Re: psyslclr command to cleanup log files

From: Holger.VanKoll@SWISSCOM.COM
Date: Thu Jun 27 2002 - 08:43:54 EDT


sorry, not necessary to be on the cws...

root@16-gd2vb6 159# cat /etc/logmgt.acl
#acl#
# This sample acl file for log management commands contains a commented line for a principal
#_PRINCIPAL root.admin@HPSSL.KGN.IBM.COM
# Principal for trimming SPdaemon.log by cleanup.logs.ws
_PRINCIPAL rcmd.gd2vb6
_PRINCIPAL root.admin

root@16-gd2vb6 160# psyslclr -y 30 -l /var/adm/msgs
psyslclr: /var/adm/msgs=========================================================
couldn't open "/var/adm/msgs": A file or directory in the path name does not exist.

if you are not on the CWS check for a valid ticket... or just create one
# k4init root.admin

> -----Original Message-----
> From: Van Koll Holger, IT-DCS-SES-UN
> Sent: Donnerstag, 27. Juni 2002 14:42
> To: 'IBM AIX Discussion List'
> Subject: RE: psyslclr command to cleanup log files
>
>
> r u on your CWS?
>
> > -----Original Message-----
> > From: Dhotre, Shekhar [mailto:Shekhar.Dhotre@T-T.COM]
> > Sent: Mittwoch, 26. Juni 2002 20:06
> > To: aix-l@Princeton.EDU
> > Subject: Re: psyslclr command to cleanup log files
> >
> >
> > "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