Exporting and importing blackout and monitoring policies


Use the command-driven policy migration utility to export and import the infrastructure monitoring and blackout policies.

Notes

  • The policy migration utility does not export Integration Service or cluster details of Agent configuration under the monitoring policy.
  • If the source computer has the base and extended repositories and the destination computer has only the base repository, policies that are created using the monitoring solutions from the extended repository, fail to import on the destination computer.
  • The time-frame names are not case-sensitive. For example, if the destination computer has a time frame Tf1 and if you try to import a time frame tf1, the import fails.

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

Note

If you have configured the TrueSight Presentation Server for non-secure (HTTP) access, add the following attributes after each command:

-protocol http -port <port number>

For example:

cmapolicymigration.bat export -p "Basic health" -n "exported policy" -protocol http -port 80

To export policy files

  1. On the Presentation Server host, go to the bin directory that contains the policy migration command:
    • WindowsCD /D "%TRUESIGHTPSERVER_HOME%\truesightpserver\bin"
    • Linux: cd $TRUESIGHTPSERVER_HOME/truesightpserver/bin
  2. 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

  1. On the Presentation Server host, go to the bin directory that contains the policy migration command:
    • WindowsCD /D "%TRUESIGHTPSERVER_HOME%\truesightpserver\bin"
    • Linux: cd $TRUESIGHTPSERVER_HOME/truesightpserver/bin
  2. From the bin directory, run one of the following commands:
    • Windows:
      cmapolicymigration.bat import options attributes 
    • Linux:

      cmapolicymigration.sh import options attributes 

Import options

Import examples

cmapolicymigration.bat import -d "C:\Policies"
cmapolicymigration.bat import -f -d "C:\Policies"

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*