Import command for logical data model assets and MDM models
You can use the istool import command with to import logical data model assets and MDM models. You use the -lm parameter to import logical data model assets and the -mdm parameter to import MDM models.
Purpose
You can import logical model assets and MDM models from an archive file that was exported from another instance of the same version of InfoSphere® Information Server. For example, you might export a file from a development environment and then import it into a test or production environment. You can migrate assets between versions of InfoSphere Information Server by importing assets that were exported from an earlier version.
For the full list of logical data model assets that you can import, see the topic Common metadata asset types and identity strings for the command line.
You can use a single istool import command with the -all parameter to import most types of metadata assets from an archive file. See Moving all assets from one metadata repository to another.
Prerequisites
You must have the Common Metadata Administrator role.
The preferred way to run this command is in the istool command-line window. If you run this command in your operating system command-line window or in scripts, you must add istool before the command name.
Importing multiple types of assets
- Users and groups
- Common metadata
- InfoSphere DataStage® and QualityStage® assets.
- Reports.
- InfoSphere Information Analyzer assets.
- InfoSphere FastTrack assets.
- InfoSphere Information Governance Catalog extended data sources.
- InfoSphere Information Governance Catalog extension mapping documents.
- InfoSphere Information Governance Catalog business glossary assets. In versions earlier than 11.3, these assets are created in InfoSphere Business Glossary.
- Custom attributes for InfoSphere Information Governance Catalog extended data sources and extension mappings. In versions earlier than 11.3, these assets are created in InfoSphere Metadata Workbench.
Command syntax
Optional parameters and values in the syntax are enclosed in brackets, [ ].
import
authentication parameters
[generic parameters]
[-abortAfter number_of_errors]
-archive "file_name_and_path"
[-preview | -replace]
[-responseFile "file_name_and_path"]
[-mapping "file_name_and_path"]
–lm | –mdm
'[-allowDuplicates]'
Parameters
- authentication parameters
- Required. All asset interchange commands use authentication parameters to connect to a specific installation of InfoSphere Information Server.
- generic parameters
- The generic parameters are available to all asset interchange commands. Use the generic parameters to request help on command syntax, to specify silent or verbose operation, and to use a script to run commands.
- -abortAfter | -abort number_of_errors
- Stops the import after the specified number of errors.
- -archive | -ar file_name_and_path
- Required. Specifies the .isx file to import assets from.
- -preview | -pre
- Previews the import. The preview lists the assets that will be imported when the import runs. The assets are not imported when you run a command with the -preview parameter.
- -replace
- Replaces or merges existing assets with imported assets. If you specify the -replace parameter, and an asset with the same identity exists in the target metadata repository, the existing asset is replaced by or merged with the imported asset, depending on the type of asset.
- -responseFile | -rf "file_name_and_path"
- Specifies the name and path of a response file that contains assets that failed to import during a run of a previous istool import -lm command. Not supported with the -preview parameter. For more information, see Using a response file with istool export and istool import commands.
- -mapping | -m file_name_and_path
- Specifies the path to the mapping file that instructs the import command to change some properties of imported assets during import, so that the imported assets correctly reconcile with the assets in the metadata repository. For more information, see Using a mapping file with the istool import command.
- -lm | -mdm
- Required. Specifies that logical data model assets or MDM models are imported. The parameter
must be followed by two single quotation marks ('), for example, -lm ''. You can
use the following option within the single quotation marks:
- -allowDuplicates
- If duplicate assets exist in the import file, allows them to be imported as separate assets. If the duplicate assets have the same identity as an existing asset in the metadata repository, the existing asset is unchanged by the import, even if you also use the -replace parameter. For guidance on whether to allow duplicates, see Import settings for InfoSphere Metadata Asset Manager.
Exit status
A return value of 0 indicates successful completion. Any other value indicates failure.
Example
The following command previews the MDM assets in the file customer.isx.import –dom ABC:9443 –u user1 –p pass1 -pre -ar "c:\customer.isx" –mdm ''The following command imports all the logical data model assets from the file customer.isx.
import –dom ABC:9443 –u user1 –p pass1 -archive "c:\customer.isx" –logicalmetadata ''The following command imports all the logical data model assets from the file and allows duplicates to be created.
import –dom ABC:9443 –u user1 –p pass1 -ar "c:\customer.isx" –lm '-allowDuplicates'