How To
Summary
Learn how to integrate the information about license usage of IBM hybrid products that are deployed in non-containerized environment from IBM® License Metric Tool into IBM License Service Reporter. To accomplish this goal, deploy and configure IBM License Reporter Proxy on a machine that can connect to both the IBM License Metric Tool Server and IBM License Service Reporter.
IBM hybrid product (for both IBM Cloud Pak or IBM Certified Container) indicates if the product can be deployed on both traditional VMs and Kubernetes clusters. If both deployment options are possible, cumulative license usage might need to be combined from both IBM License Metric Tool and IBM License Service.
Objective
- (Legacy) ibm-license-advisor-sender-script 1.x - dedicated for IBM License Advisor (EOL), able to process only IBM Cloud Paks. EOL reached.
- (Current) ibm-license-reporter-proxy 4.x - dedicated for IBM License Service Reporter, able to process all IBM hybrid products (both IBM Cloud Paks and IBM Certified Containers).
- with LMT version 9.2.30 and above
License Reporter Proxy handles all IBM hybrid products (IBM Cloud Paks and IBM Certified Containers). - with LMT version lower that 9.2.30
License Reporter Proxy handles IBM Cloud Paks only.
- with LMT version 9.2.30 and above
Environment
Steps
Deploy IBM License Reporter Proxy in one of the following configurations:
- On a machine where the IBM License Metric Tool server is installed and that can connect to IBM License Service Reporter.
- On a machine that can connect to the IBM License Metric Tool server and IBM License Service Reporter APIs.
- An OpenShift role with permissions to get information about Route and Secret.
- An IBM License Metric Tool user who is authorized to get all IBM hybrid products reports.
Minimal required permission that user in IBM License Metric Tool needs to have is View License Metrics. - A system role with permissions to schedule jobs.
- To deploy IBM License Reporter Proxy, make sure that you have Python 3 and pip installed.
- To schedule IBM License Reporter Proxy to run regularly, make sure that cron (for Linux or Mac) or task scheduller (for Windows) are available.
File name | Description |
---|---|
ibm_license_reporter_proxy.py
|
The python script for running IBM License Reporter Proxy on the system.
|
requirements.txt
|
This file carries information about dependencies that need to be resolved and is required for the script.
|
config/config.json
|
The configuration file where you define the IBM License Service Reporter and IBM License Metric Tool server.
|
README.md
|
Readme file. |
RELEASE_VERSION
|
File with release version number. |
1. Unpack the IBM License Reporter Proxy package.
2. Copy files to the machine that can connect to IBM License Metric Tool and IBM License Service Reporter.
3. Open the config directory.
5. Set the service type parameter to lmt-service.
6. Provide the URL for IBM License Service Reporter. To obtain the URL, complete the following steps:
- For an OpenShift cluster:
a. Log in to the OpenShift console and go to Networking>Routes.
b. Set the project to <your-license-service-reporter-namespace>.
- For a Kubernetes cluster without OpenShift:
7. Provide the token to authorize the connection to IBM License Service Reporter. To obtain the token, complete the following steps:
a. Log in to the OpenShift console and go to Workloads>Secrets.
c. Find the ibm-licensing-reporter-token for IBM License Service Reporter 1.x.x or ibm-license-service-reporter-token for IBM License Service Reporter 4.x.x, and click the name.
d. Scroll down to the Data section.
e. Reveal and copy the token value.
Important:The name of the data source is included in the audit snapshot and must be clear for an auditor to identify the cluster.
10. Provide the URL for the IBM License Metric Tool server in the following format: https://<host>:<port>.
b. Hover over the User icon, and click Profile.
c. Click Show token.
13. Run the following command:
- python3 -m pip install -r requirements.txt
-
python3 ibm_license_reporter_proxy.py -c <config_directory_path>
16. Schedule IBM License Reporter Proxy to run regularly.
Document Location
Worldwide
Was this topic helpful?
Document Information
More support for:
IBM Cloud Platform Common Services
Software version:
All Version(s)
Document number:
6333487
Modified date:
21 January 2025
UID
ibm16333487