8.2. Editing an HA Pair

Once the HA pair is under InCenter, there are two kinds of changes that can be performed using the CLI:

Editing the Configuration of an HAPair Object

As an example of changing an HAPair configuration, to add a new IP address object to both nodes in the HA pair, the command sequence could be:

  1. Change the CLI context to be the pair:

    admin@InCenter:/> cc HAPair my-hapair 
    admin@InCenter:/my-hapair>
  2. Add the IP address:

    For NetWall nodes:

    admin@InCenter:/my-hapair> add IP4Address
    			Name=my-address1
    			Address=192.0.2.1
    Added IPAddress my-address1

    For NetShield nodes:

    admin@InCenter:/my-hapair> add IPAddress
    			Name=my-address1
    			Address=192.0.2.1
    Added IPAddress my-address1
  3. Deploy the change to the pair:

    admin@InCenter:/my-hapair> activate
    Activate successful
    admin@InCenter:/my-hapair> commit
    Committed
  4. If no other changes need to be made to the HA pair, change the CLI context back to the default:

    admin@InCenter:/my-hapair> cc 
    admin@InCenter:/>

Editing the Configuration of an HAMemberNode Object

It is possible to edit the configuration of just one of the members in an HA pair. This is done by changing the CLI context to be the individual HAMemberNode and then applying the change.

Take the following example for a NetWall node:

If a new EthernetDevice object has to be added to just one of the nodes in an HA pair. In this case, the change must be performed on the relevant HAMemberNode object since EthernetDevice is one of the configuration object types that is not available in the HAPair object.

This configuration change can be done using the following steps:

  1. Change the CLI context to be the HAMemberNode object:

    admin@InCenter:/> cc HAMemberNode my-node1 
    admin@InCenter:/my-node1>
  2. Add the EthernetDevice object with an identifier:

    admin@InCenter:/my-node1> add EthernetDevice
    			Name=my-ethdevice
    			HWIdent=pci=77:77.7
    Added EthernetDevice my-ethdevice
    admin@InCenter:/my-node1>
  3. Deploy the change to the node:

    admin@InCenter:/my-node1> activate
    Activate successful
    admin@InCenter:/my-node1> commit
    Committed

HA Pair Synchronization

When an HA pair is under InCenter control, the following should be noted: