Log into the secondary Standard Sensor.
From the Sheriff Setup Main menu, select Jailbreak System and press Enter (<OK>).
Press Enter (<Yes>) to continue.
The command line prompt appears.
Configure the secondary (slave) Sensor:
Edit the file /etc/vigilante/vigilante_setup.conf
as indicated by the angle-bracketed variables:
ha_heartbeat_start=yes
ha_local_node_ip=<slave_csm_IP>
ha_other_node_ip=<master_csm_IP>
ha_other_node_name=<master_csm_name>
ha_password=<password>
**Password must be same for both slave and master**
ha_role=slave
ha_virtual_ip=<virtual_csm_IP>
Important: The ha_role value must always equal "slave" for the secondary node.
Save the changes.
Enable HA in the secondary node:
screen sheriff-ha-assistant -e
Note: Use screen to keep the process running in the background even when the session disconnects.
Check that the secondary node is up and running
sheriff-ha-assistant -s
When prompted, enter the password for the primary (master) root user.
You must wait about five minutes until you see output, as shown in Step 8 of Configuring the Secondary Standard Server for HA.
From the primary Standard Sensor, access the file /etc/vigilante/vigilante_setup.conf
, as described in Configuring the Secondary Standard Sensor for HA.
Change its fields as indicated below
ha_heartbeat_start=yes ha_local_node_ip=<primary_csm_IP> ha_other_node_ip=<secondary_csm_IP> ha_other_node_name=<secondary_csm_name> ha_password=<password> **Password must be same for both secondary and primary (master)** ha_role=master ha_virtual_ip=<virtual_csm_IP>
Save the changes.
Enable HA in the primary (master) node by typing the following command:
screen sheriff-ha-assistant -e
Note: Use screen to keep the process running in the background even when the session disconnects.
Swap the token with the secondary node, effectively making the primary node active:
sheriff-ha-assistant –w
Check that the primary node is up and running: sheriff-ha-assistant –s
When prompted, enter the remote (slave) root user password.
After about five minutes, you see output, as shown in Step 8 of Configuring the Secondary Standard Server for HA
Note: If you are still logged into the CSM from the previous task and in command line mode, return to the Setup Main menu by entering sheriff-setup.
From the Sheriff Setup Main menu, select Configure Sensor > Configure Sheriff Server IP.
Enter the virtual IP address of the Sheriff CSM Standard Server pair and press Enter (<OK>).
Select Configure Sheriff Framework IP, then enter the same IP address; press Enter (<OK>).
Launch the Sheriff Sheriff CSM web interface and go to Configuration > Deployment > Components > Sensors.
Log into the primary Standard Server and select Jailbreak System, press Enter (<OK>), and again Enter (<Yes>).
At the command prompt, enter the following:
sheriff-api add_system –-system-ip=<secondary_std_sensor_ip> --password=<password> --ha
Log into the secondary Standard Server, repeat step 1. (jailbreak the system) of the previous task.
At the command prompt, enter the following:
sheriff-api add_system –-system-ip=<primary_Std_Sensor_ip> --password=<password> --ha
On the secondary Standard Server, repeat step 1. (jailbreak the system) of the previous task.
At the command prompt, enter the following:
sheriff-api add_system –-system-ip=<secondary_Std_Sensor_ip> --password=<password> --ha