Data Import utility scenarios
Scenarios with a mapping file
The following examples show you how you can use Data Import utility with a mapping file:
- In the following example, the server name, form name, and data file name are optional because the mapping file contains the information:
com.bmc.arsys.apiext.data.DataImport -u userName -p password -m mappingFileName -d mappingFileDir -l logFile
- In the following example, the server name, form name, and data file name override the names in the mapping file. When you use the Data Import utility with a mapping file, you can override one or more of those names.
com.bmc.arsys.apiext.data.DataImport -x serverName -u userName -p password -m mappingFileName -d mappingFileDir -l logFile -o dataFilePath -f formName
Scenarios without a mapping file
Without a mapping file, you must specify the server name and data file name because there is no mapping file to provide such information. The -d and -a options are not shown in the following examples, but if you work with multiple servers on the same computer, you can use -d for duplicate record handling and -a to specify a port number.
The following examples show how you can use the Data Import utility without a mapping file:
- In the following example, minimal options are used. The dataFilePath specifies the data file with path to import. If there are multiple data sets in the same data file, an import is attempted for all forms.
com.bmc.arsys.apiext.data.DataImport -x serverName -u userName -p password -o dataFilePath -l logFile
- In the following example, the formName determines which set of data from the data file is imported to the server. The form name on the server and in the data file must match.
com.bmc.arsys.apiext.data.DataImport -x serverName -u userName -p password -f formName -o dataFilePath -l logFileName
- In the following example, an import is being attempted into the form called formA on the server, but the data comes from formB in the data file.
com.bmc.arsys.apiext.data.DataImport -x serverName -u userName -p password -f "formA=formB" -o dataFilePath -l logFileName
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*