highavailChange

Executor runs this script whenever the state of the Load Balancer server changes (from active to standby or from standby to active). It passes the name of the High Availability script that was run as the first parameter to the script. With ksh on AIX, the script name can be used by referencing the variable $1.

We use this script to record an entry in a log file saying that the state of the local server has changed. See Example 11-18.

Example 11-18 highavailChange script

#!/bin/ksh
DATE=`date`
OUTPUT="$DATE LB just ran $1."
echo $OUTPUT >> /opt/ibm/edge/lb/servers/logs/lb.log

For NAT on Solaris, we use the same script except that we use #!/bin/sh as the execution shell.
xxxx