This soft copy for use by IBM employees only.
workstation for convenience. You can do this using the
@hostname parameter
in the /etc/syslog.conf file.
6.3 Error Notification Facility
Following is a description of the actions to be taken by the notification method
EN_pend, located in the directory /spdata/sys1/err_methods. You can install this
method to invoke pre- and post-action scripts and mail a report of the logged
error. The script provides a suggested structure for notification methods and
can be reused with different pre- and post-action scripts.
EN_pend method flow
1. EN_pend looks in the directory it resides in for a file with the same name and
one with the
envs suffix. An EN_pend.envs script is installed in the same
directory. If found, it will set the environment variables EN_RUNDEFAULT
and EN_MAILLOC.
2. EN_pend.envs sets the EN_RUNDEFAULT environment variable. It also sets
the EN_MAILLOC variable to root at the Control Workstation (or, if this is
impossible, to root at the local node).
3. EN_pend checks for a pre-action script in the same directory and name with
a
.pre
suffix, and executes it if found.
4. EN_pend mails an expanded report of the error using the sequence of the
error passed by the notification facility to the EN_MAILLOC. Note that this
will only happen if the variables EN_RUNDEFAULT and EN_MAILLOC are set.
5. EN_pend checks for a post-action script in the same directory and name with
a
.post
suffix, and executes it if found.
Installing a notification object
To add the EN_pend method to all nodes in the current partition so they will send
a report whenever an error of type PEND (loss of availability of a device is
imminent) occurs, enter the following commands:
penotify -a -n
″
PEND_err
″
-P -t
″
PEND
″
-m /spdata/sys1/err_methods/ \
EN_pend $1
penotify -a -n
″
pend_err
″
-P -t
″
pend
″
-m /spdata/sys1/err_methods/ \
EN_pend $1
penotify -a -n
″
Pend_err
″
-P -t
″
Pend
″
-m /spdata/sys1/err_methods/ \
EN_pend $1
Three objects are added with variations on PEND because uppercase is not
always adhered to by all AIX LPPs and vendor functions. The
$1
argument
causes the Error Notification to pass the error sequence number to the notify
method.
Create different pre- and post-action scripts
The EN_pend and EN_pend.envs scripts can be used to invoke different pre- and
post-action scripts for different error events by creating links to them. EN_pend
looks for .envs, .pre and .post scripts in the directory it is called from and by the
same base name. In the following example, EN_pend is used for reporting
Chapter 6. E r r o r Logging
175
Содержание RS/6000 SP
Страница 2: ......
Страница 14: ...This soft copy for use by IBM employees only xii SP PD Guide...
Страница 16: ...This soft copy for use by IBM employees only xiv SP PD Guide...
Страница 106: ...This soft copy for use by IBM employees only 86 SP PD Guide...
Страница 178: ...This soft copy for use by IBM employees only 158 SP PD Guide...
Страница 214: ...This soft copy for use by IBM employees only 194 SP PD Guide...
Страница 248: ...This soft copy for use by IBM employees only 228 SP PD Guide...
Страница 250: ...This soft copy for use by IBM employees only Figure 102 setup_authent Script Flow Chart 2 7 230 SP PD Guide...
Страница 252: ...This soft copy for use by IBM employees only Figure 104 setup_authent Script Flow Chart 4 7 232 SP PD Guide...
Страница 254: ...This soft copy for use by IBM employees only Figure 106 setup_authent Script Flow Chart 6 7 234 SP PD Guide...
Страница 258: ...This soft copy for use by IBM employees only Figure 110 install_cw Script Flow Chart 3 3 238 SP PD Guide...
Страница 260: ...This soft copy for use by IBM employees only Figure 112 setup_server Script Flow Chart 2 23 240 SP PD Guide...
Страница 262: ...This soft copy for use by IBM employees only Figure 114 setup_server Script Flow Chart 4 23 242 SP PD Guide...
Страница 264: ...This soft copy for use by IBM employees only Figure 116 setup_server Script Flow Chart 6 23 244 SP PD Guide...
Страница 266: ...This soft copy for use by IBM employees only Figure 118 setup_server Script Flow Chart 8 23 246 SP PD Guide...
Страница 268: ...This soft copy for use by IBM employees only Figure 120 setup_server Script Flow Chart 10 23 248 SP PD Guide...
Страница 270: ...This soft copy for use by IBM employees only Figure 122 setup_server Script Flow Chart 12 23 250 SP PD Guide...
Страница 272: ...This soft copy for use by IBM employees only Figure 124 setup_server Script Flow Chart 14 23 252 SP PD Guide...
Страница 274: ...This soft copy for use by IBM employees only Figure 126 setup_server Script Flow Chart 16 23 254 SP PD Guide...
Страница 276: ...This soft copy for use by IBM employees only Figure 128 setup_server Script Flow Chart 18 23 256 SP PD Guide...
Страница 278: ...This soft copy for use by IBM employees only Figure 130 setup_server Script Flow Chart 20 23 258 SP PD Guide...
Страница 280: ...This soft copy for use by IBM employees only Figure 132 setup_server Script Flow Chart 22 23 260 SP PD Guide...
Страница 284: ...This soft copy for use by IBM employees only Figure 136 rc switch Script Flow Chart 3 8 264 SP PD Guide...
Страница 286: ...This soft copy for use by IBM employees only Figure 138 rc switch Script Flow Chart 5 8 266 SP PD Guide...
Страница 288: ...This soft copy for use by IBM employees only Figure 140 rc switch Script Flow Chart 7 8 268 SP PD Guide...
Страница 290: ...This soft copy for use by IBM employees only 270 SP PD Guide...
Страница 292: ...This soft copy for use by IBM employees only 272 SP PD Guide...
Страница 300: ...This soft copy for use by IBM employees only 280 SP PD Guide...
Страница 304: ...This soft copy for use by IBM employees only 284 SP PD Guide...
Страница 308: ...This soft copy for use by IBM employees only 288 SP PD Guide...
Страница 310: ...This soft copy for use by IBM employees only 290 SP PD Guide...
Страница 316: ...IBML This soft copy for use by IBM employees only Printed in U S A SG24 4778 00...