Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Tell me how to do it
Under the hood details of creating CMDB Integration using AIE
4/9/2010
What is it?
A mechanism to manage data transfers between external data sources and CMDB (also AR Forms) Bi-directional and multi-threaded data transfer engine An Enterprise Application Integration tool with data transformation capability It supports event-based or scheduled information flow Ideal for bulk, incremental, data synchronization transfers Provides interfaces to external data source and the CMDB Provides an intuitive graphical interface for field mapping configuration
2 Copyright 4/9/2010 BMC Software, Inc.
How is it used?
Transform data to the CMDB data model Efficiently load data in bulk Can create relationships between instances as they are inserted in the CMDB. Designed for complex integrations Easily configurable Can be used against a variety of applications Extensible
Advantages
Complex transfers requiring data transformation Handling large amount of data transfers Multiple integration points
3 Copyright 4/9/2010 BMC Software, Inc.
Packaging
Ships with Atrium CMDB 2.1 to integrate with Atrium CMDB One product, multiple adapters
Oracle SQL DB2 XML New! New!
Flat file
Improved!
Data Structure Knowledge External Data from Discovery/Inventory Atrium Integration Engine Atrium CMDB Reconciliation Rules Workflow Filters if Needed
AIE Terminology
Data Mapping
Exchange
AIE Service
Adapter
Adapter
Remedy Environment
AR System
CMDB Discovery Dataset CMDB Reconciliation Engine CMDB BMC.ASSET Dataset
Database data XML data Flat file data Source Relationships can be stored as
foreign key relationship tables
Atrium CMDB
Data Sets
Data value in a field... but so much more Data Sets you should use
BMC.ASSET The Gold Standard BMC.SANDBOX Temp location for GUI changes to Assets VENDOR.PURPOSE.PRODUCT custom datasets
Examples: BMC.IMPORT.MARIMBA, MS.IMPORT.SMS, ACME.IMPORT.LEGACY
10
Populates the vendor table and column menus Run before you start any mapping work
1. Load
3. Create Menus
12
Mapping Name = name for new mapping Direction = External Data into CMDB Namespace = BMC.CORE in most cases Class = Destination for data, pick from the list External Data Store = SqlServer, Flatfile or Oracle Table Name = Source of data (pick from list) if not in the list, run rulehelper.exe to create the menu items. Row Element = (XML only) the element that represents a row Click Create to save
Copyright 4/9/2010 BMC Software, Inc.
If the Table Name does not show in the drop down list, it is because you have not configured the Database Field Menus from the main console
13
Used to map source and destination side primary/foreign keys Keys must be unique on both sides
If multiple keys, stored as AND to define Unique
14
Map appropriate CDMB Class.Attribute to a Data Store Attribute Make sure to specify CMDB mandatory fields such as
15
Fields use in Key mappings Data Set ID (automatic if Use Dataset is checked) Short Description Submitter Name = anything that identifies the entry AssetLifeCycleStatus = 3 (if Asset Management is installed)
Copyright 4/9/2010 BMC Software, Inc.
Rules
Works like Function key in Remedy User and Administrator Tools Select by highlighting the row and click Add Rule is added Refer to the Rules box for hints on how to complete the rule Available Rules
16
Only works if you can write to the Vendor / Source Database Can be any value Usually is completion status
0 = transfer with no error N = error # - corresponds to ARERROR
17 Copyright 4/9/2010 BMC Software, Inc.
If you Update Row to Indicate Delete i.e. Soft Delete If you choose to Permanently Delete Hard Delete
No field to set. AIE will do trigger the deletion
18 Copyright 4/9/2010 BMC Software, Inc.
transfer. Important if you are experiencing performance or memory issues If you specified Restrict to Dataset on the Main Tab, you dont need to include it here.
Copyright 4/9/2010 BMC Software, Inc.
1. 2. 3. 4. 5. 6.
If set to all data that can be transferred will be. This could result in partial data records. Transfer as NULL cleans up any data that might be mistaken for null in a field If trailing blanks are possible in your key values, choose to consider Stores change history in a diary field you designate. Attribute must exist in CMDB. If Yes, updates are only made when a change is detected in the source data You must select a field that can store a negative integer to store the checksum Data Exchange Allows you to retrieve new or change data since last transfer You must select a date/time field to store last transfer time Relationship Exchange Data Mapping
Relationship Mapping
20
Exchange Name Name you create to identify the exchange Instance Name Specify the AIE thread to use Data Exchange Type Specify the type of mapping contained in the exchange External Data Store Must match the mapping(s) Data Exchange Execute Exchange As Relationship Exchange Data Mapping Schedule Only
Use Schedule tab
Relationship Mapping
22
When this exchange is done, you can configure another exchange to run
23 Copyright 4/9/2010 BMC Software, Inc.
Time
Works like the time function in escalation workflow Set day and time to run
24 Copyright 4/9/2010 BMC Software, Inc.
To Be Triggered
Use this option when you want to exchange to run on completion of some other exchange Must list the exchange in the On Completion section on the other exchange
25 Copyright 4/9/2010 BMC Software, Inc. Data Exchange Data Mapping Relationship Exchange Relationship Mapping
You can either set the external connection information on each exchange or on the Connections link from the Data Exchange Console
Alternate Method
26
Data Mapping
V_DiskDrive BMC_DiskDrive
Data Mapping
BMC_HostedSystemComponent
Map using External Data Store Mapping. Trigger on Complete of Data Exchange.
28
V_Computer
Data Mapping
V_DiskDrive BMC_DiskDrive
Data Mapping Class Relationship Mapping Map using CI Class Relationship Mapping Put in an Event Driven Only Exchange*
*In this case, the relationship data exchange only runs after the data transfer for the two configuration item classes has completed.
BMC_HostedSystemComponent
29
This is where you define which 2 classes to relate and which relationship Must Select Relationship Source on Create External Data into CMDB is the only valid Direction If you choose Relationship Source of External Data Store
Data Exchange Data Mapping
Define mapping criteria that defines the relationship Works just like creating Relationship in CMDB
Source on Left, Target on Right
31
Used to define values for a relationship instance Mandatory attributes shown above must be mapped To get a list of Attributes of each CI Class choose class from drop down.
Attributes list will then appear
32 Copyright 4/9/2010 BMC Software, Inc.
Used to define values for a relationship instance Mandatory attributes shown above must be mapped To get a list of Attributes of each CI Class choose class from drop down.
Attributes list will then appear
33 Copyright 4/9/2010 BMC Software, Inc.
Set MarkAsDeleted to 1 (Yes) Other attributes may be set as desired If you choose to Permanently Delete Hard Delete No field to set. AIE will do trigger the deletion
Copyright 4/9/2010 BMC Software, Inc.
Use if you are doing class based mapping Should match query used on class mapping If you specified Restrict to Dataset on the Main Tab, you
dont need to include it here.
35
Use if you are doing class based mapping Should match query used on class mapping If you specified Restrict to Dataset on the Main Tab, you
dont need to include it here.
36
Use if you are doing class based mapping Should match query used on class mapping If you specified Restrict to Dataset on the Main Tab, you
dont need to include it here.
37
Used only if a External Data Store mapping This is used to limit the external records
returned
38
Works the same as a normal Data Exchange Data Exchange Type = Relationship Class
Data Exchange Data Mapping Relationship Exchange Relationship Mapping
39
40
41
Atrium CMDB
Reconciliation Rules
Identify
Look for potential duplicates
42