Running the bulk load program
The bulk load program provides the capability of loading or updating large amounts of configuration item (CI) data and relationships data into the TADDM database. The input to the bulk load program is a file that contains an Identity Markup Language (IdML) formatted XML document. The bulk load program can also be used to define large number of extended attributes.
To run the bulk load program, complete the following steps:
-f and -o parameters is sufficient, but other parameters are supported,
if needed. The following example shows some infrequently used parameters:./loadidml.sh -f path_to_idml_file -u userid -p passwd
-g -c -e -o -b bidirectional_format_on_or_auto -l location tag -loadEAMeta -override -disableIdmlCertificationTool Where: - -u userid
- Specifies the user ID to be used to authenticate with the TADDM server.
- -p passwd
- Specifies the password used to authenticate with the TADDM server.
- -g
- Specifies to use the graph writing algorithm to persist data into
the database.
This option improves loading performance, and it is useful for loading XML files with data that has large arrays of contained objects. Tivoli Storage Productivity Center and Tivoli Configuration Manager discovery library IdML files are examples of file with large arrays of contained objects. Other files can also benefit from this algorithm. The graph writing algorithm writes batches of objects to the database at one time. The number of objects written is influenced by the cache size setting in the bulkload.properties file. Give careful consideration to the use of this algorithm because there are limitations.
Restriction: Because of current API limitations, the IdML file must have source tokens present for each object in order to perform graph writing. Source tokens, however, are an optional value in an IdML XML file. Therefore, if the
-goption is provided and no source token is available for an object, a dummy source token is automatically generated for that object using the required object ID from the XML file. The dummy source tokens are not displayed as launch in context tokens. However, the dummy source tokens are displayed for individual object attributes and in the bulk load log file. This behavior is a normal part of the algorithm.If any single element does not satisfy naming rules, or it fails to be written to the database for any reason, the entire graph, or a subset of elements might fail to be persisted. Error messages indicating the specific object that caused the failure are not available due to current limitations. Run the file without the
-goption to pinpoint a problem.Certain IdML files reuse source token values for more than one object. While permissible in IdML, these files cannot be processed with the
-goption due to current limitations. Files that reuse source tokens between objects must be loaded without the-goption.Graph writing requires additional memory at both the client and the server. If an
out of memory
error occurs, reduce the cache size setting in the properties file or do not use the-goption.Abstract resources are not supported during graph writing. Process the files that contain these characteristics without the
-goption. Extended attributes are supported during graph writing. - -c
- Specified to copy the IdML source files to the working bulk directory and process them there. This method might lead to delays when copying large files.
- -e
- Specifies that data loading error information is made available
in the program return code. By default, the bulk load program returns
exit code 0 even if an error occurs when loading data. The
-eparameter instructs the program to return code 5 when an error occurs when loading data. Note the return code from the bulk load program itself takes precedence even if the-eparameter is specified. For example, if the bulk load program cannot connect to the TADDM server, the returned code contains this information. - -b bidirectional_format_on_or_auto
- Specifies whether bidirectional support is enabled, disabled,
or automatically configured. Choices for the bidirectional flag are on and auto. When the bidirectional
flag is on, you can configure the bidirectional
parameters for each Management Software System using the predefined
bidirectional profiles. When the bidirectional flag is set to auto, the bidirectional transformation is enabled and the
bidirectional format is detected automatically.
If you are using SSH, do not specify on for the bidirectional flag. When you choose on for the bidirectional flag and use SSH, the bulk load bidirectional configuration window is not displayed. Without completing the fields in the bulk load bidirectional configuration window, you cannot configure the bidirectional parameters.
- -l location tag
- Specifies a location tag value when loading IdML files. Every configuration item that is loaded
from the IdML file has this location tag value assigned. If more than one IdML file is present in
the same directory and each file requires a unique location tag, you must load the files separately.
Make sure that the com.ibm.cdb.locationTaggingEnabled value in the
COLLATION_HOME/etc/collation.propertes file is set to
true.
For more information about location tagging, see Configuring location tagging.
- -loadEAMeta
- Note: This flag is related to extended attributes metadata.
Forces bulk loader to ignore values and to store the extended attributes metadata only. New attribute is added to previously defined attributes for the same CDM class in the metadata. The type for the new attribute in attribute metadata is set to
'String'.If-loadEAMetais passed, the extended attributes metadata can be defined with the following books:- Regular IdML books
- IdML books with metadata definitions only.
-loadEAMetaoption takes precedence over the-goption, and the graph writing mode is ignored.- Example
- For the following part of the IdML source file, the bulk load
program with the
-loadEAMetaoption defines themyExtAttr1,myExtAttr2andmyExtAttrInCategoryextended attributes for theWindowsComputerSystemcomponent type. ThemyExtAttrInCategoryattribute is defined in themyExtAttrCategorycategory.<cdm:sys.windows.WindowsComputerSystem id="9.10.10.10-WindowsSystem" sourceToken="ip_address=9.10.10.10"> <cdm:extension> <cdm:extattr name="myExtAttr1">value1</cdm:extattr> <cdm:extattr name="myExtAttr2">value2</cdm:extattr> <cdm:extattr category="myExtAttrCategory" name="myExtAttrInCategory">value3</cdm:extattr> </cdm:extension> ... </cdm:sys.windows.WindowsComputerSystem>
- -override
- Note: This flag is related to extended attributes metadata.
If this flag is passed with
-loadEAMetaflag, it forces redefinition of the attribute type, in case when the attribute is already defined, and its type is other than'String'.- Example
./loadidml.sh -f /opt/IBM/taddm/dlaxmls/testfile.xml -u admin -p password -g -c -o -b auto -l tag
- -disableIdmlCertificationTool
- Specifies to disable IdML books validation before the processing of the books by the bulk load program.