> 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-ar-system-mid-tier.md).

# BMC AR System Mid Tier

BMC AR System (Remedy) stores records in forms that the Mid Tier exposes through a REST API. OctoXLabs reads the device form and the user form that you name, and stores their entries as devices and users.

## Use cases

* List devices read from your AR System device form.

```
Adapters = bmc-ar-system-mid-tier
```

* List users read from your AR System user form.

```
Adapters = bmc-ar-system-mid-tier
```

## Before you begin

### Network

| Source              | Destination                                              | Port                | Protocol                                  |
| ------------------- | -------------------------------------------------------- | ------------------- | ----------------------------------------- |
| OctoXLabs connector | BMC AR System Mid Tier server (IP or hostname you enter) | 8008 (configurable) | HTTP by default, HTTPS if Is Secure is on |

### Required permissions

| Scope or role     | Permission                          | Needed for        |
| ----------------- | ----------------------------------- | ----------------- |
| AR System account | Read access to the configured forms | Devices and Users |

## Create credentials in BMC AR System Mid Tier

{% stepper %}
{% step %}

### Find the form names

In the Mid Tier interface open the form. The form name is the last segment of the URL, for example `http://arserver:8008/arsys/forms/arserver/<form name>`.
{% endstep %}

{% step %}

### Pick the unique fields

For each form, choose the field that holds a unique identifier. For devices for example Hostname, Device Name or Name. For users for example Username, Email or Name if it is unique.
{% endstep %}

{% step %}

### Use a read account

Use an AR System account with read access to the forms.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter            | Required                    | Type    | Default | Description                                                                  |
| -------------------- | --------------------------- | ------- | ------- | ---------------------------------------------------------------------------- |
| IP                   | Yes                         | String  |         | IP address or hostname of the Mid Tier.                                      |
| Port                 | No                          | Integer | 8008    | Port of the Mid Tier.                                                        |
| Username             | Yes                         | String  |         | AR System account.                                                           |
| Password             | Yes                         | String  |         | Password of that account.                                                    |
| Device Form Name     | No                          | String  |         | Form with device records, for example `AST:Attributes`. Empty skips devices. |
| Device Primary Field | Required with a device form | String  |         | Field with the unique device identifier.                                     |
| Users Form Name      | No                          | String  |         | Form with user records, for example `CTM:People`. Empty skips users.         |
| Users Primary Field  | Required with a users form  | String  |         | Field with the unique user identifier.                                       |
| Is Secure?           | No                          | Boolean | False   | Use HTTPS.                                                                   |
| Timeout              | No                          | Integer | 30      | Seconds to wait for API responses.                                           |

## Troubleshooting

| Error message                                                             | Cause                                                                                                                                  | Fix                                                                                                  |
| ------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| At least one of device\_form\_name or users\_form\_name must be provided. | Both form names are empty.                                                                                                             | Fill in at least one form name.                                                                      |
| device\_primary\_field is required when device\_form\_name is set.        | A device form has no primary field.                                                                                                    | Fill in Device Primary Field.                                                                        |
| users\_primary\_field is required when users\_form\_name is set.          | A users form has no primary field.                                                                                                     | Fill in Users Primary Field.                                                                         |
| 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

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