Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

AIX's system error log

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

AIX provides an error logging mechanism to log hardware and software failures. The error log can provide information for fault detection and repair.

When an operating system module detects an error, the error logging process begins to work. Error detection code snippet and then

Error messages are sent to errsave and errlast kernel services, or to errlog application subroutines, where the message is

Write to a special file / dev/error in turn. The process then adds a time scale to the collected data (time

Stamp). You can use the errpt command to find the error record in the error log.

/ usr/lib/errdemon command

/ usr/lib/errdemon-l determines the path to the error log file

The errdemon process constantly checks the / dev/error file to see if there is anything new.

Errpt command

-a shows all errors reported

-j errid displays the error report of the specified error id

-s xxxx specifies the record after the xxxx date (xxxx format is mmddhhmmyy month, day, hour, minute, year)

-t handles error template libraries instead of logs

Errclear 0 clears error logging

Errinstall installs messages in the error log message set (error logging message sets).

Errupdate Update error record template Library

Diagnose hardware issu

The diag command is the starting point for running a large number of task options and is a maintenance aid for determining hardware problems. Diag life

Command provides a menu-driven interface, but you can also use command-line tags directly to perform specific tasks.

If you suspect a problem, use the following steps to run diagnostics.

Run the diag command. Press enter (Enter) to cross the information screen. Select the diagnostic process (Diagnostic Routines). Select problem determination (Problem Determination).

This process instructs the diag command to test the system and analyze the error log.

System log

AIX uses syslogd to log system messages. The syslogd servo program (syslogd daemon) reads a Datagram socket (datagram socket) and sends each message line to a destination described by the configuration file / etc/syslog.conf. Syslogd daemon reads the configuration file when activated and when a hang-up signal is received.

Syslogd daemon creates the / etc/syslog.pid file. The file contains only one line of content, which is the command process ID of syslogd daemon. It is used to terminate or reconfigure syslogd daemon. Syslogd-d Open debug-f xxx specifies that syslogd reads the default configuration file / etc/syslog.conf by default, but if you use the-f flag, you can specify another configuration file. Stopsrc-s syslogd stop syslogd daemon startsrc-s syslogd restart syslogd daemon

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report