> 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/bigfix.md).

# BigFix

BigFix, formerly IBM BigFix, manages and patches endpoints through the BigFix Root Server. OctoXLabs reads the BigFix computers as devices, with agent version, IP addresses, operating system and optionally installed software and analysis results.

## Use cases

* List computers that report a BigFix agent version.

```
Adapters = bigfix AND AgentVersions = *
```

* List Windows computers that BigFix manages.

```
Adapters = bigfix AND OS.Type = Windows
```

## Before you begin

### Network

| Source              | Destination                                                                          | Port                 | Protocol                         |
| ------------------- | ------------------------------------------------------------------------------------ | -------------------- | -------------------------------- |
| OctoXLabs connector | BigFix Root Server (IP address you enter, REST API served by the WebReports service) | 52311 (configurable) | HTTPS (HTTP if Is Secure is off) |

### Required permissions

| Scope or role           | Permission             | Needed for      |
| ----------------------- | ---------------------- | --------------- |
| BigFix Console operator | Can use REST API = Yes | Authentication  |
| BigFix Console operator | Custom Content = Yes   | REST API access |

## Create credentials in BigFix

{% stepper %}
{% step %}

### Run the WebReports service

The WebReports service must be running. With several Web Reports servers, the REST API uses the first entry in the table `dbo.AGGREGATEDBY` of the `BFEnterprise` database.
{% endstep %}

{% step %}

### Create an operator

Define the user as a [BigFix Console operator](https://help.hcltechsw.com/bigfix/10.0/platform/Platform/Console/c_adding_local_operators.html). Set **Can use REST API** and **Custom Content** to **YES** in the operator definition or in one of its roles.
{% endstep %}

{% step %}

### Prepare HTTPS

To use the REST API over HTTPS, apply the configuration described in "Customizing HTTPS on REST API" in the BigFix documentation.
{% endstep %}

{% step %}

### Mind the FIPS limit

The IEM CLI does not support the BigFix FIPS-compliant cryptography library. Use a different REST API client if you use that library.
{% endstep %}

{% step %}

### Optional: create a software report

To collect installed software, create a report (analysis) in BigFix and enter its name in **BES Property For Installed Softwares**.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                            | Required | Type    | Default | Description                                                                                                                                                              |
| ------------------------------------ | -------- | ------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| IP                                   | Yes      | String  |         | IP address of the BigFix host.                                                                                                                                           |
| Port                                 | No       | Integer | 52311   | REST API port.                                                                                                                                                           |
| Username                             | Yes      | String  |         | Console operator.                                                                                                                                                        |
| Password                             | Yes      | String  |         | Password of the operator.                                                                                                                                                |
| Is Secure                            | No       | Boolean | True    | Use HTTPS.                                                                                                                                                               |
| Use Query Based Version?             | No       | Boolean | False   | Use the `/api/query` endpoint instead of one request per computer.                                                                                                       |
| BES Property For Installed Softwares | No       | String  |         | Name of the BES property or analysis that lists installed software. Used only in query mode.                                                                             |
| BES Analysis Names                   | No       | String  |         | Comma-separated analysis names. Each result is attached to the device under the analysis name. Query mode only. Example: `AND - Bitlocker,AND - Bitlocker - TPM Status`. |
| Fetch DEB Packages                   | No       | Boolean | False   | Add Debian packages to installed software. Query mode only.                                                                                                              |
| Fetch RPM Packages                   | No       | Boolean | False   | Add RPM packages to installed software. Query mode only.                                                                                                                 |
| Fetch Packages Bulk                  | No       | Boolean | False   | Collect DEB and RPM packages with one query per package type instead of one per computer. Faster, but all packages are held in memory. Query mode only.                  |
| Timeout                              | No       | Integer | 90      | Seconds to wait for API responses.                                                                                                                                       |
| Thread Count                         | No       | Integer | 32      | Parallel threads. The baseline gives min 1 and max 32.                                                                                                                   |
| Sleep Time                           | No       | Integer | 0       | Delay in seconds between thread batches. Raise it on rate limit errors.                                                                                                  |

## Troubleshooting

| Error message                               | Cause                                                                                                                                  | Fix                                                                                                  |
| ------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| Computer detail request failed, skipping: - | One computer answered with an error or timed out. It is skipped and the run continues.                                                 | Check that computer in BigFix. The log also shows how many were skipped.                             |
| Error fetching installed softwares:         | The software query was rejected or failed.                                                                                             | Check the name in BES Property For Installed Softwares.                                              |
| Error fetching analysis results for :       | An analysis in BES Analysis Names could not be read.                                                                                   | Check the analysis name.                                                                             |
| 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
