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.)
Note: The errclear command clears the specified entries, but does not decrease the error log file size.
You can use the System application in Web-based System Manager (wsm) to change system characteristics. 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 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.
For information on installing the Web-based System Manager, see Chapter 2: Installation and System Requirements in AIX 5L Version 5.2 Web-based System Manager Administration Guide.