Clear Aix Error Logs
Contents |
High Availability LPAR Networks Performance Security Systems Management Tivoli Virtualization Workload Management Cloud Computing IBM Announcements IBM Research Linux Open aix log io error Source What's New Automotive Healthcare Manufacturing Miscellaneous Non-Profit Retail Application Development unix error logs Migration Miscellaneous Systems Management Disk Flash Servers Software Tape AIX > Administrator > Systems Management Reviewing AIX
Solaris Error Logs
Error and Boot Logs July 2013 | by David Tansley Print AIX provides comprehensive logging of events—some are errors requiring attention and others are just notifications. For https://www.ibm.com/support/knowledgecenter/ssw_aix_61/com.ibm.aix.cmds2/errclear.htm system administrators, tasked to make sure the system is running without major issues, logging provides alerts or apprises them of events as they happen. AIX offers different logs depending on the action and when it occurred. These logs hold information on the boot-up process, console, hardware and system software events. It’s up to the http://www.ibmsystemsmag.com/aix/administrator/systemsmanagement/error_logs/ system admin to take action on these events, because once AIX has published the log, its job is done. Logs, Logs, Logs AIX not only offers the errpt but also other error reporting logs. Using the alog command one can list and pick a log to view: # alog -L boot bosinst nim console cfg mdmplog lvmt lvmcfg dumpsymp When issues arise during the boot-up process, for example, and you’re not at the console, you can review the start-up process messages, particularly the boot and console messages. To list the available logs: alog -o -t For example, to view the console log: alog -o -t console Logging Your Own Entries The standard errpt list hardware or software events in AIX that have occurred. However, you might want a message generated and inserted into errpt after some user interaction, for instance, if a system admin has made a change. This allows the change notification to be visible via errpt. Like the logger comman
and other applications log Errlog : used for system, hardware, kernel and other applications log Syslog : used for internet daemons https://abcofaix.wordpress.com/tag/errpt-a/ and other applications log Commands: # alog –L This command will list all log types that are available under alog. # alog –t boot –o # alog –t console –o # alog –t NIM –o # errpt –a Error logging starts automatically with OS initialization and stops only when the system is shutdown. Error log is maintained int he file /var/adm/ras/errlog file Errdaemon is error log started by default in rc.boot Command used to restart errdemon is: # /usr/lib/errdemon This will record error information from /dev/error file and store it in system’s default error log file /var/adm/ras/errorlog. To stop, command used is: # /usr/lib/errstop To find the path to system error log, command used: # /usr/lib/errdemon –l This command will list details about error log. To change the size of aix error log error log, command used is: /usr/lib/errdemon –s “size in bytes” For eg: To change size to 2 MB, /usr/lib/errdemon –s “2000000” Errpt command generates report from error log file. # errpt –a command is used to generate a report from error log file. # errclear 0 command will clear the error log. Clear errors up till 5 days ago, command used is: # errclear 5 To list all errors on hdisk0, command used is: # errpt –N hdisk0 To log operator messages, command used is: # errlogger For real time error logging, command used is: # errpt –c > /dev/console To install or redirect messages to system error log, command used is: # errinstall To update the error record template repository, command used is: # errupdate To log system messages, AIX server uses syslogd. These are stored in /etc/syslog.conf file, which is further used to log information about ftp access to a file. Happy Learning! Written by RA May 12, 2012 at 9:19 am Posted in Abc of Aix, System Admin Tagged with AIX, AIX Basics, alog, errclear, errdemon, errinstall, errlog, error logging in aix, errorlog, errpt -a, errpt