Software Metering is a feature in Configuration Manager that allows you to monitor and collect software usage data from Configuration Manager 2007 clients. Check the following technet document for more about Software Metering: http://technet.microsoft.com/en-us/library/bb694169.aspx. In this article we will show you how to use Software Metering Step by Step.
Step 1. Create Metering Rules on Server
Software Metering & Software Inventory are two features that can run separately. Back end, the two features share some same Database tables, so Software Metering reports are able to leverage the file information inventoried by Software Inventory. Software Metering can also automatically generate *disabled* metering rules from the Software Inventory results. You can configure whether it should generate and how it generate these disabled rules by Software Metering -> Right click, Properties.
To Create Metering Rules, you can either enable the auto-generated rules or create your own ones.
Step 2. Collect Metering Data from Client
Metering is always working on client. It meters all programs running on the client. However it will only generate report for Enabled metering rules. That is, the metered files/products. After you create the metering rules on site server, clients will receive them through Policy Retrieval Cycle. All the metered data are save in WMI Classes: Root\ccm\SoftwareMeteringAgent. You can check it by running WMI Query or use PolicySpy.
Client will report metering results on a scheduled basis (The schedule can be configured by Site Settings -> Client Agent -> Software Metering Agent -> Schedule Tab) or when you initial the “Software Metering Usage Report Cycle” from the control panel -> Configuration Manager client applet. After usage report cycle is triggered, you can check log SWMTRReportGen.log to see whether there’re data reported:
Step 3. Metering Data processed on Site Server.
After client has sent report, you can go to the site server and check log swmproc.log, it will show how many records have been added:
However there records are discrete and cannot be used in reporting or be sent to parent site. The site need to summarize them first. There’re two tasks “Summarize Software Metering File Usage Data” & “Summarize Software Metering Monthly Usage Data” will do the summarize work. You can set the schedule of these two tasks from Site Settings -> Site Maintenance -> Tasks. You can use the utility tool runmetersumm.exe to generate the summarize data. Only after the summarize data is generated, you can have data in Software Metering related reports.
Note: runmetersumm.exe must be run on the SQL Server machine and it must been run under the SMS\bin\i386 folder. If you are using a remote SQL Server, you can copy the runmetersumm.exe to the site server SMS\bin\i386 folder and run \\<site server>\..\SMS\bin\i386\runmetersumm.exe <parameters> on the SQL Server.
Step 4. Software Metering Data replication among sites
And on a scheduled basis (once every hour), Metering Process will get all the unprocessed summarized data and export them into file and send to parent. You can trigger it by restart the Software Metering Processor.
You will see the following in swmproc.log on the child site server:
And correspondingly, you’ll see followings in swmproc.log on the parent site server: