Setting up error notification - assure_mimix - 6.0

Assure MIMIX for AIX Guide

Product type
Software
Portfolio
Integrate
Product family
Assure
Product
Assure MIMIX™ Software for AIX
Version
6.0
ft:locale
en-US
Product name
Assure MIMIX for AIX
ft:title
Assure MIMIX for AIX Guide
Copyright
2025
First publish date
2003
ft:lastEdition
2025-10-08
ft:lastPublication
2025-10-08T06:18:25.453000
L1_Product_Gateway
Integrate
L2_Product_Segment
IBM Infrastructure
L3_Product_Brand
Precisely Assure
L4_Investment_Segment
IBM i HA
L5_Product_Group
IBM i HA
L6_Product_Name
Assure MIMIX for AIX

Use the AIX Error Notification feature to notify the administrator via email or take action when certain errors are recorded in the AIX error log.

The following example script /home/scrt/enm_1 can be used to record this information in /tmp/enm_1.out and notify the administrator via email when certain errors occur.

#!/bin/ksh
PROGNAME=${0##*/}
exec 1>> /tmp/${PROGNAME}.out
exec 2>&1
printf "error notify method\n"
errpt -Al ${1}
errpt -Al ${1} | mail -s Error root

To enable AIX Error Notification for one or more of the Assure MIMIX for AIX errors, you must add a stanza to the errnotify ODM. When the error is logged, the error notification daemon will call the notify method specified in the errnotify ODM stanza. The errnotify ODM is located in the /etc/objrepos directory.

For example, the following errnotify stanzas are added to file /tmp/ern_1.add for error labels SCRT_LFC_READ_ERROR, SCRT_LFC_WRITE_ERROR, "SCRT_NETWORK_ERROR" and "SCRT_ABORT_ERROR.

errnotify:
 en_name = "SCRT_LFC_READ_ERROR"
   en_class = "S"
   en_type = "PERM"
   en_method = "/home/scrt/enm_1 $1"
 
errnotify:
   en_name = "SCRT_LFC_WRITE_ERROR"
   en_class = "S"
   en_type = "PERM"
   en_method = "/home/scrt/enm_1 $1"
 
errnotify:
   en_name = "SCRT_NETWORK_ERROR"
   en_class = "S"
   en_type = "PERM"
   en_method = "/home/scrt/enm_1 $1"
 
errnotify:
   en_name = "SCRT_ABORT_ERROR"
   en_class = "S"
   en_type = "PERM"
   en_method = "/home/scrt/enm_1 $1"