Moving your CMDB customizations to a new target system
Before you begin
Download the CMDB utilities.
To download the utilities, see Working with CMDB utilities in BMC Helix CMDB documentation.- Make sure that in your source system, all the classes and attributes that you want to migrate were created or modified by using CMDB Explorer in the Atrium Core Console.
If you have created the classes or attributes manually in the Class form or Attribute form, the classes and attributes are not detected by the migration tools.
To migrate customizations by using the Workflow Migration utility
Workflow Migration utility migrates the foundation data, including groups, roles, CMDB, AR System object overlays, and the synchronization of newly added classes or attributes to Asset forms. The utility provides end-to-end automation of entire migration and auto-reconciliation of AR System objects including CMDB class and attribute changes.
The Workflow Migration utility creates a working directory. The working directory contains several folders such as CMDB, Customizations, and Recon. In these folders, you can find the xml, definitions, and arx files. Use the files to verify the migration.
For information about the Workflow Migration utility, see Migrating customized objects to a new target system in BMC Helix Innovation Suite
- Perform the following steps to migrate roles and groups:
- Run the Workflow Migration utility by using the parameter stp1.
Workflow migration utility initially exports and deletes all the groups and roles from the target system. It migrates all the groups and roles from the source system to target system. Then, it imports all the groups and roles exported from the target system. - In the source system, on the Group and Role form, note down the total count.
Migrate roles and groups data, by using the -stp 1 -sngl false parameters in the Workflow Migration utility.
Example command:java -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl -jar migratecustomizations-21.30.00-SNAPSHOT.jar -hsrc <sourceServer> -usrc <Source Server login name> -pwdsrc <Source Server password> -psrc <port> -hdest targetServer -udest <Destination server login name> -pwddest <Destination server password> -pdest <Destination server Port> -o <path of the working directory> -op migrate -stp 1 -sngl false- In the working directory, in the logs folder, in the MigrateCustomizations.log file, review the data migration logs and check for any errors.
Validate the migration of group and roles by comparing the total number of groups and roles in the source and target systems.
The following image shows an example working directory and log files:
File
Description
AllSourceGroups.arx
Contains the list of all the groups exported from the source system.
AllSourceGroups.log
Contains logs of the import process.
Review this file for any errors.Groups.arx
Contains the list of all the groups exported from the target system.
Groups.log
Contains logs of the export process.
Review this file for any errors.MigrateCustomizations.log
Contains the consolidated logs.
- For any failed records, find the root cause of the failure, fix the errors, and then import the groups and roles by using the Data Import Tool.
- Run the Workflow Migration utility by using the parameter stp1.
- Perform the following steps to migrate the CMDB classes and attributes.
Run the Workflow Migration utility by using the -stp 2 -sngl false parameter.
Example command:java -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl -jar migratecustomizations-21.30.00-SNAPSHOT.jar -hsrc sourceServer -usrc tester -pwdsrc tester -psrc 0 -hdest targetServer -udest tester -pwddest tester -pdest 0 -o WorkingDirectory -op migrate -stp 2 -sngl falseThe utility captures snapshots of the source and target CMDB classes and attributes, compares the classes and attributes, and captures the changes to be migrated to the target system.
- In the working directory, review the MigrateCustomizations.log file for any errors.
Validate the CMDB classes and attributes migration by running the Workflow Migration utility with -stp 3 -sngl false parameter.
Example command:java -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl -jar migratecustomizations-21.30.00-SNAPSHOT.jar -hsrc sourceServer -usrc tester -pwdsrc tester -psrc 0 -hdest targetServer -udest tester -pwddest tester -pdest 0 -o WorkingDirectory -op migrate -stp 3 -sngl falseThis command compares source and destination systems to check that all the classes and attributes are created properly.
- Review the MigrateCustomizations.log file for any errors, fix the issues, and then import or create the attributes on the target system by using the Atrium Core Console.
Synchronize the Asset Sync UI utility with the Asset forms by running the Workflow Migration utility with -stp 8 -sngl false parameter.
Example command:java -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl -jar migratecustomizations-21.30.00-SNAPSHOT.jar -hsrc sourceServer -usrc tester -pwdsrc tester -psrc 0 -hdest targetServer -udest tester -pwddest tester -pdest 0 -o WorkingDirectory -op migrate -stp 8 -sngl falseThis command initiates the Asset Sync UI utility to synchronize the class and attribute changes to all the Asset forms. For more information about Asset Sync UI utility, see Modifying CMDB classes and synchronizing the data with ITSM applications in BMC Helix CMDB documentation.
Deployment Management Console
Migrating customizations by using the Deployment Management Console involves the following steps:
For information about the Deployment Management console, sDefining and deploying data and object packages in
To export the customizations by using the Deployment Management Console
- Log in to Mid Tier as an administrator.
- Select AR System Administration > AR System Deployment Management Console.
On the AR System Deployment Management Console page, click Create.The following image shows an example:
- Specify the details such as package name, version, and description.
- From the Content Type drop down list, select CMDB.
- Add the custom and out-of-the-box classes and attributes.
From the CMDB Object Type drop down list, select one of the following options:- To add a class, select Add Class, click Add.
- On the CMDBObject Search Dialog box, select the class name and click Add.
The following image shows an example:
When you select a class, the class with all the attributes are selected for export. You can create a single package for all classes and attributes.
For example, to migrate data for one tenant at a time, you can create a package for tenant 1, then create another package for tenant 2, and so on.
- To add an attribute, select Add Attribute, click Add.
- On the CMDBObject Search Dialog box, select the attribute name, and click Add.
The following image shows an example:
- Click Save.
A package is created and a package creation message is displayed. - Navigate to the Deployment Management Console.
- To build the package, click Build.
After the package is built successfully, the build status changes to Ready for Export.
The following image shows an example:
- Click Export.
A ZIP file is downloaded to your local system.
To import the customizations by using Deployment Management Console
- Log in to the target system.
- Select AR System Administration > AR System Deployment Management Console.
On the AR System Deployment Management Console page, click Import.The following image shows an example:
- After the import is complete, click Deploy.
The package is deployed and the status is changed to Deployed.
- To check for any errors in import, in the Manage Package menu, click View.
- Perform the following steps to run the Asset UI Sync utility.
- Check if you have any overlays on the source on the Asset forms.
- After you import CMDB class and attribute changes to the target system, check all imported custom CMDB classes and attributes for which UI Asset forms exist in the source system.
- To generate UI Asset forms for the imported classes, run the Asset UI Sync utility.
Asset UI Sync utility uses merge functionality to synchronize class or attribute definitions to the Asset forms.
- To generate UI Asset forms for the imported classes, run the Asset UI Sync utility.
Verify the changes by using Developer Studio or Mid Tier.
For information about the Asset UI Sync utility, see Modifying CMDB classes and synchronizing the data with ITSM applications in BMC Helix CMDB documentation.
Where to go from here
Migrating-Remedy-on-premises-to-BMC-Helix-Service-Management-on-premises