--ha-server=string

              Specifies  a  server  in the YP-HA server pool.  This string has

              the format:

                   <server-id> '@' <server-addr> [ ':' <port-num> ]


                      server1@192.168.0.101

                      server1@192.168.0.101:12040


              The server running with this configuration must be listed in the

              ha-server pool.  The server-id parameter must match the entry

              for this server.  There must be at least 2  entries  present  to

              configure  an  HA  server  pool.   This  must be done if the 

              ha-enabled parameter is set to 'true'.   This string matches the

              server-id  for the server.  There is no default for the ha-server parameter.


The ha-server parameter can be invoked via the command line, though you must also be sure to set the ha-server-key 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, or the pool will not do anything,

i.e. 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 in the configuration file of netconfd-pro (default /etc/yumapro/netconfd-pro.conf):


#### leaf-list ha-server
#
# Specifies a server in the YP-HA server pool.
# This string has the format:
#
#   <server-id> '@' <server-addr> [ ':' <port-num> ]
#
#      server1@192.168.0.101
#      server1@192.168.0.101:12040
#
# The server running with this configuration must be
# listed in the ha-server pool.  The server-id parameter
# must be match the entry for this server.
#
# There must be at least 2 entries present to
# configure an HA server pool. This must be done if the
# ha-enabled parameter is set to 'true'.
#
# There is no default for ha-server
#

ha-server user1@192.168.0.88