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.6 The syslogd daemon<br />

The syslogd daemon receives information from other daemons and sends it to<br />

files, terminals, users, or other machines. Depending on its configuration, it only<br />

logs critical errors or debugging ouput. By default the file has no active entries.<br />

The syslogd daemon is started by /etc/rc.tcpip. The daemon is configured by<br />

/etc/syslog.conf, in which the priority of the information, its source, and where it<br />

should be sent to are specified.<br />

The syslogd daemon is a subsystem of the System Resource Controller (SRC)<br />

and can be manipulated by the SRC commands described in Table 6-5.<br />

Table 6-5 System Resource Controller commands<br />

SRC<br />

commands<br />

Description<br />

startsrc Starts a subsystem, group of subsystems, or a subserver<br />

stopsrc Stops a subsystem, group of subsystems, or a subserver<br />

lssrc Gets the status of a subsystem, group of subsystems, or a<br />

subserver<br />

The syslogd daemon creates the /etc/syslog.pid file, which contains a single line<br />

with the command process ID used to end or reconfigure the syslogd daemon.<br />

The /usr/include/sys/syslog.h include file defines the facility and priority codes<br />

used by the configuration file. Locally written applications use the definitions<br />

contained in the syslog.h file to log messages using the syslogd daemon.<br />

The syslog subroutine writes messages onto the system log maintained by the<br />

syslogd command. The message is obtained from the errno global variable.<br />

Messages are read by the syslogd command and written to the system console<br />

or log file, or forwarded to the syslogd command on the appropriate host.<br />

Messages are tagged with codes indicating the type of priority for each. A priority<br />

is encoded as a facility, which describes the part of the system generating the<br />

message, and as a level, which indicates the severity of the message.<br />

The syslogd daemon reads a datagram socket and sends each message line to<br />

a destination described by the /etc/syslog.conf configuration file. The syslogd<br />

daemon reads the configuration file when it is activated and when it receives a<br />

hangup signal. The syslogd daemon creates the /etc/syslog.pid file, which<br />

contains a single line with the command process ID used to end or reconfigure<br />

the syslogd daemon. A terminate signal sent to the syslogd daemon ends the<br />

daemon. The syslogd daemon logs the end-signal information and terminates<br />

immediately.<br />

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