How To
Summary
AIX uses "errpt" as its default Hardware and Software error-logging facility, which records failures locally for failure detection and correction.
In this document, we discuss how to use AIX Error Notification facility to store errpt error messages in syslog files.
Objective
nit:2:initdefault:
brc::sysinit:/sbin/rc.boot 3 >/dev/console 2>&1 # Phase 3 of system boot <---- "errpt" starts here
powerfail::powerfail:/etc/rc.powerfail 2>&1 | /usr/bin/alog -tboot > /dev/console # Power Failure Detection
tunables:23456789:wait:/usr/sbin/tunrestore -R > /dev/console 2>&1 # Set tunables
securityboot:2:bootwait:/etc/rc.security.boot > /dev/console 2>&1
rc:23456789:wait:/etc/rc 2>&1 | /usr/bin/alog -tboot > /dev/console # Multi-User checks
rcemgr:23456789:once:/usr/sbin/emgr -B > /dev/null 2>&1
srcmstr:23456789:respawn:/usr/sbin/srcmstr # System Resource Controller
rctcpip:23456789:wait:/etc/rc.tcpip > /dev/console 2>&1 # Start TCP/IP daemons <---- "syslog" starts here
aso:23456789:once:/usr/bin/startsrc -s aso
rcnfs:23456789:wait:/etc/rc.nfs > /dev/console 2>&1 # Start NFS Daemons
Steps
errnotify:
en_name = "syslog1"
en_persistenceflg = 1
en_method = logger "Msg from Error Log: `errpt -l $1 | grep -v 'IDENTIFIER TIMESTAMP'`"
# odmadd /tmp/errnotify.add
# odmget -q "en_name='syslog1'" errnotify
errnotify:
en_pid = 0
en_name = "syslog1"
en_persistenceflg = 1
en_label = ""
en_crcid = 0
en_class = ""
en_type = ""
en_alertflg = ""
en_resource = ""
en_rtype = ""
en_rclass = ""
en_symptom = ""
en_err64 = ""
en_dup = ""
en_method = logger "Msg from Error Log: `errpt -l $1 | grep -v 'IDENTIFIER TIMESTAMP'`"
user.notice /var/log/errpt.log
# touch /var/log/errpt.log
# refresh -s syslogd
Oct 13 19:42:55 tcp58 user:notice root: Msg from Error Log: E87EF1BE 1008150022 P O dumpcheck The largest dump device is too small.
user.notice @<hostname/IP address>
# refresh -s syslogd
- syslogd on the remote host, needs to be configured to log events of the facility "user" and severity "notice" in order for log messages to reach its remote destination .
| SUPPORT |
|
If you require more assistance, use the following step-by-step instructions to contact IBM to open a case for software with an active and valid support contract. 1. Document (or collect screen captures of) all symptoms, errors, and messages related to your issue. 2. Capture any logs or data relevant to the situation. 3. Contact IBM to open a case: -For electronic support, see the IBM Support Community: 4. Provide a clear, concise description of the issue. 5. If the system is accessible, collect a system snap, and upload all of the details and data for your case. - For guidance, see: Working with IBM AIX Support: Collecting snap data |
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
13 October 2022
UID
ibm16829381