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 1dscontrol executor startdscontrol highavailability heartbeat add 9.26.127.157 9.26.126.120dscontrol highavailability backup add primary=9.26.127.157 auto 12345dscontrol highavailability reach add 9.26.126.2dscontrol cluster add wcha.torolab.ibm.com address 9.26.126.103 primaryhost 9.26.127.157dscontrol port add wcha.torolab.ibm.com:80 reset nodscontrol server add wcha.torolab.ibm.com:80:srvb504.torolab.ibm.com address 9.26.127.157dscontrol server set wcha.torolab.ibm.com:80:srvb504.torolab.ibm.com collocated ydscontrol server add wcha.torolab.ibm.com:80:srvb501.torolab.ibm.com address 9.26.126.120dscontrol port add wcha.torolab.ibm.com:443 reset nodscontrol server add wcha.torolab.ibm.com:443:srvb504.torolab.ibm.com address 9.26.127.157dscontrol server set wcha.torolab.ibm.com:443:srvb504.torolab.ibm.com collocated ydscontrol server add wcha.torolab.ibm.com:443:srvb501.torolab.ibm.com address 9.26.126.120dscontrol manager start manager.log 10004dscontrol advisor start Http 80 Http_80.logdscontrol 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 1dscontrol executor startdscontrol highavailability heartbeat add 9.26.126.120 9.26.127.157dscontrol highavailability backup add backup auto 12345dscontrol highavailability reach add 9.26.126.2dscontrol cluster add wcha.torolab.ibm.com address 9.26.126.103 primaryhost 9.26.127.157dscontrol port add wcha.torolab.ibm.com:80 reset nodscontrol server add wcha.torolab.ibm.com:80:srvb504.torolab.ibm.com address 9.26.127.157dscontrol server add wcha.torolab.ibm.com:80:srvb501.torolab.ibm.com address 9.26.126.120dscontrol server set wcha.torolab.ibm.com:80:srvb501.torolab.ibm.com collocated ydscontrol port add wcha.torolab.ibm.com:443 reset nodscontrol server add wcha.torolab.ibm.com:443:srvb504.torolab.ibm.com address 9.26.127.157dscontrol server add wcha.torolab.ibm.com:443:srvb501.torolab.ibm.com address 9.26.126.120dscontrol server set wcha.torolab.ibm.com:443:srvb501.torolab.ibm.com collocated ydscontrol manager start manager.log 10004dscontrol advisor start Http 80 Http_80.logdscontrol 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