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.

Tuesday 10 December 2013

AIX errpt error



errpt - The errpt command generates an error report from entries in an error log. The default summary report contains one line of data for each error.

 root@lpar2(/)#errpt
IDENTIFIER TIMESTAMP  T C RESOURCE_NAME  DESCRIPTION
5561971C   0929135413 P S ent2           UNSUPPORTED IOCTL IN DEVICE DRIVER
5561971C   0929135413 P S ent2           UNSUPPORTED IOCTL IN DEVICE DRIVER
A6DF45AA   0929134413 I O RMCdaemon      The daemon is started.
2BFA76F6   0929134313 T S SYSPROC        SYSTEM SHUTDOWN BY USER
9DBCFDEE   0929134313 T O errdemon       ERROR LOGGING TURNED ON
192AC071   0929134213 T O errdemon       ERROR LOGGING TURNED OFF
A6DF45AA   0929132813 I O RMCdaemon      The daemon is started.
2BFA76F6   0929124313 T S SYSPROC        SYSTEM SHUTDOWN BY USER
9DBCFDEE   0929124413 T O errdemon       ERROR LOGGING TURNED ON
root@lpar2(/)#

Column-1 : ERROR IDENTIFIER
Error Identifier can be used to get the full report from either errorlog using -j flag or from the error-template repository in combination with -t flag.

Column-2 : TIMESTAMP
The above (0929135413) timestamp can be interpreted as:
0929135413 : (09=Month29 =Day13=Hour54=Minutes13=year)

Column-3 : TYPE OF ERROR
P – Permanent
T – Temporary
I – INFO

Column-4 : ERRCLASS
 H - Hardware
S - Software
O - Operator Notice(Intiated with errlogger command)
U - Undetermined

Column-5 : RESOURCE NAME
The name of the resource that detected the error. It may not be the component having the problem.

Column-6: DESCRIPTION
A short description of the error message extracted from the Template repository

To display a detailed report of all errors logged for the error identifier 5561971C, enter:


root@lpar2(/)#errpt -a -j 5561971C
---------------------------------------------------------------------------
LABEL:          ECH_CANNOT_SET_CLBK
IDENTIFIER:     5561971C

Date/Time:       Sun Sep 29 13:54:21 2013
Sequence Number: 11
Machine Id:      000A7388D600
Node Id:         lpar2
Class:           S
Type:            PERM
Resource Name:   ent2
Description
UNSUPPORTED IOCTL IN DEVICE DRIVER

Probable Causes
UNSUPPORTED IOCTL IN DEVICE DRIVER

Failure Causes
UNSUPPORTED IOCTL IN DEVICE DRIVER

        Recommended Actions
        USE SUPPORTED ETHERNET ADAPTER

Detail Data
Unable to set link status callback in adapter: adapter does not support EtherChannel Backup
ent1
---------------------------------------------------------------------------
LABEL:          ECH_CANNOT_SET_CLBK
IDENTIFIER:     5561971C

Date/Time:       Sun Sep 29 13:54:21 2013
Sequence Number: 10
Machine Id:      000A7388D600
Node Id:         lpar2
Class:           S
Type:            PERM
Resource Name:   ent2

Description
UNSUPPORTED IOCTL IN DEVICE DRIVER

Probable Causes
UNSUPPORTED IOCTL IN DEVICE DRIVER

Failure Causes
UNSUPPORTED IOCTL IN DEVICE DRIVER

        Recommended Actions
        USE SUPPORTED ETHERNET ADAPTER

Detail Data
Unable to set link status callback in adapter: adapter does not support EtherChannel Backup
ent0
root@lpar2(/)#

If you want to view entries based on hardware or software, simply supply the class type. To view any hardware-related issues, for instance, use:
root@lpar2(/)# errpt -d H

Similarly for software, which would include core dumps and shutdowns, use:
root@lpar2(/)# errpt -d S

To clear errpt entries older than two days, use
root@lpar2(/)# errclear 2

To clear all software errors by using the resource name, try:
root@lpar2(/)# errclear –d S 0

To clear down all ent0 entries:
root@lpar2(/)# errclear –N ent0 0

To clear all SYSPROC entries:
root@lpar2(/)# errclear –N SYSPROC 0

To clear by identifier:
root@lpar2(/)# errclear –J 0

After viewing the all logs, and if you would like to clear whole errpt
root@lpar2(/)# errclear 0

If Logging Stops

If your errlog stops logging/reporting events, chances are the log is full or corrupted. A quick fix is to zero the file. First, stop the errpt service:
root@lpar2(/)# /usr/lib/errstop

Next, remove the /var/adm/ras/errlog:
root@lpar2(/)# rm /var/adm/ras/errlog

Restart it and you are good to go:
root@lpar2(/)# /usr/lib/errdemon

To view attributes relating to the errolog, use:
root@lpar2(/)# /usr/lib/errdemon -l

No comments:

Post a Comment