Creating an Atrium Integrator job to import data
Before you begin
Ensure that you have the following:
- Administrator user permissions to create and manage Atrium Integrator jobs.
- At least one source data store from where you can import data.
- A target data store, which is the AR System.
Process of creating an Atrium Integrator data job
Task | Action | Reference |
---|---|---|
1. | Specify the source and target data store details | You must specify the job name and description, source data store details, target dataset, and the target data store details to which you want to transfer data. For more information, see To specify the job details. |
2. | Select CI types to transfer | Select the CI types that you want to transfer from the target data store. For more information, see To select the CI types for the transfer, and map target attributes and source columns. |
3 | Map attributes | Map the target attributes to the source columns. For more information, see To map the target attributes to the source columns. |
4. | Enable delta data import | Choose if you want to import only new or updated source records since the last transfer was run. For more information, see To enable delta data import. |
5. | Enable Delete Orphan records | For more information, see To delete orphan records. |
6. | Update source column (only for DB source) | For more information, see To update the source column. |
You must perform task numbers 2 to 6 for every class that you select. | ||
7. | Select the relationships and define the relationships between the CI types to transfer to BMC Helix CMDB. For more information, see To define the relationship mapping for the CI types to be transferred. | |
8. | Create a schedule for the job | Schedule the job to run at a specific time or timed interval. For more information, see To create a schedule for the job. |
To specify the job details
- On CMDB Portal, select Jobs > Manage Atrium Integrator > Create Job.
The Create Imports Job page opens. - In the Job Details section, specify the job name and description, target data store details, and the target data store to which the data must be transferred.
Provide the following details:
Field | Action |
---|---|
Job Name | Enter a name for the job. |
(optional) Description | Enter a description for the job. Important: Length of description should not exceed 256 characters. |
Data Store Details for Source Type | Select a source data store type from the list. |
Name | Select the data store from which you will import data. |
Data Store Details for Target | Select a data store type, which is an AR System from this list. |
Target Dataset | Select the destination dataset from the list. |
After you have entered all the job details, the page looks as follows:
To select the CI types to transfer from the external data store
- In the Mapping section, select the CI types that you want to transfer from the external data store; for example, Computer System and Monitor, and then provide the following details:
Field | Action |
---|---|
Select Class | Select a class to which the CI belongs. You can filter the class by using the search box. You can select multiple classes, but you must select at least two classes, one of which is a parent class, and the other is a child class. After you select the class, the other mapping details are displayed, and you can enter the mapping information for that class. |
Logical Name For CI Type | Specify a logical name for the CI type. For example, BMC_ComputerSystem class can be mapped to various CI types, such as computer system, cluster node, and master server. The logical name should be unique for the current job. |
2. Select the source files available for the selected data store.
Field | Action |
---|---|
For CSV | Select the source CSV file from the Source list. |
For Database | Perform the following steps:
|
For XML | Perform the following steps:
|
To map target attributes to source columns
Mapping target attributes to source columns defines the way in which data in the source column corresponds to data in the CMDB, and the actions that you must perform when transferring data between the source and target columns. A source key or primary key uniquely identifies a row of data. After a data transfer, the source key is the link that matches a record in the external data store with its counterpart in the CMDB.
- To map a target attribute to a source column, select the target attribute (that belongs to the selected class) and the corresponding source column (from the CSV data store), and click Map.
The mapping is displayed in a tabular format.
For some attributes, you can specify a constant value. For example, you can choose the target as Availability and assign a constant value Yes to it. - Select at least one row but not all rows from the table as the source key.
The target attribute and the corresponding source column in the external data store make up the source key, which is the primary key.
You must have two or more rows in the table out of which at least one row must be selected as the primary key, and at least one row should not be selected as the primary key.
For a CSV type of data store, the Mapping section looks as shown in the following figure:
For a database (DB) type of data store, the Mapping section looks as shown in the following figure:
For an XML type of data store, the Mapping section looks as shown in the following figure:
To enable delta data import
- (Optional) Select Enable Data Import to import only new or updated source records since the last transfer was run.
- Select the column that holds the time stamp when each record was last modified.
During each data transfer, only new records and those records with a last modified timestamp that is later than the most recent successful transfer are retrieved from the source.
To delete orphan records
(Optional) Select Delete Orphan Records from CMDB to mark a record as deleted from BMC Helix CMDB when that record is deleted from the source data source.
If this option is selected, this action is not performed when the job runs for the first time, but when the job runs subsequently, the records received in current job run are compared with previous job run, and those found to be missing from the source data source are marked as deleted from BMC Helix CMDB.
To update the source column
Update Source Data is displayed only for database type of data stores when at least one unmapped source column belongs to "integer", "int", "number", "varchar", "char", or "string" datatypes.
- Select Update Source Data.
- Select the column to be updated.
To define the relationship mapping for the CI types to be transferred
- Click the Relationship tab.
- Select a parent CI from the Parent Class list.
All the mapped CI types are shown in the Parent Class list. - Select a child CI from the Child Class list.
All the mapped CI types are shown in the Child Class list.
This list is populated based on the CIs that you have selected on the CI Types tab. Select a relationship between the parent and child class from the Relationship Class list.
Only applicable relationships are populated in the Relationship Class list.
If the parent and child CI belong to the same class, a message is displayed as shown in the following image.
If you select Yes, the CI Types tab is displayed again.- To add the relationship, click Add.
- In Logical Name For Relationship Class, enter a logical name for the relationship.
- Map the key column of the parent class with that of the child class by selecting a CI from the Columns list.
- (optional) To import only new or updated source records since the last transfer was run, select Enable Data Import.
- (optional) Repeat steps 2 to 6 for other CIs.
For a CSV type of data store, the Mapping section looks as shown in the following figure:
For a DB type of data store, the Mapping section looks as shown in the following figure:
For an XML type of data store, the Mapping section looks as shown in the following figure:
To create a schedule for the job
Create a schedule for the job to run at a specific time or timed interval.
- To create a schedule, click Add Schedule.
- Enter a schedule name.
- Select the Carte Server from the list to attach the schedule to the Carte Server.
This step is useful if you have multiple Carte servers set up in your AR server group and you want to select a particular Carte server to be used for running this job. It also helps to balance integration job load on the AR System server. - Specify the time at which you want the job to start running.
- Specify the frequency at which you want the job to run. For example, Weekly.
- You can choose a custom interval by selecting the Interval option and then specifying the interval.
- Click Save to save the job.
Where to go from here