Measuring and collecting utilization of SAP license metrics
Available from 9.2.10. Thanks to SAP Metric Data Collector and the installation of ABAP plug-in, you can
automatically measure the license metric utilization of SAP ABAP-based products, and then view the
data on the Resource Utilization report in BigFix Inventory. In this scenario, SAP Metric Data Collector connects to each SAP
system in the landscape and initiates measurements. Then, the tool manages the consolidation of data
and integrates the results with BigFix Inventory.
Before you begin
- You can install SAP Metric Data Collector on any computer, not
necessarily the computer where the BigFix Inventory server
or SAP is installed. However, the computer must meet the following requirements:
- Runs on Windows x86 (64-bit) or Red Hat Linux x86 (64-bit). Linux version requires the unzip executable.
- Has at least 250 MB of free disk space.
- Can connect through RFC to all SAP systems to collect the data required for calculating the license metric utilization.
- You should install the HCL-provided ABAP plug-in only on the central SAP system.
- Ensure that the SAP landscape meets the following criteria:
- Configuration of Clients, Price Lists and User Types in System Measurement dialog, which can be
accessed via
USMM
transaction code (t-code), is up-to-date on all the SAP systems. - A dedicated user account with permissions to run
USMM
transaction exists on each SAP system. - A user account with permissions to run
USMM
transaction and end-to-end functions of License Administration Workbench (LAW) exists on the central SAP system. - License utilization data must be processed with LAW. If you use LAW 2.0, see: Collecting utilization of SAP license metrics.
- Configuration of Clients, Price Lists and User Types in System Measurement dialog, which can be
accessed via
About this task
The SAP ABAP-based products use the licensing model that consists of two types of licenses: software packages and named users. BigFix Inventory uses a native SAP functionality for determining utilization of these license metrics called System Measurement and License Administration Workbench.
SAP Metric Data Collector connects to all SAP systems in the landscape through RFC, automatically initiates measurements, and retrieves the results. Next, SAP Metric Data Collector uses the ABAP plug-in to upload the results onto the central SAP system, and manage automatic user grouping and data consolidation in License Administration Workbench to produce a LAW report. SAP Metric Data Collector gathers the report data, and transfers it to BigFix Inventory. Information about license metric utilization from the report is displayed in BigFix Inventoryon the Resource Utilization report .

Procedure
-
Install SAP Metric Data Collector.
- Log in to the BigFix console.
- In the navigation bar, click .
- In the upper right pane, select Install SAP Metric Data Collector, and click Take Action.
- Select the computer on which you want to install SAP Metric Data Collector, and click OK.
-
Download the 64-bit version of the SAP Java Connector from http://service.sap.com/connectors. Unpack it to the
following directory on the computer where you installed SAP Metric Data Collector:
/var/opt/BESClient/LMT/SAPTOOL/lib/sapjco3
C:\Program Files (x86)\BigFix Enterprise\BES Client\LMT\SAPTOOL\lib\sapjco3
sapjco3.jar, libsapjco3.so
sapjco3.jar, sapjco3.dll
Note: Log in to http://service.sap.com/connectors with your SAP S User ID and password. You must comply with the license terms of the SAP Connectors. -
Install the ABAP plug-in that is delivered with SAP Metric Data Collector on a central SAP system.
-
Define the connection to each SAP system in the landscape by configuring a set of parameters.
Use the template.sapsystem file to create the
<host_name>.sapsystem file with all the required
information for each SAP system in the landscape.
Important: You must not remove the template.sapsystem file from the config directory.
-
To complete the configuration of SAP Metric Data Collector, edit the
saptool_config.properties file that is located in the following
directory:
/var/opt/BESClient/LMT/SAPTOOL/config
C:\Program Files (x86)\BigFix Enterprise\BES Client\LMT\SAPTOOL\config
- Specify the landscape_name parameter and save the file. The landscape name is displayed on the Resource Utilization report in the Instance column.
- Ensure that the value of the skip_measurements parameter is set to false.
- Optional:
To test the connection to SAP and the correctness of data provided in the configuration file,
run the following script with the -testconnection parameter.
To verify whether the connection test was successful, check the return code in the trace.log file that is located in the following directory:
/var/opt/BESClient/LMT/SAPTOOL/saptool.sh -testconnection
C:\Program Files (x86)\BigFix Enterprise\BES Client\LMT\SAPTOOL\saptool.bat -testconnection
/var/opt/BESClient/LMT/SAPTOOL/logs
C:\Program Files (x86)\BigFix Enterprise\BES Client\LMT\SAPTOOL\logs
-
Initiate the measurement and collection of SAP metric data.
- Ensure that the software scans are enabled, and run automatically. If not, run the software scan manually. Select the Resource utilization scan.
- Ensure that the scan results are automatically uploaded. If not, upload the results to the BigFix server manually.
- To make the data available in BigFix Inventory, wait for the scheduled import of data, or run it manually.
Results
- Named users metric
- Other metrics that are related to the software packages license
- If a metric is reported by SAP for a specified period, BigFix Inventory reports this metric for that period.
- If a metric is not reported by SAP for a specified period, BigFix Inventory reports this metric for the period since the previous collection of SAP metric data.
- If a metric is not reported by SAP for a specified period and you collect the SAP metric data for the first time, BigFix Inventory reports this metric for the last 30 days.
