Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
Search for | Example | Results |
---|---|---|
A single word | cat
|
Topics that contain the word "cat". You will also find its grammatical variations, such as "cats". |
A phrase. You can specify that the search results contain a specific phrase. |
"cat food" (quotation marks) |
Topics that contain the literal phrase "cat food" and all its grammatical variations. Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase. |
Search for | Operator | Example |
---|---|---|
Two or more words in the same topic |
|
|
Either word in a topic |
|
|
Topics that do not contain a specific word or phrase |
|
|
Topics that contain one string and do not contain another | ^ (caret) |
cat ^ mouse
|
A combination of search types | ( ) parentheses |
|
- Adapter Configuration
- Identifying Running Software by Processes
- Automatically Deleted CIs and Relationships and Candidates for Deletion CIs
- How to Configure Adapter Settings
- How to Define the Owner Tenant Adapter Parameter
- How to Configure Full Population Run
- How to Configure Global Probe Result Filtering
- How to Configure CI Aging Settings
- How to Define CITs to be Deleted by Java-based Population Adapters
- How to Attach Discovery Documentation to a Discovery Package
- How to Attach a Readme to a Discovery Package
- How to View Discovery Resource History
- How to Create and Configure Mapping Files Using the Visual Mapping Tool
- Pre/Post Scan Script Editor
- Pre-Scan and Post-Scan Scripts
- Adapter Management User Interface
- Internal Configuration Files
How to Create and Configure Mapping Files Using the Visual Mapping Tool
The new mapping tool enables you to create, update, or delete mapping files in a visual way. You can configure both link root-based TQL queries and CI root-based TQL queries.
This section includes:
Prerequisites
- You have deployed any Generic Adapter package, or the package for any of the latest out-of-the-box adapters (Asset Manager Generic Adapter or the SM 9.40 Adapter)
- You have established an integration point with Asset Manager or Service Manager, or your custom adapter/integration that uses the Generic Adapter Framework
- The integration is activated
How to Open and View a Supported Mapping File Using the Visual Mapping Tool
The current version of the Visual Mapping tool supports the following mapping files:
- Enhanced Generic Push Adapter mapping files
- Generic Adapter mapping files for Population, Federation and Push scenarios
-
Navigate to Data Flow Management > Adapter Management.
-
In the Resources pane, expand the Packages > <package name> > Configuration Files folder.
-
Do one of the following:
-
Click a mapping file and click Yes in the popup window that asks if you want to open the configuration file with the new mapping tool editor.
- Right-click a mapping file and select Open Mapping Tool from the context menu
- Click a mapping file and click the Open Mapping Tool icon at the top of the script pane, or
- In the Configuration Files pane, double click a mapping file and click Yes in the popup window that asks if you want to open the configuration file with the new mapping tool editor.
The new mapping tool editor window opens, with tree representation of local and external class models loaded and displayed.
Note
- In case the integration point provides a null external class model, you can still open the Visual Mapping tool. An empty default class model will be displayed in the External Class Model pane instead.
- If you open an old Enhanced Generic Push Adapter mapping file using the Visual Mapping tool, you will be asked if you want to convert the file to the new schema and that if you want to use the visual mapping tool as the default editor.
-
- To view the entities and attributes of the UCMDB TQL or the external class model, expand the relationship type hierarchical tree in the Local Query pane or the External Class Model pane.
How to Create a Mapping File Using the Visual Mapping Tool
-
Navigate to Data Flow Management > Adapter Management.
-
In the Resources pane, expand the Packages > <package name> > Configuration Files folder.
<package name> indicates the adapter package in where you want to create the new mapping file.
- Click the Create new resource icon at the top of the Resource pane, and select New Configuration File.
-
In the Enter a Name dialog that pops up, provide values as described in the table below.
Field Description Name Enter a name for the new mapping file.
Naming convention for new mapping files:
<adapter_name>/mappings/push/<filename>.xmlFor example, <adapter_name>/mappings/population/customDataPopulation.xml.
Note: You must specify the adapter name and include push or population in the name.Package Click for the Package field, then in the Select Package dialog that pops up, select a package and click OK. The new mapping file is created.
-
Open the new empty mapping file in the mapping tool editor, and edit the attribute mappings as necessary.
For details, see How to Edit and Update a Mapping File Using the Visual Mapping Tool.
Note
- For push scenario, you can add multiple roots, and you can select which one to use.
-
You can have duplicated source_instance nodes as long as the root-element is different.
-
Click Validate Mapping File to validate the mapping file you just created.
- Click Save .
How to Edit and Update a Mapping File Using the Visual Mapping Tool
You can do the following to edit or update a mapping file using the visual mapping tool:
You can use one of the following methods:
-
Quick action. Locate a corresponding entity in the External Class Model pane, and then select a desired attribute value in the External Class Model Attributes pane, and then click the green arrow button ( or ) to add the value to the mapping in the Visual Mapping pane.
- Drag and drop. After selecting a desired attribute value in the External Class Model Attributes pane, simply drag and drop the value to the Visual Mapping pane to update the selected mapping.
-
Auto-complete. Directly type in the target attribute value field and select a desired value to update the mapping. The auto-complete suggestions are generated based on valid existing relationships between entities from the external class model or from the local TQL query.
When you type a character, the first level suggestions will appear. Usually these are all first level CITs from the external class model that match the string or items from the local TQL query.
After you type or select a valid CIT entity:
-
If you enter the "." character, you obtain suggestions for linked CITs based on existing relationships from the external class model or from the local TQL query.
For example, you have a Computer to Node relationship,
-
if you type Computer, Node will appear in the suggestions list.
-
if you type Node, Computer will not appear unless you have another relationship from Node to Computer.
-
-
If you enter the "[" character, you obtain attribute suggestions for the current CIT:
-
For local TQL query, attributes are filtered with the Element Layout feature.
-
For external class model, all attributes are displayed.
-
The Visual Mapping tool can also provide auto-complete suggestions on possible methods from imported Groovy scripts. For example, you have a mapping file that imports the mappings.scripts.AMPushFunctions Groovy script, if you write an attribute value like AMPushFunctions, you should receive a list of possible method names; If you write an attribute value like AMPushFunctions.get, you should receive a list of possible method names that start with get.
-
- Edit the mapping value in the XML Editor directly. You can directly edit the XML mapping value in the XML Editor pane below the Visual Mapping pane to update the mapping.
- In the Local Query pane, select a UCMDB entity.
-
To add a UCMDB attribute to the Visual Mapping pane, in the Local Query Attribute pane, select a desired attribute and click the green arrow button ( or , depending on the push, population, or federation scenario).
To add a source attribute from a different UCMDB TQL query,
-
From the Query drop-down list, select a different UCMDB TQL query.
If the desired TQL is not in the drop-down list, click Add TQL Queries . In the Add Queries dialog box, select and add an available integration TQL query from the Available items pane to the Selected items pane, then click OK.
- Expand the TQL query representation.
- Select a UCMDB entity that corresponds to the parent target_entity tag in the Visual Mapping pane where you want to add the new UCMDB attribute.
- In the Local Query Attributes pane, select an attribute and click the green arrow button ( or , depending on the push, population, or federation scenario) to move the attribute to the Visual Mapping pane.
-
-
Add a mapping attribute value from the External Class Model entity to the Visual Mapping pane.
To do so, follow one of the following methods:
-
Quick action. Locate a corresponding entity in the External Class Model pane, and then select a desired attribute value in the External Class Model Attributes pane, and then click the green arrow button ( or ) to add the value to the mapping in the Visual Mapping pane.
- Drag and drop. After selecting a desired attribute value in the External Class Model Attributes pane, simply drag and drop the value to the Visual Mapping pane to update the selected mapping.
- Auto-complete. Directly type in the target attribute value field and select a desired value to update the mapping. The auto-complete suggestions are generated based on valid existing relationships between entities from the external class model or from the local TQL query.
- Edit the mapping value in the XML Editor directly. You can directly edit the XML mapping value in the XML Editor pane below the Visual Mapping pane to update the mapping.
-
Do one of the following:
- Update Info Tag. Clicking this button opens the Update Info Tag dialog box, enabling you to modify and update the information about the data repositories being integrated, including Name, Version, and Vendor for both source and target data repositories.
- Update Import Tag. Click this button opens the Update Import Tag dialog box, enabling you to select and add available items and import new groovy scripts. You can also move up or down the sequence of a script to decide the order of scripts to be imported.
-
Update Optional Tags. Clicking this button opens the Update Optional Tags dialog box, enabling you to update optional tags by defining values for the Type, Is Valid, and Is Delected fields. You can also select the Show Warning check box to display warning messages.
Note: This button is not available for the source_entity tag.
Select the parent source_instance or target_entity element of your interest, and do the following to add the source element:
-
Add For Each Tag. Clicking this button opens the Add For Each Tag dialog box, enabling you to define the source and the index for the tag that you want to add for each child mappings under the current parent entity:
- Source Entities. Defines the source entities for the tag.
- Count Index. Defines the iteration loop index ("i") that can be used to reference the currently iterated element. For example, pc.ip[i].
- Var Name. (Optional) Specifies the variable name for the tag.
Each time you edit a field you will see a notification of what attribute will be edited.
-
Add Variable Tag. Clicking this button opens the Add Variable Tag dialog box, enabling you to define and add variable tags to the selected variable element:
- Name. Specifies name for the variable.
- Type. Select a value from the drop-down list as type of the variable in database.
- Value. Specifies a value for the variable.
Note: This button is not available for the source_instance tag. -
Add Custom Section. Enables you to add an empty section in the Visual Mapping pane, allowing you to manually define a new mapping element that may not fall into any of the existing mapping categories, including customized XML tags.
After adding an empty section in the Visual Mapping pane by clicking the Add Custom Section button, you can edit the empty section in the XML Editor pane. Clicking Save in the XML Editor saves the code.
Note: To save the entire mapping file, click Save for the entire Visual Mapping tool window.
When creating attribute mappings such as the one below, you may have a use case to ignore certain attribute mappings within a target entity based on some custom logic:
This can be done via the newly added is-valid XML attribute on the target_mapping XML tag.
If you change the mapping line for the description attribute to use the new XML attribute, you get something like this:
<target_mapping name="description" is-valid="CustomFunctions.isSupportedType(Computer['name'])" datatype="STRING" value="Computer['name']"/>
where CustomFunctions.isSupportedType(Computer['name']) represents a Groovy expression that will result in a boolean value (true means the attribute is valid, false means the attribute will be ignored).
For a quick check you can use any simple expression like "1 == 1" or "true".
Relevant log lines are also available. For example, if the expression is invalid, you will see the following log statements in the fcmdb.push.all.log or fcmdb.push.mapping.log:
2014-08-14 14:07:56,974 [JobExecuterWorker-0:DS_ga_test] TRACE - >> Execution of is-valid expression [1 == 2] = [false]
2014-08-14 14:07:56,974 [JobExecuterWorker-0:DS_ga_test] DEBUG - >> Ignoring invalid property [description] from target entity [Root]
And, if the expression is valid you will simply see:
2014-08-14 14:06:39,660 [JobExecuterWorker-0:DS_ga_test] TRACE - >> Execution of is-valid expression [1 == 1] = [true]
-
Open the icon-related mapping file for the adapter.
For example, for AM Generic Adapter, open the am-entity-config.xml file.
For Service Manager adapter, open the icon.properties file.
-
Locate the icon type tag for the CIT of your interest in the mapping file.
For example, for AM Generic Adapter, it is icon-type.
-
Modify the value for icon type tag with a UCMDB icon value as needed.
For available UCMDB icons, check Modeling > CI Type Manager > Icon tab.
-
Click Save.
-
Open a desired mapping file, click the Refresh External Class Model button, the icons should be updated.
To do so,
- Go to Administration > Infrastructure Settings Manager.
- In the Categories pane, select GUI Settings.
- In the Name column, locate the Switch between external and local tree panels in the integration mapping tool setting.
-
In the Value column, click the value for the setting you selected, and then choose a value from the drop-down list.
The default value for this setting is False.
-
Click Save .
The change takes effect immediately.
You can search for a CI type or an attribute in both of the Local Query, External Class Model, and their Attributes panes the same way as you do in the Script pane.
You can use * as a wildcard character to search inside the text.
To remove a target_entity or target_mapping tag from the mapping file, select the desired mapping element, and click Remove Node .
To remove the entire mapping, select any tag in the Visual Mapping pane and click Clear Entire Mapping .
To revert to the last saved change, click Revert Changes .
Click Validate Mapping File to validate the changes you just made to the mapping file.
Note Although the Visual Mapping tool supports all mapping files, the following configurations are not supported:
- Non-instance based adapters: The UCMDB enhanced push adapter works with instance based adapters. (For more information, see the Universal CMDB Developer Reference Guide).
-
Mappings containing both CI root and link root TQL queries in the same file.
-
Mappings having wildcard tags that select multiple TQL queries for a target mapping.
In case you wish to edit an existing mapping file that references one of the above mentioned cases, you may see that the Open Mapping Tool option is not available, or an error message stating that the mapping file is unsupported and that only manual XML editing is possible.
How to Synchronize Class Model Changes to External System through Push Adapter
With the new mapping tool, you can create new CI types and attributes for external class model in Universal CMDB and synchronize the changes in real time to the external system. This enables you to manage class model changes on both systems centrally from Universal CMDB.
-
Open an existing mapping file using the Visual Mapping tool.
The external tree is populated with a class model.
-
In the External Class Model pane, select a node.
-
Create and synchronize a CI type.
-
Click Add New CI Type to External Class Model in the toolbar for the External Class Model pane.
The Add New CI Type to External Class Model dialog box opens, comprising of general section and metadata section.
The fields in the metadata section are populated dynamically as specified in the external system (passed through the adapter).
Note: If you already selected a CIT before you click Add New CI Type to External Class Model , the new CIT is created as a child CIT of the selected node; If no CIT is selected, the new CIT is created as a root CIT. -
Define the following standard properties for the new CI type:
- Name. Specify the name for the new CI type.
- Description. (Optional) Detailed description of the CI type.
-
Click OK.
The new CIT synchronization is triggered and the save operation runs as a background task.
Until the status of the save operation is confirmed, the newly created CIT appears as greyed out in the external tree.
After the save is successful, the CIT turns into a selectable tree node, and the node can be further used in mappings and drag and drop scenarios.
In case the save operation failed, the CIT will not appear in the external tree anymore, and an error notification appears at the top of the Visual Mapping pane.
-
-
Create and synchronize an attribute.
You can similarly create new attributes for a selected CIT and synchronize the change to the external system. To do so,
-
In the External Class Model Attributes pane, click Add New Attribute to Selected External Node on the toolbar.
The Add New Attribute dialog box that opens.
There is no metadata section in this dialog box.
-
Define the following properties for the new attribute:
- Name. Specify the name for an attribute property.
- Display Name. Specify the display name for an attribute property.
- Description. (Optional) Detailed description of the attribute property.
- Type. Select a value from the drop-down list as type of the attribute property in database.
-
Click OK.
The new attribute synchronization is triggered and the save operation runs as a background task.
Until the status of the save operation is confirmed, the newly created attribute appears as grayed out in the external attributes table.
After the save is successful, the attribute turns into a selectable attribute entry, and the attribute can be further used in mappings and drag and drop scenarios.
In case the save operation failed, the attribute will not appear in the external attributes table anymore, and an error notification appears at the top of the Visual Mapping pane.
-