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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

To change the current log file, the errdemon command is used as follows:<br />

# /usr/lib/errdemon -i /var/adm/ras/myerrlog<br />

To change the error log file size, the errdemon command is used as follows:<br />

# /usr/lib/errdemon -s 47798<br />

To change the error log buffer size, the errdemon command is used as follows:<br />

# /usr/lib/errdemon -B 16384<br />

0315-175 The error log memory buffer size you supplied will be rounded up<br />

to a multiple of 4096 bytes.<br />

The new status can be checked using the errdemon command as follows:<br />

# /usr/lib/errdemon -l<br />

Error Log Attributes<br />

--------------------------------------------<br />

Log File /var/adm/ras/myerrlog<br />

Log Size 47798 bytes<br />

Memory Buffer Size 16384 bytes<br />

The errdemon command without flags will start the error daemon if it is not<br />

running as follows:<br />

# /usr/lib/errdemon<br />

If the error daemon is running, an error will be reported as follows:<br />

# /usr/lib/errdemon<br />

0315-100 The error log device driver, /dev/error, is already open.<br />

The error demon may already be active.<br />

6.3 The errpt command<br />

The errpt command generates an error report from entries in an error log. It<br />

includes flags for selecting errors that match specific criteria. By using the default<br />

condition, you can display error log entries in the reverse order in which they<br />

occurred and were recorded. By using the - c (concurrent) flag, you can display<br />

errors as they occur. If the -i flag is not used with the errpt command, the error<br />

log file processed by errpt is the one specified in the error log configuration<br />

database (by default /var/adm/ras/errlog).<br />

The default summary report contains one line of data for each error. You can use<br />

flags to generate reports with different formats.<br />

110 <strong>IBM</strong> ^ Certification Study Guide - <strong>AIX</strong> <strong>5L</strong> <strong>Problem</strong> <strong>Determination</strong> Tools and Techniques

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

Saved successfully!

Ooh no, something went wrong!