Manage automated data imports
Learn how to manage automated data imports in Snow License Manager.
Configure automated data imports
You can use the Snow License Manager File Import Service for automated and regular imports of data. The service is configured on the Import Service tab of the Web Configurator.
Open the Windows Start menu, and then select Web Configurator.
In Snow License Manager - Web Configurator, select the Import Service tab.
In the Settings section, do the following:
To change the default Import Root (full path) folder, click
and then select a new folder. The default folder is created during the installation of Snow License Manager.
If the folder you select is not empty, all sub-folders and files will be deleted. The folders Backup, ErrorRows, and Import are automatically created in the new folder. If sub-folders are added to the Import Folder, these sub-folders are automatically replicated to the folders Backup and ErrorRows.
In File Transfer Wait Limit (minutes), select for how long the system should wait before cancelling an import. The default value is 60 minutes.
In the Logging section, do the following:
Select a Path to where you want to save the logs.
Select which log Level you want to use:
ALL: Shows all logged information.
DEBUG: Shows detailed information mainly intended for internal use.
INFO: Shows all the steps taken in the process.
WARN: Shows that something is wrong, but the performance of the system is not affected.
ERROR: Shows that something has stopped working, but the system is still up and running.
FATAL: Shows that the system has stopped working.
Note
The ALL log level shows information from the levels DEBUG, INFO, WARN, ERROR, and FATAL. The DEBUG log level shows information from the levels INFO, WARN, ERROR, and FATAL, and so on.
Optionally, if a new organization is created during an import, the created organization nodes can be logged to a separate file. Whether new organizations should be created is defined by the Create missing organizations option, see Step 5.f.
To enable logging and define settings for the organization log, do the following:
Click Organization log settings.
Select Enable.
Click
, and in Path, select the folder where you want to save the logs.
In Max File Size (MB), select the maximum size of the log file. Rows are appended to the log file until the specified maximum size is reached, at which point the file is backed-up and a new log file is created.
In Backup Count, select the number of log files to keep.
Optionally, select Include date stamp.
Click OK to save the settings and close Organization Log.
Optionally, when importing computer data, actions taken for obsolete computers can be logged to a separate file. An obsolete computer is a computer that exists in the Snow License Manager database but not in the import file. If the setting Obsolete computer action is set to DoNothing, nothing will be logged.
To enable logging and define settings for the computer log, do the following:
Click Computer log settings.
Select Enable.
Click
, and in Path, select the folder where you want to save the logs.
In Max File Size (MB), select the maximum size of the log file. Rows are appended to the log file until the specified maximum size is reached, at which point the file is backed-up and a new log file is created.
In Backup Count, select the number of log files to keep.
Optionally, select Include date stamp.
Click OK to save the settings and close Computer Log.
In the Import Folders section, review the existing import folders identified by Path and import Type.
To add a new import folder, do the following:
Click Add.
The Import Folder dialog box appears with the two tabs Configuration and Field Mapping.
On the Configuration tab, in Import settings, do the following:
Optionally, under the default import root folder, enter a Subfolder to import files from.
For Service Provider Edition (SPE) platforms, select Customer.
Select Type of import.
On the Configuration tab, in Additional import settings, do the following:
For Computer metadata imports, in Obsolete computer action, select how to handle computers that exist in the Snow License Manager database but not in the import file: DoNothing, Inactivate, Archive, or Delete. For more information, see Import data manually, section Import settings.
To restrict the obsolete computer action to certain computers in the database, enter the client Configuration names. For more information, see Computer import.
For License imports, in Primary key mapping, select which field you want to use when mapping licenses to applications: Name, PartNumber, StockkeepingUnit.
For License assignment imports, in Assignment action, select which action to take: Add or Replace.
For custom Object imports, select Object type. Available types are the ones created in the web user interface of Snow License Manager.
For Custom compare values imports:
In Primary key mapping, select which field you want to use when mapping the value: Name or PartNumber.
Select Custom Compare Value Type. Available types are the ones locally created in the web user interface of Snow License Manager.
On the Configuration tab, in Import File, do the following:
If the import files have headers, select Has headers.
In Type, select the file type: Csv, Xls, or Xlsx.
For file type Csv, in Delimiter, select which delimiter you use between the data fields in the import files: Comma, Semicolon, or Tab.
On the Configuration tab, in Import File Backup, do the following:
To enable backup of import files, select Enable.
In Days, select the number of days to keep the files.
In File count, select the number of backup files to keep.
On the Configuration tab, in Organization, do the following:
In Separator, enter the character you use between the levels of the organization structure in the import files. For example, enter “/” if the organization information is in the format: “ROOT/IT/Support”.
To allow the import to create organizations that exist in the file but not in the Snow License Manager database, select Create missing organizations.
If you want to use capital letters in the friendly name of the organization, for example FINANCE, select Use upper case for friendly names.
On the Field Mappings tab, in Mappings, the target fields for the selected type of import appear.
To define mapping of the fields in the source file to the target fields in Snow License Manager, do one of the following:
To manually define the mapping:
Double-click the corresponding row of the target field. The Mapping dialog box appears.
In Source (file header or index), enter the column name or position (index) of the field in the import file.
To enable index mapping, select Map by index.
Optionally, in Default value, enter a value to import if there is no value in the source field.
Optionally, in Prefix, enter a text or a number to be added in front of all imported values. This can be used to separate computers from different sites. For example, SE_ can be added in front of all computers located in Sweden.
For updates of existing items in the database, in Empty value action, select how to handle empty values in custom fields of the source file:
Do not update: No change to the value in the database
Remove value: The value in the database will be empty after the update
Note
If you have specified a Default value, there will be no empty fields and the Empty value action will not apply.
To remove any spaces in the beginning or end of a data value, select Trim leading/trailing white-spaces.
Click OK to save the settings and close the Mapping dialog box.
Repeat for all target fields.
Click OK to save the mappings and close the Import Folder dialog box.
To automatically define mapping based on an existing import file:
Click Auto map from file.
Select the import file that represents the contents of the imports you plan to make.
In Mappings, the result of the automatic mapping appears.
In Mappings, manually add the mappings that are missing or incorrect. For more information, see Step 5.g.a.
To save the settings and mappings, and close the Import Folder dialog box, click OK .
The import folder Path and import Type appears in the Import Folders section.
To save the new import folder configuration, click Apply.
Note
Rows that for some reason cannot be imported are logged to file in the ErrorRows folder. Review these logs to find and correct any erroneous field mappings or import settings.
To close the Web Configurator, click Close.
Example: Automated imports of license purchases
Scenario: The license import file is a comma-separated .csv file with column headers. You want to use the application name when mapping the licenses to the applications. You want to use the License folder under the default import root as the import folder.
Start the Web Configurator.
In Snow License Manager - Web Configurator, select the Import Service tab.
Click Add.
In Import Folder, on the Configuration tab, do the following:
In Subfolder, browse for and select the License folder.
In import Type, select License.
In Primary key mapping, select Name.
Select Has headers.
In file Type, select Csv.
In Delimiter, select Comma.
In Import Folder, on the Field mapping tab, do the following:
Click Auto map from file.
Select the import file.
For each field, verify that the automatic mapping suggested in the Mappings list is correct. If not, do the following:
Double-click the row with the incorrect mapping
In Mapping, enter the correct Source file header
Click OK
When you have completed the mapping, click OK.
The new License folder appears in the Import Folders section.
To save the new import folder configuration, click Apply.
To close the Web Configurator, click Close.