Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Sunday, 5 January 2014

ERROR Logging Commands

There are 3 types of error log available in AIX:
1. Alog
2. Errlog
3. Syslog
Alog : used for console, boot, NIM and other applications log
Errlog : used for system, hardware, kernel and other applications log
Syslog : used for internet daemons 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 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 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.

No comments:

Post a Comment