serverUp

Executor runs this script whenever a balanced server is marked up by Manager. It passes the name of the balanced server as the first parameter to the script. With ksh on AIX, the variable $1 contains the server name in the format <cluster>:<port>:<server>. For example, for Web server node 1 in our scenario:

wcha.torolab.ibm.com:80:srvb501.torolab.ibm.com

We use this script to record an entry in a log file saying that one of the Web servers was marked up by Manager. See Example 11-17.

Example 11-17 serverUP script

#!/bin/ksh
DATE=`date`
OUTPUT="$DATE $1 has been marked back up."
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