Applying the Batch File in a High Availability Environment

In a load balancing environment, Vocera recommends that you stop all VAM services except for the Vocera Alarm Monitoring and Vocera Alarm Server Health Monitor services if any service goes down. This enables the other active server to take on the entire load.

The Vocera Alarm Monitoring and Vocera Alarm Server Health Monitor services are kept running to notify you of the issue that caused the failover to occur.

For each active VAM service, perform the following steps:

  1. Right-click on the service, and select Properties.
  2. Click the Recovery tab.
  3. In the First failure dropdown list, select Restart the Service.
  4. In the Second failure dropdown list, select Restart the Service.
  5. In the Subsequent failres dropdown list, select Run a Program.
  6. In the Program field, type or browse for the location of the HA batch file that was included in your installation package.
  7. Click OK to save your changes.

You will need to perform the above steps on each of the services below:

This ensures that all services are stopped if any service fails.

Here is a copy of the HA batch file that stops all VAM services.

@echo off
net stop w3svc
net stop "Mvisum Alert Clean Up Service"
net stop "MVisum Alert Escalator"
net stop "MVisum Alert Message Generator"
net stop "MVisum Archiver Server"
net stop "MVisum VS Interface"
         
if ERRORLEVEL 0 goto Print
echo Unable to stop services.
exit
:Print
echo Service stopped successfully.
Pause