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.

From the output of this example, it appears that the aixterm process is hung up<br />

waiting for some kernel resources, as the only events the process is performing<br />

are lock and unlock operations. To go into deeper analysis of this problem, you<br />

would need to look into the program source code of the application you are<br />

tracing.<br />

9.6 Managing mail logging<br />

The sendmail command logs mail system activity through the syslogd daemon.<br />

The syslogd daemon must be configured and running for logging to occur.<br />

Specifically, the /etc/syslog.conf file should contain the uncommented line:<br />

mail.debug /var/spool/mqueue/log<br />

Refresh the syslogd daemon by typing the following at the command line:<br />

# refresh -s syslogd<br />

0513-095 The request for subsystem refresh was completed successfully.<br />

If the /var/spool/mqueue/log file does not exist, you must create it by typing the<br />

following command:<br />

# touch /var/spool/mqueue/log<br />

The types of activities that the sendmail command puts into the log file are<br />

specified by the option in the /etc/mail/sendmail.cf file. (For versions earlier than<br />

<strong>AIX</strong> <strong>5L</strong> Version 5.1, this file is /etc/sendmail.cf.)<br />

Because information is continually appended to the end of the log, the file can<br />

become very large. Run the /usr/lib/smdemon.cleanu shell script to keep the file<br />

from growing too large.<br />

If you suspect a problem, you can set traffic logging by using the -X flag. For<br />

example:<br />

#/usr/sbin/sendmail -X /tmp/traffic -bd<br />

This command logs all traffic in the /tmp/traffic file. This command logs a lot of<br />

data and should not be used during normal operations.<br />

The sendmail command tracks the volume of mail being handled by each of the<br />

mailer programs that interface with it. These mailers are defined in the<br />

/etc/mail/sendmail.cf file. To start the accumulation of mailer statistics, create the<br />

/etc/mail/statistics file by typing the following:<br />

# touch /etc/mail/statistics<br />

Chapter 9. System access and printer problem determination 217

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

Saved successfully!

Ooh no, something went wrong!