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.

In this example, the VMM return code 0x86 means protection exception. The<br />

various VMM return codes, symbolic names, and meanings are provided in the<br />

following:<br />

0000000E This return code indicates an EFAULT. It comes from errno.h (14)<br />

and is returned if you attempt to access an invalid address.<br />

FFFFFFFA This return code indicates that you tried to access an invalid page<br />

that is not in memory. This is usually the result of a page fault. This<br />

will be returned if you try to access something that is paged out<br />

while interrupts are disabled.<br />

00000005 This is a hardware problem. An I/O error occurred when you tried<br />

to page in or page out, or you tried to access a memory mapped<br />

file and could not do it. Check the error log for disk or SCSI errors.<br />

00000086 This return code indicates a protection exception. This means that<br />

you tried to store to a location that is protected. This is usually<br />

caused by low kernel memory.<br />

0000001C This return code indicates no paging space. This means that the<br />

system has exhausted its paging space.<br />

Handling crash output<br />

Some crash subcommands generate many more lines than can fit on one<br />

screen. Also, crash does not pause the output after each screen is full. You will<br />

want to have some way of seeing the scrolled data.<br />

In the past, the script or tee commands were used for this. For example:<br />

tee -a outf | crash /tmp/dump /unix | tee -a outf<br />

There is now a new way to obtain a log file by using the set logfile subcommand.<br />

For example:<br />

>set logfile crash.log<br />

Once this has been entered, crash starts logging all input and output to the<br />

specified file. The set variable subcommand is available in <strong>AIX</strong> Version 4.1.5,<br />

4.2.1, 4.3, and later.<br />

In addition to the logfile support, command pipeline support was added to crash,<br />

allowing you to pipe long output to other commands, such as more, pg, and grep.<br />

For example:<br />

> le 0123cc5c | grep Name<br />

Name: /usr/lib/drivers/pse/pse<br />

94 <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!