22Dec/09Off
Is it possible to copy information between Policy Databases? Is there any equivalent to Central Policy Distribution (CPD) for Version 7?
Customers frequently ask this question. They have two completely seperate installs, and want to synchronize the two policies. The problem is that the 7.0.0 through 7.1.0 versions do not have an automated synchronization ability. If you wanted to have two Policy Servers share the same policies, you typically should have only one Policy Broker/Policy Database that would be shared between the two Policy Servers.
Although multiple Policy Database environments are not recommended, it is possible to transfer policies (and all other settings stored in the Policy Database) from one Policy Database instance to another.
- The Websense Policy Broker and Websense Policy Database services must be installed and running successfully on both machines.
- Both Policy Database machines must be running on the same operating system.
- Both source and destination Policy Brokers and Policy Databases must be the same version.
To transfer data from the source Policy Database to the target:
- On the TARGET machine, make a backup copy of the config.xml file (located by default in C:\Program Files\Websense\bin or opt/Websense/bin) and save it in another location (with a name like config.xml.sav).
- Use the following command to create a backup copy of the TARGET Policy Database:
PgSetup -save SavePolicy.db - Stop all Websense services on the TARGET machine.
- Open the config.xml file on the SOURCE machine, and copy the Token data (example shown below) to the config.xml file on the TARGET machine. When you are finished copying the data, save and close the file.
<data name="Token">0542A478BC2AB7773AE226F8471E4DD12E7AB78DEFF21A3A151621EFBF5A9855B2B5560F020CDB3AF84BE45F001619
D8F205471447AFA83DF5CD95EAB6D9BBA0A1BDD0B54ACD112254B23A8FD96B2397C45FC58FCC8A2616BB9FFE19D1960B5CEF7BBA09F4BA9E4
CC3076B88873A61EAE26CE2DA8D3DE858D550C7A5ECF732E39C1DBB7403F7F22E9C4F401815FAD21BD427175DBD1B06B28465CC20C41AD452
DE2B7798A71CF17E</data> - Rename the config.xml.bak file on the TARGET system to config.xml.bak.old.
- On the SOURCE machine, navigate to the Websense bin directory (C:\Program Files\Websense\bin or /opt/Websense/bin, by default) and run the following command:
PgSetup –save Policy.db - Copy the Policy.db file from the SOURCE machine to the Websense bin directory on the TARGET machine.
- From the Websense bin directory on the TARGET machine, run the following command:
PgSetup –restore Policy.db - Start all Websense services on the TARGET machine.
All policy data from the SOURCE system is now duplicated on the TARGET system.