11.3.3 Command-line configuration

The High Availability configuration can be performed from the command line using the statements saved in the configuration file by the GUI.

Example 11-6 shows the commands for the primary Load Balancer in the MAC forwarding scenario.

Note that each individual command has to be on one line in the configuration file. However, because of size limitations, some lines might be printed on two lines in our examples.

Example 11-6 Primary Load Balancer configuration file for MAC forwarding

dscontrol set loglevel 1
dscontrol executor start

dscontrol highavailability heartbeat add 9.26.127.157 9.26.126.120
dscontrol highavailability backup add primary=9.26.127.157 auto 12345
dscontrol highavailability reach add 9.26.126.2 

dscontrol cluster add wcha.torolab.ibm.com address 9.26.126.103 primaryhost 9.26.127.157

dscontrol port add wcha.torolab.ibm.com:80 reset no

dscontrol server add wcha.torolab.ibm.com:80:srvb504.torolab.ibm.com address 9.26.127.157
dscontrol server set wcha.torolab.ibm.com:80:srvb504.torolab.ibm.com collocated y

dscontrol server add wcha.torolab.ibm.com:80:srvb501.torolab.ibm.com address 9.26.126.120

dscontrol port add wcha.torolab.ibm.com:443 reset no

dscontrol server add wcha.torolab.ibm.com:443:srvb504.torolab.ibm.com address 9.26.127.157
dscontrol server set wcha.torolab.ibm.com:443:srvb504.torolab.ibm.com collocated y

dscontrol server add wcha.torolab.ibm.com:443:srvb501.torolab.ibm.com address 9.26.126.120

dscontrol manager start manager.log 10004
dscontrol advisor start Http 80 Http_80.log
dscontrol advisor start Ssl 443 Ssl_443.log

Example 11-7 shows the commands for the Standby Load Balancer in the MAC forwarding scenario.

Example 11-7 Standby Load Balancer configuration file for MAC forwarding

dscontrol set loglevel 1
dscontrol executor start

dscontrol highavailability heartbeat add 9.26.126.120 9.26.127.157
dscontrol highavailability backup add backup auto 12345
dscontrol highavailability reach add 9.26.126.2

dscontrol cluster add wcha.torolab.ibm.com address 9.26.126.103 primaryhost 9.26.127.157

dscontrol port add wcha.torolab.ibm.com:80 reset no

dscontrol server add wcha.torolab.ibm.com:80:srvb504.torolab.ibm.com address 9.26.127.157

dscontrol server add wcha.torolab.ibm.com:80:srvb501.torolab.ibm.com address 9.26.126.120
dscontrol server set wcha.torolab.ibm.com:80:srvb501.torolab.ibm.com collocated y

dscontrol port add wcha.torolab.ibm.com:443 reset no

dscontrol server add wcha.torolab.ibm.com:443:srvb504.torolab.ibm.com address 9.26.127.157

dscontrol server add wcha.torolab.ibm.com:443:srvb501.torolab.ibm.com address 9.26.126.120
dscontrol server set wcha.torolab.ibm.com:443:srvb501.torolab.ibm.com collocated y

dscontrol manager start manager.log 10004
dscontrol advisor start Http 80 Http_80.log
dscontrol advisor start Ssl 443 Ssl_443.log

For NAT forwarding without collocation, the configuration files are changed similarly. The three dscontrol highavailability lines are added with the respective parameters for primary and backup machine, and all dscontrol executor configure lines are removed.

For NAT forwarding with collocation, refer to the Load Balancer Administration Guide, GC31-6858.
xxxx