> 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/b/bmc-helix-cmdb.md).

# BMC Helix CMDB

BMC Helix CMDB stores configuration items (CIs) in a Common Data Model. OctoXLabs reads the instances of one CI class, by default BMC\_ComputerSystem in the BMC.ASSET dataset, as devices.

## Use cases

* List CIs of the configured class that have a MAC address.

```
Adapters = bmc-helix-cmdb AND MacAddresses = *
```

* List CIs that have an IP address.

```
Adapters = bmc-helix-cmdb AND IpAddresses = *
```

## Before you begin

### Network

| Source              | Destination                                                        | Port                                                                | Protocol                         |
| ------------------- | ------------------------------------------------------------------ | ------------------------------------------------------------------- | -------------------------------- |
| OctoXLabs connector | AR System / Mid Tier host or Helix SaaS tenant FQDN (IP you enter) | 8443 on-prem HTTPS, 443 Helix SaaS, 8008 legacy HTTP (configurable) | HTTPS (HTTP if Is Secure is off) |

### Required permissions

| Scope or role                                  | Permission                                                                                 | Needed for |
| ---------------------------------------------- | ------------------------------------------------------------------------------------------ | ---------- |
| AR System service account with REST API access | Read on the CMDB class (default `BMC_ComputerSystem`) in the dataset (default `BMC.ASSET`) | Devices    |

## Create credentials in BMC Helix CMDB

{% stepper %}
{% step %}

### Pick a service account

Use an AR System service account with REST API access enabled.
{% endstep %}

{% step %}

### Grant read access

Give it read permission on the CMDB CI class you collect, under the dataset you set. The connector logs in at `/api/jwt/login` and uses the JWT for all later requests.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter         | Required | Type    | Default             | Description                                                                                                                    |
| ----------------- | -------- | ------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| IP                | Yes      | String  |                     | IP or host name of the server. On-prem: the AR System or Mid Tier host. SaaS: the tenant FQDN, for example `tenant.onbmc.com`. |
| Port              | No       | Integer | 8443                | Common values: 8443 HTTPS on-prem, 443 Helix SaaS, 8008 legacy HTTP.                                                           |
| Username          | Yes      | String  |                     | AR System service account.                                                                                                     |
| Password          | Yes      | String  |                     | Password of that account.                                                                                                      |
| Dataset Id        | No       | String  | BMC.ASSET           | CMDB dataset to query. Override for a custom dataset such as `BMC.SANDBOX`.                                                    |
| Namespace         | No       | String  | BMC.CORE            | CDM namespace that holds the class. Override for a custom namespace such as `BMC.CUSTOM`.                                      |
| Device Class Name | No       | String  | BMC\_ComputerSystem | CI class to read as devices, for example `BMC_Laptop` or a custom subclass.                                                    |
| Is Secure?        | No       | Boolean | True                | Use HTTPS. Turn off only for legacy HTTP installs.                                                                             |
| Timeout           | No       | Integer | 30                  | Seconds to wait for API responses.                                                                                             |

## Troubleshooting

| Error message                | Cause                                                                                                                                  | Fix                                                                                                  |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| Max retries exceeded for     | The API kept answering 401 or 429.                                                                                                     | Check the account and run the discovery again.                                                       |
| Status Code: `, URL, Method` | The API answered with an unexpected HTTP status. The shared request code raises it and logs the status, URL, method and response body. | Check the URL, the credentials and the permissions listed above, then run the connection test again. |

## Change history
