IBM RS/6000 SP Problem Determination Manual page 206

Hide thumbs Also See for RS/6000 SP:
Table of Contents

Advertisement

6.3.6 Notification Power Loss and PANIC
The following example shows how to mail the error report to
root@controlworkstation when an unexpected power loss and kernel panic
occur.
Adding the
nodes of the RS/6000 SP.
1. Set up the directories for the error notification objects and methods:
2. Create the error notification method script.
3. Create the error notification objects.
4. Add the error notification object to the errnotify class:
186
SP PD Guide
dsh -a
command to the ODM commands will perform the action on all
mkdir /<define_path>/errnotify/objects
mkdir /<define_path>/errnotify/methods
Create the script that will be run when the error occurs. For example:
#!/bin/ksh
#########################################################################
# Run errpt to get the full error report for the error that
# was written and redirect it to a unique errnot.$$ file.
# $$ will expand to the PID of this script.
#########################################################################
errpt -a -l $1 > /tmp/errnot.$$
#########################################################################
# Mail the full expanded error report to root@controlworkstation.
# This is the user and the hostname that the administrator wants
# to be notified at. They could be anywhere in the system.
#########################################################################
mail root@controlworkstation < /tmp/errnot.$$
Create the file that contains the error notification objects to catch the kernel
panic and power loss error labels.
errnotify:
en_name = "power.obj"
en_persistenceflg = 1
en_label = "EPOW_SUS"
en_method = "/<define_path>/methods/errnot.$1"
errnotify:
en_name = "panic.obj"
en_persistenceflg = 1
en_label = "KERNEL_PANIC"
en_method = "/<define_path>/methods/errnot.$1"
errnotify:
en_name = "DBL_PANIC.obj"
en_persistenceflg = 1
en_label = "DOUBLE_PANIC"
en_method = "/<define_path>/methods/errnot.$1"
odmadd /<define_path>/object/errnot.POWER.PANIC.obj
To delete these objects, enter:
This soft copy for use by IBM employees only.
#
#
#
#
#
#

Advertisement

Table of Contents
loading

Table of Contents