01.12.2012 Views

Problem Solving and Troubleshooting in AIX 5L - IBM Redbooks

Problem Solving and Troubleshooting in AIX 5L - IBM Redbooks

Problem Solving and Troubleshooting in AIX 5L - 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.

Resource Name: errdemon<br />

Description<br />

ERROR LOGGING TURNED ON<br />

► To display a detailed report of all errors logged for a particular error identifier,<br />

enter the follow<strong>in</strong>g comm<strong>and</strong>:<br />

# errpt -a -j identifier<br />

Where identifier is the eight digit hexadecimal unique error identifier.<br />

► To clear all entries from the error log, enter the follow<strong>in</strong>g comm<strong>and</strong>:<br />

# errclear 0<br />

► To stop error logg<strong>in</strong>g, enter the follow<strong>in</strong>g comm<strong>and</strong>:<br />

# /usr/lib/errstop<br />

► To start error logg<strong>in</strong>g, enter the follow<strong>in</strong>g comm<strong>and</strong>:<br />

# /usr/lib/errdemon<br />

► To list the current sett<strong>in</strong>g of error log file <strong>and</strong> buffer size <strong>and</strong> duplicate<br />

<strong>in</strong>formation, enter the follow<strong>in</strong>g comm<strong>and</strong>:<br />

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

If you want to change the buffer size <strong>and</strong> error log file size, you can use the<br />

errdemon comm<strong>and</strong>. For further detail, refer to the manual page for errdemon.<br />

Note: When you remove the errlog file accidently, use the /usr/lib/errstop<br />

<strong>and</strong> /usr/lib/errdemon comm<strong>and</strong>s <strong>in</strong> sequence to recover the file. errdemon<br />

creates the errlog file if the file does not exist.<br />

Software service aid configuration <strong>in</strong>formation is stored <strong>in</strong> the<br />

/etc/objrepos/SWservAt ODM database. This ODM class is used to store<br />

<strong>in</strong>formation about the location <strong>and</strong> size of various log files used by the system. It<br />

is also used to hold <strong>in</strong>formation about trace hooks available for use by the trace<br />

subsystem, described <strong>in</strong> Chapter 11, “Event trac<strong>in</strong>g” on page 341.<br />

By default, <strong>AIX</strong> runs a cron job that deletes all hardware error log entries older<br />

than 90 days daily at 12 AM <strong>and</strong> all software <strong>and</strong> operator message error log<br />

entries older than 30 days daily at 11 AM. The cron job simply uses the errclear<br />

comm<strong>and</strong> to delete the old entries. If you are <strong>in</strong>vestigat<strong>in</strong>g a software problem<br />

that has been on a mach<strong>in</strong>e for a long time, do not assume that the first <strong>in</strong>stance<br />

of the error <strong>in</strong> the error log was caused the first time the software problem<br />

occurred. Previous entries may have been deleted if older than 30 days.<br />

Chapter 2. Error logg<strong>in</strong>g 25

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

Saved successfully!

Ooh no, something went wrong!