Page tree

During installation of the TrueSight Presentation Server, several default monitoring policies are added to the Presentation Server installation directory. To shorten your configuration time, BMC recommends that you import the default policies before you create your own policies for PATROL Agent configuration. 

Location of files

Import command

Windows: %TRUESIGHTPSERVER_HOME%\truesightpserver\bin\cmapolicymigration.bat

Linux: $TRUESIGHTPSERVER_HOME/truesightpserver/bin/cmapolicymigration.sh

Example:

C:\Program Files\BMC Software\TrueSightPServer\truesightpserver\bin\cmapolicymigration.bat

Default policy file

Windows: %TRUESIGHTPSERVER_HOME%\truesightpserver\data\oob_policiesTrueSight10_OOTB_Policies.mo

Linux: $TRUESIGHTPSERVER_HOME/truesightpserver/data/oob_policies/TrueSight10_OOTB_Policies.mo

Example:

C:\Program Files\BMC Software\TrueSightPServer\truesightpserver\data\TrueSight10_OOTB_Policies.mo

Before you begin

You must have successfully imported the base repository files.

Because of an issue with version 10.0 of the repository, you must have edited the TrueSight10_OOTB_Policies.mo file, as described in The default policies do not load successfully.

 

To import policy files

  1. On the Presentation Server host, access the bin directory that contains the import command:
    • Windows: CD /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 -d <policiesDirectory>
    • Linux: ./cmapolicymigration.sh import -d <policiesDirectory>  

 

Examples

Windows

cmapolicymigration.bat import -d "C:\Program Files\BMC Software\TrueSightPServer\truesightpserver\data\oob_policies"

Linux

./cmapolicymigration.sh import -d $TRUESIGHTPSERVER_HOME/truesightpserver/data/oob_policies

At the end of the import process, a message, similar to the following response is displayed:

"Import Policy To TrueSight"
Policy 'Windows Default' imported successfully
Policy 'Linux Default' imported successfully


Where to go from here

To view the imported policies, access All Monitoring Policies in Central Monitoring Administration, as shown in the following image:

If a problem occurs

If the import process fails, see The default policies do not load successfully in Troubleshooting.

Related topics

Defining and managing monitoring policies

Creating or editing a monitoring policy

Exporting and importing blackout and monitoring policies