> 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-truesight-network-automation.md).

# BMC TrueSight Network Automation

BMC TrueSight Network Automation manages network device configuration. OctoXLabs reads the device list through REST API v4.0.

## Use cases

* List network devices with their model.

```
Adapters = bmc-truesight-network-automation AND DeviceModel = *
```

* List devices with a known OS image.

```
Adapters = bmc-truesight-network-automation AND OS.FullOsString = *
```

## Before you begin

### Network

| Source              | Destination                                                    | Port               | Protocol                         |
| ------------------- | -------------------------------------------------------------- | ------------------ | -------------------------------- |
| OctoXLabs connector | TrueSight Network Automation application server (IP you enter) | 443 (configurable) | HTTPS (HTTP if Is Secure is off) |

### Required permissions

| Scope or role                             | Permission   | Needed for |
| ----------------------------------------- | ------------ | ---------- |
| User allowed to log in using web services | View devices | Devices    |

## Create credentials in BMC TrueSight Network Automation

{% stepper %}
{% step %}

### Pick a user

Use a TrueSight Network Automation user that is allowed to log in using web services and can view devices.
{% endstep %}

{% step %}

### Check the realm

Devices are visible according to the realm rights of the user.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default | Description                                |
| --------- | -------- | ------- | ------- | ------------------------------------------ |
| IP        | Yes      | String  |         | IP or host name of the application server. |
| Port      | No       | Integer | 443     | Port of the web interface.                 |
| Is Secure | No       | Boolean | True    | Use HTTPS.                                 |
| Username  | Yes      | String  |         | User with the rights above.                |
| Password  | Yes      | String  |         | Password of that user.                     |
| Proxy     | No       | String  |         | Proxy URL.                                 |
| Timeout   | No       | Integer | 30      | Seconds to wait for API responses.         |

## Troubleshooting

| Error message                       | Cause                                                                                                                                  | Fix                                                                                                  |
| ----------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| No access\_token in the response of | The token endpoint answered without a token.                                                                                           | Check the user, the password and the web services right.                                             |
| Authentication failed for           | The token was refused twice with 401.                                                                                                  | Check the user and its rights.                                                                       |
| Expected a device list from , got   | The devices endpoint returned something else than a list.                                                                              | Check the host, port and proxy.                                                                      |
| 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.9.1.
{% endhint %}
