goInOp
Executor runs this script whenever Executor is stopped or it is first started. We want to set the network interfaces to an initial state here, so the cluster IP alias (9.26.126.103) is removed from the network interface. However, because our Load Balancer servers are collated with balanced Web servers in our MAC forwarding scenario, we need to add the cluster IP alias to the loopback interface (lo0 on AIX) or keep it there. See Example 11-14.
When Executor is started and a configuration is loaded, goActive or goStandby will be called after this script, and the settings for the interfaces are corrected.
Example 11-14 goInOp script for MAC forwarding (AIX)
#!/bin/ksh. LoadBalancer_Install_Dir/servers/bin/variablesdate >> $ND_LOGDIR/ha.logprint "Executor has stopped. Removing device alias.\n" >>xxxx$ND_LOGDIR/ha.logifconfig lo0 delete $CLUSTERifconfig lo0 alias $CLUSTER netmask 255.255.255.255ifconfig $INTERFACE delete $CLUSTER
![]()
Note: Only add the loopback alias ("ifconfig lo0 alias $CLUSTER netmask 255.255.255.255") if Load Balancer is collocated with a balanced Web server.
For NAT forwarding on Solaris (without collocation), the script is shown in Example 11-15.
Example 11-15 goInOp script for NAT forwarding (Solaris 9, no collocation)
#!/bin/sh. LoadBalancer_Install_Dir/servers/bin/variablesdate >> $ND_LOGDIR/ha.logecho "Executor has stopped. Removing device alias.\n" >>xxxx$ND_LOGDIR/ha.logifconfig $INTERFACE $CLUSTER netmask $NETMASK down unplumbifconfig $RETURNINTERFACE $RETURNADDRESS netmask $NETMASK down unplumb
![]()
xxxx