Exporting and importing blackout and monitoring policies
Use the command-driven policy migration utility to export and import the infrastructure monitoring and blackout policies.
Before you begin
If you have implemented an encryption key to secure PATROL Agent data, ensure that both source and destination TrueSight Presentation Servers have the same passphrase to successfully migrate the policies. For more information, see Changing-the-encryption-key-to-secure-PATROL-Agent-data.
Location of the policy migration utility command
- Windows: <installed_location_Presentation_Server>\bin\cmapolicymigration.bat
- Linux: <installed_location_Presentation_Server>/bin/cmapolicymigration.sh
Example:
C:\Program Files\BMC Software\TrueSightPServer\truesightpserver\bin\cmapolicymigration.bat
Command syntax
To export policy files
- On the Presentation Server host, go to the bin directory that contains the policy migration command:
- Windows: CD /D "%TRUESIGHTPSERVER_HOME%\truesightpserver\bin"
- Linux: cd $TRUESIGHTPSERVER_HOME/truesightpserver/bin
- From the bin directory, run one of the following commands:
- Windows: cmapolicymigration.bat export options attributes
- Linux: cmapolicymigration.sh export options attributes
Export options and attributes
Export examples
cmapolicymigration.bat export all -d "C:\Policies"
cmapolicymigration.bat export –p Policy1 –n Policy2 -d "C:\Policies"
To import policy files
- On the Presentation Server host, go to the bin directory that contains the policy migration command:
- Windows: CD /D "%TRUESIGHTPSERVER_HOME%\truesightpserver\bin"
- Linux: cd $TRUESIGHTPSERVER_HOME/truesightpserver/bin
- From the bin directory, run one of the following commands:
- Windows:
cmapolicymigration.bat import options attributes - Linux:
cmapolicymigration.sh import options attributes
- Windows:
Import options
Import examples
cmapolicymigration.bat import -d "C:\Policies"
cmapolicymigration.bat import -f -d "C:\Policies"