Microsoft Systems Management Server 2.0 Training Kit

[Previous] [Next]
After this lesson, you will be able to: Estimated Completion Time: 60 minutes

Several components and at least one site system must be configured and installed from the SMS Administrator console. The following list summarizes the configuration tasks completed to support software metering:

NOTE


Installation of the software metering database was completed in Chapter 2.

Assigning the Software Metering Server Site System Role

The primary site server can also serve the role of software metering server. If it does, it runs the SMS License Service and the SMS Executive threads that support site server software metering functions. For medium to large SMS sites, it is wise to move this site system role to one or more Windows NT/2000 Server computers. Only Windows NT/2000 Servers can serve this site system role. A separate site server, multiple license servers, and a separate database server can be used to support the software metering function in each site.

The software metering role is configured by creating a new Windows NT/2000 Server site system. Or select the properties of an existing Windows NT/2000 Server site system from the details pane of the Site Settings node (as shown in steps 1 and 2 of Figure 5-2). Then from the Software Metering Server tab (step 3), select the 'Use this site system as a software metering server' checkbox (step 4).

Figure 5-2. Assigning the software metering site system role.

The 'Database location' field under the Software Metering Server tab does not specify the location of the software metering database. Instead, this field is used by the software metering server for the software metering data cache. The software metering data cache is an inbox for data from client computers that is located on the site server. The default location of the data cache is C:\SWMTR.

The SMS License Service uses a Windows NT/2000 domain user account to run license service tasks on the software metering server and to communicate with other software metering components. This account is automatically created and then granted administrator privileges and the 'Logon as a service' advanced user right by the License Server Manager thread of the SMS Executive. The default account specified in the SMS Administrator console is SWMAccount.

IMPORTANT


The SWMAccount is created and verified as part of Exercise 30.

Configuring the Software Metering Component

After enabling a site system to serve the role of software metering server, the administrator specifies global settings for software metering behavior from the Component Configuration node's Software Metering object. Four tabs in the Software Metering Properties dialog box configure the following features:

The General Tab

There are two possible product version policies: full registration and partial registration (Figure 5-3). Most programs are identified with a version number. If you choose the 'Full' radio button under 'Product version policy,' only software with an exact version number is managed. For example, if you specify version 2.0, as you register a product to be licensed, then only instances of version 2.0 are managed. Versions of the same software that are numbered 2.0a, 2.1, 2.01, and so on, are not managed.

When the 'Partial' radio button is selected, anything that matches the major version number (the number on the left side of the period) is managed. For example, if you specify 2.0, then anything with a version number of 2.0, 2.11, 2.3a and so on is managed as part of this license.

NOTE


The partial option acts as an automatic version wildcard so that 2.0 becomes 2.*.

The Software Metering Client Agent is instructed to identify programs by one of two methods, standard or original. The Standard method uses the file name to identify a program. For example WINWORD.EXE is identified as Microsoft Word. The Original method uses the program name stored in the program file's header. When the 'Original' radio button is chosen, it becomes more difficult for a user to avoid a license by renaming the executable file. However, the application will take slightly longer to start, since the Software Metering Client Agent must work harder to identify the program.

Figure 5-3. The General tab of the software metering properties dialog box.

The Local and Intersite Tabs

At regular intervals, the software metering services and threads communicate new data and configuration settings between the site server, software metering servers, and sites in an SMS hierarchy. The administrator schedules these communications between software metering components using the Local tab (Figure 5-4) and the Intersite tab (Figure 5-5).

Figure 5-4. The Local tab of the software metering properties dialog box.

The following intrasite communications are configured from the Local tab:

License balancing between sites is enabled and configured from the Intersite tab (Figure 5-5). The intersite license balancing schedule determines how often license metering servers in a multi-site hierarchy should balance licenses between sites. Licenses may be balanced from a parent site to all of its child sites or between a child site and its parent site. A child site only balances licenses for software that has been registered using the Software Metering application on the parent site. The 'Receipt time period' value sets a limit on how long it takes to receive intersite license confirmation. If the receipt time expires before a license confirmation is acknowledged by a child site server, the license is added back to the parent site's license pool.

Figure 5-5. The Intersite tab of the software metering properties dialog box.

Data Summarization

Usage data is collected for every tracked program each time it runs on client computers in the site. This frequent collection can rapidly produce an abundance of software metering data. In order to write this data from the data cache to the software metering database, it is necessary to summarize the raw data on a regular basis. A summary usage record for each program is created through the Data Summarization tab, shown in Figure 5-6.

Figure 5-6. The Data Summarization tab of the software metering properties dialog box.

For example, if ten client computers run Visual Studio five times a day for five days, there will be 250 records reporting the usage of the Visual Studio application (10 client computers x 5 times/day x 5 days = 250 records). This data can be summarized into one record per program for a selected time period. For example, you can have one record summarize the entire week of program activity.

Data is summarized by specifying summarization rules. Summarization rules are based on two factors: the age of data that triggers the creation of a summary report, and the level of data granularity that defines the contents of a summary record (Figure 5-6). If the administrator sets a data age of one week, any data over one week old is summarized. If report granularity is set to a day, one record per day is saved for each program. The combined effect of setting the age to one week and the granularity to one day is that only raw records up to one week old will be stored, and anything older than a week will be stored, as one record per day per program.

Multiple summarization rules can be configured for licensed and unlicensed software. For example, one schedule can specify how to summarize data older than one week, while another schedule can specify how to summarize data older than one month. Summarization rules are set separately for licensed programs and unlicensed programs, as shown in Figure 5-6.

Exercise 30: Configuring the Software Metering Site System

In this exercise, you will configure the software metering schedule settings for the site. Then you will configure your site server as a software metering server.

  1. Click the Start button, then point to Programs.
  2. A menu of choices appears.

  3. Point to Systems Management Server, then click SMS Administrator console.
  4. The sms (Systems Management Server) MMC appears.

  5. In the SMS console tree, select the Site Settings node, then select the Component Configuration node.
  6. The details pane shows the component configuration items.

  7. In the details pane, select Software Metering. Then from the Action menu, select Properties.
  8. The Software Metering Properties dialog box displays general settings for the software metering component.

  9. Under the Program name policy section, select Original. Use the program name stored in the header information of the program's 'executable file' radio button, then select the Local tab.
  10. The Software Metering Properties dialog box displays Local settings for the software metering component.

  11. Under the License balancing section, click Schedule.
  12. The Schedule dialog box appears.

  13. Verify that the current date and time is configured.
  14. Under the Recurrence pattern section, verify that the 'Interval' radio button is selected, and then set the 'Recur every' setting to 15 minutes.
  15. Click OK.
  16. The Software Metering Properties dialog box displays Local settings for the software metering component.

  17. Under the Site management section, click Schedule.
  18. The Schedule dialog box appears.

  19. Verify that the current date and time is configured.
  20. Under the Recurrence pattern section, verify that the 'Interval' radio button is selected. Then set 'Recur every' to 15 minutes.
  21. Click OK.
  22. The Software Metering Properties dialog box displays Local settings for the software metering component.

  23. Under the Data collation section, click Schedule.
  24. The Schedule dialog box appears.

  25. Verify that the current date and time is configured.
  26. Under the Recurrence pattern section, verify that the 'Interval' radio button is selected. Then set 'Recur every' to 15 minutes.
  27. Click OK.
  28. The Software Metering Properties dialog box displays Local settings for the software metering component.

  29. Click the Data Summarization tab.
  30. The Software Metering Properties dialog box displays Data Summarization settings for the software metering component. Select the 'Schedule data summarization' checkbox.

  31. Click Schedule.
  32. The Schedule dialog box appears.

  33. Verify that the current date and time is configured.
  34. Under the Recurrence pattern section, verify that the 'Interval' radio button is selected. Then set 'Recur every' to 15 minutes.
  35. Click OK.
  36. The Software Metering Properties dialog box displays Data Summarization settings for the software metering component.

  37. Click the yellow star button.
  38. An untitled dialog box displays a General tab with Summarization Rule settings.

  39. Verify that the 'Licensed product use' radio button is selected and change the 'Age' value to 1 day and the 'Granularity' value to 1 hour.
  40. Click OK.
  41. The Software Metering Properties dialog box displays Data Summarization settings for the software metering component. Notice that rules are configured for Licensed data.

  42. Click the yellow star button again.
  43. Verify that the 'Unlicensed product use' radio button is selected. Change the 'Age' value to 1 day and the 'Granularity' value to 1 hour.
  44. Click OK.
  45. The Software Metering Properties dialog box displays Data Summarization settings for the software metering component. Notice that rules are configured for both Licensed and Unlicensed data.

  46. Click OK.
  47. The SMS Administrator console appears.

The Software Metering component global settings are now configured. In the following steps, you will configure the site server to be a software metering server.

  1. In the SMS console tree, click the Site Systems node.
  2. The \\SERVER1 site system appears in the details pane.

  3. In the details pane, select \\SERVER1. Then from the Action menu, choose Properties.
  4. The \\SERVER1 Site System Properties dialog box appears.

  5. Click the Software Metering Server tab.
  6. Select the 'Use this site system as a software metering server' checkbox.
  7. In the Database location box, type d:\swmeter, then click OK.

NOTE


C:\swmtr is the default file location and name.

    The SMS Administrator console appears.

    The site server is now configured as a software metering server.

  1. Verify that the site server is operating as a software metering server by checking for the creation of the D:\SWMETER directory, the creation of the SWMAccount user account, and that the SMS_LICENSE_SERVER service has started.

TIP


This process can take 30 minutes or longer. Continue your studies and return to this step if necessary.

Installing and Configuring the Software Metering Client Agent

This client agent is enabled from the properties of the Software Metering Client Agent contained in the Client Agents node (label 4 in Figure 5-7). The configuration of this client agent determines whether offline or online software metering is used in the site, when the client agent communicates with the software metering servers, and the contents of the message text that appears on the client computer for common software metering events.

Figure 5-7. The General tab of the Software Metering Client Agent Properties dialog box.

The General tab of the Software Metering Client Agent Properties dialog box (labeled 3 in Figure 5-7) is used to configure the following client settings:

Client Agent Timing

The Timings tab of the Software Client Agent Properties dialog box specifies how often the client agent communicates with the software metering servers if real-time verification is supported (Figure 5-8).

Figure 5-8. The Timings tab of the Software Metering Client Agent Properties dialog box.

The 'Configuration polling interval' setting regulates how often the client agent checks for information on excluded programs and software metering client configuration parameters set from the SMS Administrator console.

The client agent must continually update a software metering server on the status of any metered software that is running. To accomplish this task, the client agent continually acknowledges the use of metered software, the software metering server regularly polls the client agent for running software, and the software metering server gives the client agent a configurable grace period before application running status must be reported. The timing of these three activities is configured from the 'Client time-out' settings (labeled 1 in Figure 5-8).

If a software license is not available, 'Callback' settings (Figure 5-8) direct how callbacks are managed. If a user attempts to run an application that is out of licenses, a callback can be requested when a license becomes available. The 'Callback request duration' setting specifies how long the user waits to receive a callback. By default, the wait is 30 minutes. After that, the callback request is removed and the user must retry the application. The 'Granted callback grace period' setting specifies how long the server will wait for a user to accept a callback before returning the license for use elsewhere. The 'Callback polling interval' setting specifies how often the client agent looks for a granted callback. This should be set to less than the 'Granted callback grace period.'

User Messages

There are three user messages that may be modified to inform the user of license status. They are:

Exercise 31: Implementing the Software Metering Client Agent

In the following exercise, you will configure the Software Metering Client Agent for the Windows NT client computer.

  1. In the SMS console tree, select the Client Agents node.
  2. The list of client agents appears in the details pane.

  3. In the details pane, click the Software Metering Client Agent. Then from the Action menu, choose Properties.
  4. The Software Metering Client Agent Properties dialog box displays general settings for the Software Metering Client Agent.

  5. Select the 'Enable software metering on clients' and the 'Force real-time license verification' checkboxes.
  6. Select the Timings tab.
  7. The Software Metering Client Agent Properties dialog box displays timing settings for the Software Metering Client Agent.

  8. In the 'Configuration polling interval' box, type 1.
  9. In the 'Callback polling interval' box, type 1 and then click OK.
  10. Verify that the D:\CAP_S01\CLICOMP.BOX\LICMTR.CFG file is updated to the current time. This update will include adding the site server as a license server to the client configuration. Once this process is complete, continue to the next step.

NOTE


This may take 15 minutes or more to complete on a busy test system.

In this part of the exercise, you will install the Software Metering Client Agent on Computer 2. Complete this exercise from the Windows NT Workstation client computer only.

  1. Log on as User1 with a password of PASSWORD.
  2. In Control Panel, double-click the Systems Management icon.
  3. The Systems Management Properties dialog box appears.

  4. Click the Sites tab.
  5. The Systems Management Properties dialog box displays the sites of which the client computer is a member. Only one site should be listed.

  6. Click Update Configuration, then click OK.
  7. This starts the site update process, and the Software Metering Client Agent will be installed.

  8. View the contents of the systemroot\MS\SMS\CLICOMP directory.
  9. What directory was added as a result of installing the Software Metering Client Agent?

    Answer

  10. Start Regedt32.exe and then open HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\SMS\CLIENT\SITES\SYSTEM\S01\CLIENT COMPONENTS\LICENSE METERING.
  11. The list of parameters for the software metering component appears for the local site.

  12. Verify that the License Server's value name lists your software metering server. If not, the configuration update is not complete.
  13. Wait until the site server has been added as a license server for your client computer. If this does not happen after a few minutes, restart Computer 2.

Категории