QUESTION: How can I export or import a discover policy
ANSWER:
NOTE: When you run nhDiscoverPolicy, regardless of whether you are importing or exporting, you must be in $NH_HOME/tmp as your working directory.
Unix: cd $NH_HOME/tmp
Windows: cd %NH_HOME%\tmp\
If you receive a Policy from CA Technical Support or you want to import the policy on another eHealth system,
copy the 2 xml files to $NH_HOME/tmp.
1. To export a single policy, run this command:
nhDiscoverPolicy -export -policy policy1
(where policy1 is the actual name of the policy)
In the current directory, eHealth generates two files named policy1DiscoverPolicy.xml and policy1DiscoverPolicyParams.xml.
2. To import a single policy, run this command:
nhDiscoverPolicy -import -filePrefix policy1
3. To export all discover policy data, run this command:
nhDiscoverPolicy -export
In the current directory, eHealth generates two files named DiscoverPolicy.xml and DiscoverPolicyParams.xml.
If DiscoverPolicy.xml and DiscoverPolicyParams.xml exist in the current directory, run the following commands to import
all the policies into the eHealth database:
nhDiscoverPolicy -import
4. To list all policies stored in a database, run the following command:
nhDiscoverPolicy -list