> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/i/ibm-license-metric-tool.md).

# IBM License Metric Tool

IBM License Metric Tool (ILMT) tracks IBM software usage. OctoXLabs reads the computers known to ILMT and, optionally, the IBM software components found on each of them.

## Use cases

* List computers known to IBM License Metric Tool.

```
Adapters = ibm-license-metric-tool
```

* Find computers that have not been seen by ILMT recently.

```
Adapters = ibm-license-metric-tool AND NOT LastSeen last now-30d/d
```

## Before you begin

### Network

| Source              | Destination | Port           | Protocol |
| ------------------- | ----------- | -------------- | -------- |
| OctoXLabs connector | ILMT server | 9081 (default) | HTTPS    |

### Required permissions

| Scope or role               | Permission                | Needed for       |
| --------------------------- | ------------------------- | ---------------- |
| **View Endpoints**          | Read                      | Devices          |
| **View Hardware Inventory** | Read                      | Hardware details |
| Preconfigured Auditor role  | Includes both permissions | Devices          |

## Create credentials in IBM License Metric Tool

{% stepper %}
{% step %}

### Check the version

Use IBM License Metric Tool 9.2.29 or later. The token is sent in the `Token` request header.
{% endstep %}

{% step %}

### Check permissions

The user needs **View Endpoints** and **View Hardware Inventory**. The preconfigured Auditor role has both. Only the computers of the user's computer group are returned.
{% endstep %}

{% step %}

### Show the token

Log in to ILMT, hover over the User icon, click **Profile** and then **Show token**.
{% endstep %}

{% step %}

### Schedule the discovery

IBM advises against bulk REST API calls while a data import or a software scan is running. Schedule the discovery outside those windows.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter      | Required | Type    | Default | Description                                                                                                                |
| -------------- | -------- | ------- | ------- | -------------------------------------------------------------------------------------------------------------------------- |
| IP             | Yes      | Text    | None    | Host name or IP address of the ILMT server.                                                                                |
| Port           | No       | Integer | `9081`  | Port of the web interface and REST API.                                                                                    |
| Is Secure      | No       | Boolean | `true`  | Use HTTPS. Self-signed server certificates are accepted.                                                                   |
| Token          | Yes      | Text    | None    | REST API token of the user.                                                                                                |
| Fetch Software | No       | Boolean | `true`  | Also collect the IBM software components present on each computer. Turn it off on very large estates to shorten discovery. |
| Page Size      | No       | Integer | `10000` | Computers or software instances per page. Lower it if pages time out.                                                      |
| Timeout        | No       | Integer | `120`   | Seconds to wait for API responses.                                                                                         |

## Troubleshooting

| Error message                                                                       | Cause                                                                                        | Fix                                               |
| ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| `IBM License Metric Tool software instances could not be read completely. <reason>` | The software instance listing failed. Logged as a warning and computers are still collected. | Check the permissions or turn Fetch Software off. |

## Change history

{% hint style="info" %}
Available starting from version 6.9.1.
{% endhint %}
