How to migrate BMC ProactiveNet Performance Management (BPPM) 9.6 CMA policies to TrueSight Presentation Server (TSPS) 11.x Monitoring Policies ? |
Here are the steps to export a CMA BPPM 9.6 policy and import it into TSPS CMA for any user ++++++++++++++++++++++++++++++++++++++++ On the BPPM side: 1) Export the policy from BPPM, this will create a .mo file with the policy defined in a json format
Windows: C:\Program Files\BMC Software\ProactiveNet\pw\pronto\lib\DataMigrator\cmapolicymigration.bat export -d BPPM_policy all
Unix: /usr/pw/pronto/lib/DataMigrator/cmapolicymigration.sh export -d BPPM_policy all Three files will get created (depends on what you defined monitoring, blackout & timeframes)
Hostname.mo – represents monitoring policies
Hostname.bo – represents blackout policies Hostname.tf – represents timeframes On the TSOM:
1) Copy repository from BPPM 9.6 to TSPS 11.x
- Zip or tar everything Path: BPPM: $BPPM_SERVER_HOME\pw\pproxy\*
- Copy it to TSPS: $TRUESIGHTPSERVER_HOME\truesightpserver\modules\cma\pproxy\* - No need of stopping application. 2) Verify repository from TSPS console “Administration -- Repository --installation components”
3) Copy BPPM_policy.zip from BPPM 9.6 to TSPS (any location, I used %tmp% and /tmp)
4) Extract the BPPM_policy.zip (in Linux use “unzip BPPM_policy.zip”) and give appropriate permissions, in Linux given “chmod 777 -R” on the folder.
5) Take a backup of files and modify “hostname.mo” and “hostname.bo”
6) Open the Hostname.mo file in an editor For each policy listed in the .mo file, perform the following steps:
Search for the word "tenant" a) Add:
"shared" : <true,false>,
"associatedUserGroup" : "<group policy should associate with>", "owner" : "<owner with privileges>", Example:
"shared" : false, "associatedUserGroup" : "Administrators", "owner" : "admin", b) Modify:
"tenant" : {
"name" : "<tenant name>", "id" : "*" }, Example:
"tenant" : {
"name" : "*", "id" : "*" }, Example: }, "name" : "WindowsOS", "id" : "353b2105-52fc-471f-8966-21ef26e40461", "type" : "monitoring", "enabled" : false, "description" : "Windows OS Monitoring", "precedence" : 200, "tenant" : { "name" : "GLOBAL", "id" : "GLOBAL" }, Add the new entries between precedence & tenant like this }, "name" : "WindowsOS", "id" : "353b2105-52fc-471f-8966-21ef26e40461", "type" : "monitoring", "enabled" : false, "description" : "Windows OS Monitoring", "precedence" : 200, "associatedUserGroup" : "Administrators", "owner" : "admin", "shared" : true, "tenant" : { "name" : "*", "id" : "*" }, Change the values for associatedUserGoup, owner and whether or not the policy is shared or not to what they should be. Then you can import the updated file in to the TSPS 7) Perform the same steps for the hostname.bo files
No changes are required for Hostname.tf (timeframes file).
8) Import the policy
Using command: $TRUESIGHTPSERVER_HOME\truesightpserver\bin>
cmapolicymigration.bat import -d “modified BPPM_policy folder name” Note: Do not specify file name, point the directory that have “Hostname.mo” “Hostname.bo” & “Hostname.rf” files. If you don’t have blackout or timeframe *.bo and *.rf files will not be generated.
9) Check policies and timeframes imported. |