Exporting and importing blackout and monitoring policies
You can export and import Central Monitoring Administration monitoring and blackout policies by using the command-driven Policy Migration Utility. This topic contains the following procedures and supporting information about importing and exporting policies:
Location of 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
- Windows:
Export options and attributes
Export examples
cmapolicymigration.bat export all -d "C:\Program Files\BMC Software\TrueSightPServer\truesightpserver\data\oob_policies"
cmapolicymigration.bat export –p Policy1 –n Policy2 -d "C:\Program Files\BMC Software\TrueSightPServer\truesightpserver\data\oob_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:\Program Files\BMC Software\TrueSightPServer\truesightpserver\data\oob_policies.mo"
cmapolicymigration.bat import -f -d "C:\Program Files\BMC Software\TrueSightPServer\truesightpserver\data\oob_policies.mo"
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*