21.02.2013 Views

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.4 The errclear command<br />

The errclear command deletes error log entries older than the number of days<br />

specified by the days parameter. To delete all error log entries, specify a value of<br />

0 for the days parameter.<br />

If the -i flag is not used with the errclear command, the error log file cleared by<br />

errclear is the one specified in the error log configuration database. (To view<br />

the information in the error log configuration database, use the errdemon<br />

command.)<br />

The errclear command syntax is as follows:<br />

errclear [ -d ErrorClassList ] [ -i File ]<br />

[ -J ErrorLabel [ ,Errorlabel ] ] | [ -K ErrorLabel [ ,Errorlabel ] ]<br />

[ -l SequenceNumber ] [ -m Machine ] [ -n Node ] [ -N ResourceNameList ] [ -R<br />

ResourceTypeList ] [ -S ResourceClassList ] [ -T ErrorTypeList ]<br />

[ -y FileName ] [ -j ErrorID [ ,ErrorID ] ] |<br />

[ -k ErrorID [ ,ErrorID ] ] Days<br />

Table 6-4 provides the commonly used flags of the errclear command.<br />

Table 6-4 Commonly used flags of the errclear command<br />

Flag Description<br />

-d List Deletes error log entries in the error classes specified by the list<br />

variable. The list variable values can be separated by commas,<br />

or enclosed in double quotation marks and separated by commas<br />

or space characters. The valid list variable values are H<br />

(hardware), S (software), O (errlogger messages), and U<br />

(undetermined).<br />

-i File Uses the error log file specified by the file variable. If this flag is<br />

not specified, the errclear command uses the value from the error<br />

log configuration database.<br />

-j ErrorID[,ErrorID] Deletes the error log entries specified by the ErrorID (error<br />

identifier) variable. The ErrorID variable values can be separated<br />

by commas, or enclosed in double quotation marks and<br />

separated by commas or space characters.<br />

-J ErrorLabel Deletes the error log entries specified by the ErrorLabel variable.<br />

The ErrorLabel variable values can be separated by commas, or<br />

enclosed in double quotation marks and separated by commas or<br />

space characters.<br />

Chapter 6. Error reports 125

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!