Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Managing Policy Broker Replication : Reconfigure Policy Server after a standalone Policy Broker becomes a replica
Reconfigure Policy Server after a standalone Policy Broker becomes a replica
56044 | Managing Policy Broker Replication | Web Security Solutions | Version 7.8.x
When a standalone Policy Broker is converted to a replica, you must update the config.xml file for each Policy Server instance that connected to the standalone Policy Broker. The update adds information about the primary Policy Broker for the deployment.
Step 1: Collect required information
First, identify a Policy Server that is already configured to connect to the primary Policy Broker (for example, the Policy Server instance on the Policy Broker machine).
On the machine that hosts the Policy Server you identified:
1.
Navigate to the Websense bin directory (C:\Program Files or Program Files (x86)\Websense\Web Security\bin or /opt/Websense/bin/) and make a backup copy of the config.xml file in another location.
2.
Open the original config.xml file in a text editor and navigate to the BrokerService container:
<container name="BrokerService">
3.
Locate the Config container and Token container within the BrokerService container.
The Config container looks something like this:
<container name="Config">
<data name="Country">US</data>
<data name="Host">10.226.56.62</data>
The Token container looks something like this:
<data name="Token">0542A478BC2AB7773AE226F8471E4DD12E7AB78DEFF21A3A151621EFBF5A98559211A5746D4263F00797190AFD30A5FD507DD5560362F6C5538C780F350C5467E106DC6A1D46FF2670FC1348331640AA95D0ADDAD8999D491137C8C9ED831846599BF6C99242D512BFABA28938E3CA975197AFED65CD335BC738E1BE933B48F7816C8F51D40AEE8B9C4F401815FAD21BD427175DBD1B06B28465CC20C41AD452DE2B7798A71CF17E</data>
4.
This information will need to be added or copied to the config.xml file for each Policy Server that is being reconfigured.
5.
Close the config.xml file.
Step 2: Update Policy Server configuration
Reconfigure each Policy Server instance that was originally set up to connect to the former standalone Policy Broker (now a replica).
1.
*
Windows: Use the Services tool to stop Websense Policy Server.
*
Linux: Use the opt/Websense/WebsenseDaemonControl command to stop Policy Server.
2.
Navigate to the Websense bin directory (C:\Program Files or Program Files (x86)\Websense\Web Security\bin or /opt/Websense/bin/) and make a backup copy of config.xml in another location.
3.
Open the original config.xml file in a text editor and navigate to the BrokerService container:
<container name="BrokerService">
4.
If a Brokers container exists, delete it. A Brokers container looks something like this:
<container name="Brokers">
<container name="0">
<data name="Host">10.226.56.62</data>
<data name="Port">55880</data>
<data name="Priority">1</data>
</container>
<container name="1">
<data name="Host">10.226.56.63</data>
<data name="Port">55880</data>
<data name="Priority">2</data>
</container>
</container>
5.
Locate the Config container within the BrokerService container and update the Host container with the Policy Broker IP address copied in the previous procedure. For example:
<container name="Config">
<data name="Country">US</data>
<data name="Host">10.226.56.62</data>
Still in the Config container, update the Token field with the Policy Broker token value copied in the previous procedure. The token looks something like this, and must be entered as a single line (no line breaks):
<data name="Token">0542A478BC2AB7773AE226F8471E4DD12E7AB78DEFF21A3A151621EFBF5A98559211A5746D4263F00797190AFD30A5FD507DD5560362F6C5538C780F350C5467E106DC6A1D46FF2670FC1348331640AA95D0ADDAD8999D491137C8C9ED831846599BF6C99242D512BFABA28938E3CA975197AFED65CD335BC738E1BE933B48F7816C8F51D40AEE8B9C4F401815FAD21BD427175DBD1B06B28465CC20C41AD452DE2B7798A71CF17E</data>
6.
Save and close the config.xml file.
7.
Delete the config.xml.bak file from the Websense bin directory.
8.
*
./WebsenseAdmin restart
*
On Windows machines, run the following command from the C:\Program Files or Program Files (x86)\Websense\Web Security\ folder:
WebsenseAdmin restart

Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Managing Policy Broker Replication : Reconfigure Policy Server after a standalone Policy Broker becomes a replica
Copyright 2016 Forcepoint LLC. All rights reserved.