ATS Licensing Migration Tool

Hide Topic ContentsShow Topic Contents
  1. Application Settings
  2. DataProtectionApp Settings
  3. Migrate Licenses from Version 3 to Version 4
  4. Expected Result

The ATS Licensing Migration Tool is a helper tool for migrating/transferring licenses that are in use in licensing version 3 to licensing version 4.

Most importantly, the tool must be used on the machine that hosts ATS Licensing v3 along with the licensing services for licensing v4.

Application Settings

The tool has 1 configurable application setting found in the ATS.LicensingMigrateTool.exe.config file:

LicensesFolder: The default value is C:\\ATS Licenses.  This setting is taken from licensing v3 and it is the location where the license (.lf) files are saved from v3. Please ensure the location specified matches the location of the license files.

DataProtectionApp Settings

The ATS Licensing Migrate Tool contains a helper application under the DataProtectionApp folder.  DataProtectionApp has its own appsettings.json file where the application can be configured. 

The default file system location used by ATS Licensing Server v4 for storing Data Protection API keys is C:\Windows\System32\config\systemprofile\AppData\Local\ASP.NET\DataProtection-Keys, which is created during the installation of licensing v4.  The entry in the DataProtectionApps appsettings.json file must match the location used by ATS Licensing Server v4.

For further information on Data Protection configuration, please click here.

Before setting this location for the DataProtectionApp, please ensure that this is the location used by ATS Licensing Server v4. If ATS Licensing Server 4 is started there must be at least one xml file as shown in the picture below:

If the location does not exist or the xml files are not present and the ATS Licensing Server v4 is application is running, a different location is being used for key storage. In this instance, please contact the ATS support team.

Migrate Licenses from Version 3 to Version 4

The Licensing Migration Tool enables a user to define the source database for licensing v3 along with the destination database for licensing v4 to where the licenses will be transferred.

Source databases (v3)

Licensing v3 may be configured to use either an embedded firebird database or an MSSQL Server database.  Under the heading Transfer from this database (Licensing Server Manager - Version 3) follow the steps below:

If an embedded firebird database is used, no additional information for connection to this database is required as it is always installed in a set location, which is known by the migration tool.

If an MSSQL Server database is used the following information is required:

MSSSQL Server: Specify the server that hosts the License Server Manager v3.

Log on to the server - Windows Authentication/SQL Server Authentication: Choose the authentication method to be used to authenticate against the SQL database.

User name: A user account with permission to read the database.

Password: The password for the user account.

Once the server name, authentication method, user name and password have been defined, the database can be selected from the drop down box.

Press Connect.

Destination database (v4)

Licensing v4 uses an MSSQL Server database.  Under the heading Transfer to this database (Licensing Server Manager - Version 4) follow the steps below:

MSSSQL Server: Specify the server that hosts the License Server Manager v3.

Log on to the server - Windows Authentication/SQL Server Authentication: Choose the authentication method to be used to authenticate against the SQL database.

User name: A user account with permission to read the database.

Password: The password for the user account.

Once the server name, authentication method, user name and password have been defined, the database can be selected from the drop down box.

Press Connect.

Transfer Licenses

Once the connections to the source and destination databases have been established, specify a location to which the transfer log will be stored and press Transfer.

The transfer log will be saved as a .txt file with summary logs for the transfer process.  More detailed logs are written in event viewer.

The default location of the transfer log is the same location as the Licensing Migration Tool.

Once the transfer process is started, the tool firstly detects all licenses for licensing v3 on the current machine and then validates the configuration of each license.  Any valid licenses available the transfer to licensing v4 will begin.

When the transfer process is complete a simple summary is shown.  For a more detailed summary, press the Open transfer log button.  The summary includes how many licenses were detected, how many were valid confirmation for each license transferred.

Any machine names assigned to licenses are included in the transfer.  Licenses are transferred with assigned machines to them, so named leases are also transferred to licensing v4 as reservations of type Machine Id.

The following screen displays the an example transfer log.

The ATS Licensing Server v4 service must be stopped before the migration and can be restarted after the migration is complete. 

If the ATS Licensing Server v4 service is not stopped prior to migration, it must be restarted immediately after the migration is complete.  If the license set validation is started before the service is restarted, then it will invalidate the transferred licenses.

Expected Result

ATS Licensing Migration Tool transfers all detected and valid licenses for licensing v3 to licensing v4. The tool follows the conditions defined below:

All licenses that are visible in the license store of Licensing v3 should be transferred to Licensing v4 (Licenses must have valid configurations).

Any licenses that have been transferred previously or are already present in Licensing v4 are ignored.

Licenses may be partially transferred, which means a license is transferred successfully but its leases are not. The transferred license is valid and can be used but the reservations should be done with licensing v4 flows.

If the DataProtectionApp is not using the same location/configuration that ATS Licensing Server v4 is using for the Data Protection API then even if the migration is successfully finished, all transferred licenses will be invalidated after a period of time.

Can we improve this topic?