serverDown
Executor runs this script whenever a balanced server is marked down 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.comWe use this script to record an entry in a log file saying that one of the Web servers was marked down by manager. See Example 11-16.
Example 11-16 serverDown script
#!/bin/kshDATE=`date`OUTPUT="$DATE $1 has been marked down."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