Deletes entries from the error log.
errclear [ -d ErrorClassList ] [ -i File ] [ -J ErrorLabel [ ,Errorlabel ] ] | [ -K ErrorLabel [ ,Errorlabel ] ] [ -l SequenceNumber ] [ -m Machine ] [ -n Node ] [ -N ResourceNameList ] [ -R ResourceTypeList ] [ -S ResourceClassList ] [ -T ErrorTypeList ] [ -y FileName ] [ -j ErrorID [ ,ErrorID ] ] | [ -k ErrorID [ ,ErrorID ] ] Days
The errclear command deletes error-log entries older than the number of days specified by the Days parameter. To delete all error-log entries, specify a value of 0 for the Days parameter.
If the -i flag is not used with the errclear command, the error log file cleared by errclear is the one specified in the error log configuration database. (To view the information in the error log configuration database, use the errdemon command.)
You can use the Web-based System Manager System application (wsm system fast path) to run this command. You could also use the System Management Interface Tool (SMIT) smit errclear fast path to run this command.
Access Control: Only the root user can run this command.
errclear 0
errclear -d S 0
errclear -i /var/adm/ras/errlog.alternate 0
errclear -i /var/adm/ras/errlog.alternate -d H 0
/etc/objrepos/SWservAt | Contains the Software Service Aids Attributes object class, which is the error-log configuration database. |
The errdead command, errinstall command, errlogger command, errmsg command, errpt command, errstop command, errupdate command, uname command.
The errdemon daemon.
The errsave kernel service.
The errlog subroutine.
Error Logging Overview in AIX Version 4.3 Problem Solving Guide and Reference.
Setting up and running Web-based System Management in AIX Version 4.3 System Management Guide: Operating System and Devices.