Subscribe to Windows IT Pro
April 01, 1999 12:00 AM

Software Licensing with License Manager

Windows IT Pro
InstantDoc ID #5046
Rating: (0)

The Master License Server
The master license server maintains the enterprise version of the License Manager database, which includes license information from all NT servers on the network. By default, the Primary Domain Controller (PDC) functions as the master license server in an NT domain. If you don't want the central license repository on the PDC, you can move it to another server on the network.

To designate a different master license server, start License Manager and select the Server Browser tab. Select the domain (if you have more than one), highlight the first NT server, right-click it, select Properties, and click the Replication tab.

As Screen 2 shows, the master server defaults to the domain controller. If you want license data to replicate to a server that isn't a domain controller, select Enterprise Server and enter the server name. You must perform this modification for all NT servers in the domain to ensure they replicate license data to the same system. Otherwise, some machines will replicate to the PDC, and others will replicate to the new master server.

By default, NT servers report license information to the master license server every 24 hours, as Screen 2 shows. You can define the time of day and frequency for NT systems to replicate license information. If you want replication to occur more often (e.g., several times a day) or less often (e.g., once a week), you can modify the replication interval in the Registry. The key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ LicenseService\Parameters\ReplicationTime defines the license-replication interval in seconds. This setting is machine-specific.

License Manager Data Files
When you install NT, the License service creates three files in the system root directory to track license information. %systemroot%\system32\cpl.cfg contains the purchase history. %systemroot%\system32\lls\llsuser.lls contains user-specific connection data. %systemroot%\system32\lls\llsmap.lls contains license group information.

License Manager is a simple tool. After a client connects, License Manager retains the client's license data permanently, even if you rename or remove the client. Suppose you have a workstation called Test. When you log on to the network from Test, License Manager registers a client license for Test in per-seat mode. If you rename the machine to Lab1, License Manager issues another license for Lab1 when you log on again. Thus, you have two client licenses for one system. If the second license is the last per-seat license your network has available for that application or NT server, you'll get a license violation warning the next time you add a system to the network. To prevent this type of scenario, you need to remove old client licenses.

Removing Old Client Licenses
To find license duplicates and out-of-date clients for a particular product, select License Manager's Products View tab and double-click the product (e.g., Windows NT Server). In that application's Properties box, select the Clients tab to see a list of all the clients that have accessed the product, as Screen 3 shows. The easiest way to identify old clients is to sort the Last Date Used column from oldest to newest.

When you recognize a machine you've renamed or removed, double-click the entry to display the products the client has accessed. To remove the client license, select the product and click Revoke. This action removes the entry from llsuser.lls and decreases the client count for that product on the Products View.

Removing Old Applications and Servers
License Manager tracks license-aware applications and servers the same way it tracks clients: It doesn't update the database when you rename applications or servers or when you remove them from the network. Thus, the database can easily get out of sync during a major upgrade. In addition, you introduce problems if you enter bogus purchase records to temporarily solve a connection problem.

If you have thousands of users at your site, employing a manual correction process is cumbersome at best. The easiest way to clear the client and server database is to delete the llsuser.lls data file. In fact, you can reset all or a portion of the license database on one server by deleting the file that contains the incorrect information. To clean up the database, stop the License Logging service. Then, move, rename, or delete the file with the data you need to reenter or rebuild. Finally, restart the service.

You can stop and start the License Logging service in the Services applet of Control Panel or from the command line. To stop the service from the command line, enter

net stop license logging service

To clear the client and server connections that contain references to servers you've renamed or removed, delete llsuser.lls. To clear the purchase history, delete cpl.cfg. To reset license group information, delete llsmap.lls. You can delete one or all of the License Manager data files depending on the cleanup required. After you restart the License Logging service, you can enter the correct purchase history and wait for clients to register as they connect to the network. For more information about removing old applications and servers, see the Microsoft articles "Removing Deleted or Renamed Servers from License Manager," at http://support.microsoft.com/support/kb/articles/q153/1/39.asp, and "How to Reset License Manager Information," at http://support.microsoft.com/support/kb/articles/q153/1/40.asp.

Updating Enterprise Licenses
Updating license information on a network with multiple servers is tedious and time-consuming. You must repeat the process on every system to prevent your updated server from picking up incorrect replicated data from other servers. You can automate the reset with a batch file and three Microsoft Windows NT 4.0 Resource Kit utilities—netdom.exe, netsvc.exe, and reg.exe. Netdom enumerates domain controllers by name Netsvc stops network services and Reg writes data into the Registry.

The Microsoft article "How to Reset License Manager Throughout an Enterprise," at http://support.microsoft.com/support/kb/ articles/q194/0/65.asp, contains sample scripts that enumerate domain controllers, stop the service, delete the appropriate files, start the service, and queue a request for immediate replication with the master license server. To initiate the replication trigger, edit the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ LicenseService\Parameters\ ReplicationTime Registry key. Change the value to 300 seconds (5 minutes). To prevent license replication from occurring every 5 minutes, run the final sample script from the Microsoft article to reset the interval to 86,400 seconds (24 hours).

Getting Your Ducks in a Row
License Manager isn't an enterprise-quality license-management tool. (For information about two more-robust license-management products, see Carlos Bernal, "Express Meter 3.5 and CentaMeter 2.7," May 1997.) However, License Manager is useful if it's the only tool available. Understanding the difference between the per-server and per-seat licensing modes and updating your databases are the first steps toward licensing compliance. Educating employees will further ensure that your organization doesn't receive a hefty license-violation fine

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.