This soft copy for use by IBM employees only.
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
dsh -a
command to the ODM commands will perform the action on all
nodes of the RS/6000 SP.
1. Set up the directories for the error notification objects and methods:
mkdir /<define_path>/errnotify/objects
mkdir /<define_path>/errnotify/methods
2. Create the error notification method script.
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.$$
3. Create the error notification objects.
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
″
4. Add the error notification object to the errnotify class:
odmadd /<define_path>/object/errnot.POWER.PANIC.obj
To delete these objects, enter:
186
SP PD Guide
Summary of Contents for RS/6000 SP
Page 2: ......
Page 14: ...This soft copy for use by IBM employees only xii SP PD Guide...
Page 16: ...This soft copy for use by IBM employees only xiv SP PD Guide...
Page 106: ...This soft copy for use by IBM employees only 86 SP PD Guide...
Page 178: ...This soft copy for use by IBM employees only 158 SP PD Guide...
Page 214: ...This soft copy for use by IBM employees only 194 SP PD Guide...
Page 248: ...This soft copy for use by IBM employees only 228 SP PD Guide...
Page 290: ...This soft copy for use by IBM employees only 270 SP PD Guide...
Page 292: ...This soft copy for use by IBM employees only 272 SP PD Guide...
Page 300: ...This soft copy for use by IBM employees only 280 SP PD Guide...
Page 304: ...This soft copy for use by IBM employees only 284 SP PD Guide...
Page 308: ...This soft copy for use by IBM employees only 288 SP PD Guide...
Page 310: ...This soft copy for use by IBM employees only 290 SP PD Guide...
Page 316: ...IBML This soft copy for use by IBM employees only Printed in U S A SG24 4778 00...