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

# BMC TrueSight Server Automation

BMC TrueSight Server Automation manages servers through agents. OctoXLabs reads the managed servers and treats all of them as servers.

## Use cases

* List managed servers with their agent version.

```
Adapters = bmc-truesight-server-automation AND AgentVersions = *
```

* List managed Linux servers.

```
Adapters = bmc-truesight-server-automation AND OS.Type = Linux
```

## Before you begin

### Network

| Source              | Destination                                                  | Port                | Protocol                         |
| ------------------- | ------------------------------------------------------------ | ------------------- | -------------------------------- |
| OctoXLabs connector | TrueSight Server Automation host (IP or host name you enter) | 9843 (configurable) | HTTPS (HTTP if Is Secure is off) |

### Required permissions

| Scope or role | Permission              | Needed for |
| ------------- | ----------------------- | ---------- |
| BLAdmins role | Log in and list servers | Devices    |

## Create credentials in BMC TrueSight Server Automation

{% stepper %}
{% step %}

### Pick a user

Use a user that has the **BLAdmins** role. The adapter logs in with that role name.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter    | Required | Type    | Default | Description                              |
| ------------ | -------- | ------- | ------- | ---------------------------------------- |
| IP or Domain | Yes      | String  |         | IP address or host name of the host.     |
| Port         | No       | Integer | 9843    | Port of the REST API.                    |
| Username     | Yes      | String  |         | User with the BLAdmins role.             |
| Password     | Yes      | String  |         | Password of that user.                   |
| Is Secure    | No       | Boolean | True    | Use HTTPS.                               |
| Timeout      | No       | Integer | 30      | Seconds to wait for API responses.       |
| Thread Count | No       | Integer | 32      | Parallel threads. Min 1, max 32.         |
| Sleep Time   | No       | Integer | 0       | Delay in seconds between thread batches. |

## Troubleshooting

| Error message                                     | Cause                                                                                                                                  | Fix                                                                                                  |
| ------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| BMC TrueSight page request failed, skipping page: | One page of servers could not be read. The page is skipped.                                                                            | Check the connection 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 5.0.0.
{% endhint %}
