Preparing for event data migration
To migrate event polices and Cell data from TrueSight Operations Management to BMC Helix Operations Management, you must first obtain the Cell Knowledge Base (KB) and BMC Helix Operations Management details. You must run the event migration utility for each TrueSight Operations Management Cell KB from where you want to migrate the data. For example, if you you have 3 Cells running the same KB, you can migrate data with the details of only one Cell.
To prepare for the migration, you can also run a simulation for the classes that you want to migrate.
To obtain the Cell KB details
- Identify the Remote Cell or TrueSight Infrastructure Management Cell that needs to be migrated.
- On the Cell host, open the command prompt, and navigate to the Cell KB directory: pw\server\etc\<cellname>
Run the following commands:
mquery -q -d -n <cell_name>-a POLICY -f BAROC -w "enabled: == 1" > policies.baroc (With this command, only enabled policies are exported.)
mquery -q -d -n <cell_name> -a SELECTOR -f BAROC > selectors.baroc
mquery -q -d -n <cell_name> -a TIME_FRAME -f BAROC > timeframes.baroc
mquery -q -d -n <cell_name> -a <table_name> -f BAROC > <table_name>.baroc- Copy the pw\server\etc\<cellname> directory to where you will run the utility from.
This directory is used as the input for the migration utility. For instructions on running the utility, see Installing-and-running-the-event-migration-utility.
To obtain the BMC Helix Operations Management tenant details
For event migration, the following BMC Helix Operations Management details are required:
- Tenant URL, which is the URL that you use to open BMC Helix Operations Management.
- Tenant ID
- Access key and secret access key
Perform the following steps to obtain the tenant ID, access key, and secret access key.
- Log in to BMC Helix Portal.
- Navigate to the User access > Users and keys page.
- On the Access keys tab, click Add key.
Enter a name for the key.
- From the Key type list, select Access key.
- Select the number of days for which you want this key to be valid.
You can also set a custom date or set it to never expire. Although you can set the key to never expire, for enhanced security purposes, we recommend that you set a definite key expiry date. After the key expires, you can extend the date by editing the access key. - Click Confirm.
From the Key details pane, copy and save the access key and the secret key.
- From the Configuration area, copy and save the tenant ID.
You will need the tenant ID while running the migration utility. - In the Groups area, click Select.
- Select the Administrators group and click Confirm.
- (Optional) If you have roles with appropriate permissions, assign roles.
You can also assign groups and roles later from the Access keys tab by clicking Actions > Key details. Close the Key details pane.
In the Access keys tab, you can see the access key that you created. For information about the actions that you can take on the access key, see Setting up access keys for programmatic access.
To simulate a migration
You can use the Simulation option in the Event Migration Utility console to perform a trial run for all the event classes, rules, and policies without obtaining the tenant details. Simulating a migration smoothens the path an error-free event data migration.
Example scenario
Apex Global is migrating from TrueSight Operations Management to BMC Helix Operations Management. The tenant administrator Tina is responsible to ensure that all event rules, classes, and policies are migrated without errors. Before running the migration utility, can she know which rules or classes she needs to migrate?
Tina can run a simulation for the required rules, classes, or policies so she can run an error-free migration later.
To simulate event rule migration
- In the Event Migration Utility console, go to the Rules tab.
- Click the dotted menu icon and click Simulation.
- In the Event Rule Simulation dialog box, click Next.
- Select the rules that you want to run the simulation for.
To select all rules on the page or all rules in the system, click the Name column. - Click Simulate.
If the simulation is successful, a success message is displayed.
If you get an error message, that means that the classes required for the rules are not migrated.
Migrate these classes before migrating the selected rules when you run the event migration utility.
To simulate event class migration
- In the Event Migration Utility console, go to the Classes tab.
- Click the dotted menu icon and click Simulation.
- In the Event Class Simulation dialog box, click Next.
- Select the classes that you want to run the simulation for.
To select all classes on the page or all classes in the system, click the Name column. - Click Simulate.
If the simulation is successful, a success message is displayed.
If you get an error message, that means that the classes cannot be migrated to BMC Helix Operations Management.
Do not select these classes during the migration or change their type before running the migration.
To simulate event policy migration
- In the Event Migration Utility console, go to the Policies tab.
- Click the dotted menu icon and click Simulation.
- In the Event Class Policy dialog box, click Next.
- Select the policies that you want to run the simulation for.
To select all policies on the page or all policies in the system, click the Name column. - Click Simulate.
If the simulation is successful, a success message is displayed.
If you get an error message, that means that the classes or rules in the policy are not migrated. Fix these errors before running the migration.