Software Asset Management Professional takes usage data in through two routes: a REST endpoint that creates or updates software usage records, and the IBM License Metric Tool and BigFix Inventory integration, where transform maps move imported data into ServiceNow tables. This guide covers the endpoint’s requirements and responses, the ILMT version choices, and the default transform maps for each version.
Prerequisites and access for the usage endpoint
The SAM-Software Usage Data Integration API creates and updates records in the Software Usage table, named samp_sw_usage in the database. It requires activation of the Software Asset Management Professional plugin, identified as com.snc.samp. The calling account needs either the sam_admin role or the sam_developer role.
The endpoint is a single POST operation at the createOrUpdate path under the sam_software_usage_integration resource. The request body holds an items array, so one call can carry several software usage records. For the wider concept of how usage is metered, see software usage metering.
Request format and versioning
Two URL forms exist. The versioned form inserts an api_version segment, such as v1 or v2, into the path. The default form leaves that segment out. The api_version value is optional and is supplied when a version other than the latest is wanted. Available versions are listed in the REST API Explorer.
Accept and Content-Type both default to application/json, and application/xml is also supported. The endpoint takes no query parameters and returns no custom response headers.
Required fields by reclamation type
The reclamation_type field is required on each item, and its value determines which columns identify the record.
| reclamation_type | Columns to pass |
|---|---|
| total_usage | configuration_item, last_used_time, month_used, norm_product, year |
| last_used_date | configuration_item, norm_product |
The combination of these fields identifies a unique record. When the lookup finds no matching record, the endpoint creates one. When it finds a match, the endpoint updates that record. Sending the same combination again with new values therefore changes the existing record rather than adding a second one. For the metric definitions that sit behind these usage figures, see license metrics, suites and custom metrics.
A total_usage record can also carry norm_publisher, usage_count and total_usage_time alongside the identifying fields, and the endpoint returns those values in its response.
Reading responses and status codes
The response body contains an items list. Each entry repeats the submitted fields and adds a sysId for the software usage record and a status value. In the first example, a single total_usage record for month 2 of 2020 returns INSERT with a newly generated sysId. In the multi-record example, the first item returns INSERT, and a later item that matches an existing record returns UPDATE with that record’s sysId. The wrapper carries a message field, which reads Ok on success.
Code 200 means the request was processed successfully. Code 401 means the credentials are incorrect or were not passed. Code 404 means the requested item was not found. Code 405 means the method is invalid or the functionality is disabled, so a 405 on a request that otherwise looks correct is worth checking against the plugin state. Code 500 means an unexpected internal error occurred, and the response body carries the detail.
Where the usage data appears: the License Workbench
The License Workbench compares rights consumed with the number of active rights purchased, so teams can buy additional rights before consumption passes the rights owned. It shows a color-coded compliance banner and financial figures on each card. Three tabs organize the view: All Publishers, Publishers Out of Compliance, and Pinned Publishers, the last being a saved list kept for each user. The navigation tree drills from publisher to product, software model and license metric.
Total Spend is the cost of the rights owned. True-up Cost estimates the cost of remediating unlicensed installations, using the lowest number of rights needed multiplied by the average price per right from entitlements. For the entitlement records that supply those rights, see software entitlements. Over-licensed Amount estimates the cost of rights not in use. Potential Savings is the cost saved if removal candidates are reclaimed.
At the license metric level, Rights owned sums the active rights from entitlements that share a metric. Rights used sums the rights consumed during reconciliation, meaning allocated rights plus rights that are not allocated but installed. Rights available is rights owned minus rights used. The reconciliation results break rights into four allocation categories: Allocated in use, Not allocated in use, Allocated not in use, and Not allocated. Allocations needed applies to the Per Named User and Per Named Device metrics.
When Not allocated in use is greater than zero, reconciliation creates Create Allocations and Remove Unallocated Installs options for each qualifying metric, except User CAL and Device CAL. When Allocated not in use is greater than zero, it creates a Remove Allocations option for each qualifying metric. Reconciliation runs as a scheduled job, with a default weekly schedule, and can also be run manually.
Choosing an IBM integration version
IBM has deprecated version 1 of the ILMT and BigFix Inventory integration APIs. Software Asset Management continues to support integrations that already use version 1. For a first-time setup, version 2 is the version to use.
Activating the Software Asset Management Professional for IBM (com.sn_samp_ibm) plugin produces an IBM Server connection alias. The property Connect to ILMT using (sn_samp_ibm_lic.ilmt_api_version) selects the API version, v1 or v2. A successful connection retrieves usage data for the aggregated period defined in ILMT or BigFix Inventory.
The versions carry different requirements. Version 1 needs ILMT 9.2.7 or later. Version 2 needs ILMT 9.2.24 or later and the IBM License Compliance for Software Asset Management application, requested and installed from the ServiceNow Store. Under ILMT 9.2.23 or earlier, usage can be imported against discovered IBM products, but not against the hosts that run them.
Version 1 retrieves historical installation data, including products, components, editions, hosts, virtual machines and license usage. Version 2 focuses on peak usage: peak full-capacity and sub-capacity PVU, RVU and VPC usage for IBM products within an aggregated period of up to 90 days, peak usage by physical host or virtual machine, and the list of hosts and virtual machines that run each product.
Both versions need ILMT or BigFix Inventory installed and running on physical hosts or virtual machines. Serial numbers, names and IP addresses must be configured correctly, because they are used to create matching configuration item records in the CMDB.
Default transform maps for version 1 imports
Version 1 uses three default transform maps. For the general mechanics of a transform map, see the transform map explainer.
ILMT Computer Identity V1 moves identity data into Computer [cmdb_ci_computer]. It uses the CMDB Identification and Reconciliation engine (IRE) API to create a configuration item for each host and virtual machine. When a virtual machine shares a hardware serial number with its host, the configuration item is created for the host, and the virtual machine does not get its own record. Field maps cover IP address, DNS domain, CPU count, host name, CPU name, CPU core count, CPU type and serial number. A script sets the discovery source, either ILMT or BigFix Inventory, and the virtual flag. Serial numbers that contain periods are not supported. For the reconciliation engine behind those host records, see the identification and reconciliation engine.
ILMT Software Instance writes installation data for each IBM software component and product into IBM Peak Consumption [samp_ilmt_sw_install]. Components are independent units installed on a virtual machine, while products are packaged units that are licensed as a whole. The map treats products as installations, so usage can be tracked against each product. It runs at the end of the import.
ILMT Software License Usage takes license usage from License Consumption [imp_samp_ilmt_license_usage] and updates matching IBM Peak Consumption records. If no match exists, it creates one with the version set to Not reported. License usage is reported against physical hosts, because IBM products are licensed on physical host usage rather than virtual machine usage. It runs at the start of the import.
Default transform map for version 2 imports
Version 2 uses one default transform map, ILMT Software License Usage, which runs at the start of an import. Data arrives first in two staging tables. For the staging concept itself, see import sets explained. ILMT Product Usage Staging holds data reported against discovered IBM products. ILMT Device Usage Staging holds data reported against the hosts running those products. Device staging requires ILMT 9.2.24 or later and is not available with BigFix Inventory.
After mapping, the data updates three target tables: ILMT Product Usage [ilmt_v2_product_usage], ILMT Product Usage Per Server [ilmt_v2_usage_per_server] and ILMT Discovered Computer [ilmt_discovered_computer]. Those records are then used to reconcile IBM products and verify compliance. The Yokohama release carries the same default transform map and table mappings as Brazil.
Other integration routes
Common third-party integrations involve CMDB, Incident Management, Problem Management, Change Management, User Administration and Single Sign-on. Techniques include Web Services, JDBC, LDAP, Excel, CSV and email, along with SOAP, REST and WSDL standards. A MID Server handles API and command-line integrations. For the wider picture of how these routes fit together for this product, see the integration patterns overview.
Import sets load data from HTTPS, FTPS and SCP sources in XML, CSV or Excel XLS formats. Mapped web services use a transform map to gather incoming data into target tables, which is the same mechanism the IBM maps use. Integration sessions have a configurable lifetime, and domain separation can divide data, processes and administrative tasks into logical groupings.
Frequently asked questions
What role does the usage endpoint require?
The calling account needs either the sam_admin role or the sam_developer role.
Which fields identify a software usage record?
The combination of fields listed for the chosen reclamation_type identifies the record. For total_usage, that combination includes configuration_item, last_used_time, month_used, norm_product and year.
What happens when a usage record already exists?
The endpoint updates the existing record rather than creating a second one, and the response shows the status as UPDATE.
Which IBM integration version should a new setup use?
Version 2. IBM has deprecated version 1, although version 1 integrations remain supported for existing setups.
Why might device-level IBM data be missing?
Device usage staging requires ILMT 9.2.24 or later. It cannot receive data from ILMT 9.2.23 or earlier, and it does not receive data from BigFix Inventory.