--ha-server-key=string

              Specifies the magic string the standby server  must  present  to

              the  active server during registration.  Used to prevent servers

              from going into the wrong HA pool.  If not set then the active server

              will reject the YP-HA connection.  This parameter must be set

              if the ha-enabled parameter  is  set  to  'true'.  There  is  no

              default for ha-server-key.


The ha-server-key parameter can be invoked via the command line, though you must also be sure to set the ha-server and server-id parameters.

The following command will start netconfd-pro with YP-HA enabled and create an HA pool of three servers, with user1 as the server that is to boot:


user@system> netconfd-pro ha-enabled=true ha-server-key=user1@192.168.0.88 \
ha-server=user1@192.168.0.88 ha-server=user2@192.168.1.1 \
ha-server=user3@123.456.0.8 server-id=user1


The command line arguments for remote ha-server elements must match the real configuration of those elements (set at startup or in the configuration file(s) of the respective element(s)), or the pool will not do anything;

i.e. using the above example, user2@192.168.1.1 must have the following parameters configured: ha-enabled=true ha-server-key=user2@192.168.1.1 ha-server=user1@192.168.0.88 ha-server=user2@192.168.1.1 ha-server=user3@123.456.0.8 server-id=user2


It is better to configure HA related parameters like ha-server-key in the configuration file of netconfd-pro (default /etc/yumapro/netconfd-pro.conf):


#### leaf ha-server-key
#
# Specifies the magic string the standby server must present
# to the active server during registration.  Used to prevent
# servers from going the wrong HA pool.  If not set then
# the active server will rejectt the YP-HA connection.
# This parameter must be set if the ha-enabled parameter
# is set to 'true'.
#
# There is no default for ha-server-key
#

ha-server-key=user1@192.168.0.88