> 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/documentation/use-octoxlabs/inventories/devices.md).

# Devices

Find, filter, tag, merge and export your devices in the Device Inventory, and read everything OctoXLabs knows about one device on its detail page.

The Device Inventory lists every device that your adapters reported, with one record per device. Records for the same machine from different tools are merged, so one row shows which tools see the device, when it was last seen and what operating system it runs. Use it to find a device, to find gaps in your tool coverage, to tag and group devices, and to export device lists.

In the console the page is called **Device Inventory** and its menu entry is **Devices**. This page is titled Asset Inventory in the documentation.

### Where the data comes from

The inventory is built during each discovery from the adapters that report devices. Aggregation merges records in three passes, by hostname, then by MAC address, then by IP address. The result keeps the data of every contributing adapter, and adds fields that describe the whole device, such as `Adapters`, `Hostname`, `FirstSeen` and `LastSeen`. Software, vulnerabilities, open ports and logged-in users reported by the adapters are part of the device record. See Discovery and Aggregation for the merge rules and for how to merge devices that automatic matching misses.

### Open the inventory

In the left menu, choose **Inventories** > **Devices**. The list opens on the latest completed discovery. Use **Discovery Date** to look at an earlier run. The toolbar, the chart strip and the query box work as described in Inventories.

IMAGEHERE: The Device Inventory list with the Actions, Columns and Download menus open.

### Columns

These columns are shown by default. **Hostname** is fixed and cannot be removed. Use **Columns** > **Edit Columns** to add others, including the fields of individual adapters, and **Reset Columns** to return to this set.

| Column           | What it shows                                    |
| ---------------- | ------------------------------------------------ |
| `Adapters`       | The adapters that reported the device, as logos. |
| `Hostname`       | The device name. It opens the detail page.       |
| `Domain`         | The domain of the device.                        |
| `IpAddresses`    | The IP addresses of the device.                  |
| `OS.Type`        | The operating system type, shown as an icon.     |
| `Category`       | The device category.                             |
| `FirstFetchTime` | When OctoXLabs first collected the device.       |
| `LastSeen`       | When any adapter last saw the device.            |
| `Tags`           | Manual and query tags on the device.             |

`FirstFetchTime` is not the same as `FirstSeen`. The first is when OctoXLabs first fetched the device, the second is when an adapter first observed it. Another column worth adding is the severity of the asset profiles that the device matches (`OctoxlabsProfiles.severity`), shown as colored tags.

### Filter and search

Type a query in the search box, build one with **Query Wizard**, or click a value in the list. Clicking a value in one of these columns adds it to the query: `Adapters`, `Domain`, `Tags`, `OS.Type`, `Category`, `IpAddresses`, `Connections`, `OS.Bitness`, `Groups`, `LastSeenAdapter`, `OS.FullOsString`, `Subnets`, `PrivateIps`, `PublicIps` and the profile severity.

```
Category = Server AND OS.Type = Windows AND NOT Adapters = falcon-crowdstrike
```

The field names of the Device Inventory are in the OctoXLabs Query Reference. To keep a query, choose **Save As** next to the search box, and see Create and Save Queries.

### Actions

Tick one or more rows, then open **Actions**. The menu shows only the actions your role may use.

| Action                  | What it does                                                                                                                                                                                                             |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Add Tag**             | Adds a tag to every selected device.                                                                                                                                                                                     |
| **Merge Devices**       | Creates a relation between the selected devices. You need to select at least 2. In the dialog, choose the **Primary Hostname**, add more devices with **Add Hostname**, and optionally write a **Note** with the reason. |
| **Update Custom Field** | Sets one custom field to one value on every selected device. Choose the **Field Name**, then enter the **Value**. The value input is a number, a switch or text, depending on the field type.                            |

Custom fields are defined under Custom Adapter Settings.

{% hint style="warning" %}
A hostname can belong to only one relation. If a selected hostname is already in another relation, the merge is refused and the dialog lists the hostnames and the relation IDs. Click an ID to edit that relation.
{% endhint %}

#### Download

**Download** creates a report from the current query and columns. The report is built in the background, and a message links to the **Reports** page where you pick it up.

| Menu entry                  | Formats        | What it contains                                                                            |
| --------------------------- | -------------- | ------------------------------------------------------------------------------------------- |
| **Query Report**            | CSV, PDF, XLSX | The devices of the current query with the columns you have selected. See Query Report.      |
| **Vulnerability By Device** | CSV, PDF, XLSX | One row per device and CVE, listing what to fix on which host. See Vulnerability By Device. |
| **Device By Adapter**       | CSV, PDF, XLSX | A matrix of devices by adapter, marked Yes or No. See Device By Adapter.                    |

### Pages under Devices

The **Devices** menu entry opens these sub-pages.

| Sub-page                  | What it is for                                                                                                                                                            |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Saved Queries**         | Queries saved for devices, with folders and tags.                                                                                                                         |
| **Agent Based View**      | A card list of devices that shows which of your integrations cover each one. See below.                                                                                   |
| **Tags**                  | The tags used on devices and how many devices carry each.                                                                                                                 |
| **Relations**             | The relations you created with **Merge Devices**. The list shows the **Primary Hostname**, the **Related Hostnames** and the **Note**. You can edit or delete a relation. |
| **Merge Recommendations** | Devices that OctoXLabs suggests merging, listed with their **Hostnames**, **Type** and **Key**. Use **Merge** on a row to review and create the relation.                 |

Automatic merging of recommendations is off by default. You turn it on with **Enable Auto Merge** on the **Merge Recommendation** tab of Advanced Settings.

#### Agent Based View

Agent Based View answers the question "which of my integrations cover this device?". It is available since OctoXLabs 6.7.0.

* Pick a saved query to limit the list to one segment of devices, or leave it empty for all devices.
* Narrow the list with the **OS Type**, **Category** and **Domain** filters, and search by hostname.
* Each device is a card with the hostname and the last seen date. Expand a card, or choose **Expand all**, to also see tags, private and public IP addresses and MAC addresses.
* Each card shows the integrations that report the device, with a last seen date per integration. Open **Sources** to choose and reorder which integrations are shown, and select **Show non configured** to include integrations that have no data for a device. Devices that no configured integration reports are flagged as non configured.
* The last seen date is color coded. Devices seen within the last 24 hours are dark blue, and the color fades to white for devices not seen for over a month.

IMAGEHERE: The Agent Based View with a few expanded device cards and the Sources dialog.

### The device detail page

Click a hostname to open the device. The cards at the top show:

* **Type | Category**, **OS**, **First Fetch Time**, **First Seen** and **Last Seen**.
* **Data Source**: the adapters that report the device, its IP addresses and its MAC addresses with vendors. Select an adapter to jump to its tab.
* **Octoxlabs Security Score**: the score of the device, with the **Asset Profiles** it matches and the **Policy List** that affects it. The score is calculated from the Asset Profiles and Security Policies defined in the product.
* Tags and notes for the device.

Below the cards, choose a view:

| View                | What it shows                                                                                                                                                                                       |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Pretty View**     | The data of the selected adapter tab as readable tables. The **OctoXLabs** tab is the merged record, and the other tabs show what each adapter contributed. Search the tab list to find an adapter. |
| **Raw**             | The same data as JSON.                                                                                                                                                                              |
| **Dependency Map**  | The relations of the device on the Dependency Map.                                                                                                                                                  |
| **OctoAI Insights** | An AI generated risk assessment. Choose **Request OctoAI Insights** to create it. The page warns that OctoAI can make mistakes.                                                                     |

Use the **Discovery Date** selector on the detail page to see the device as it was in an earlier discovery.

{% hint style="info" %}
The Device Explorer lists devices cumulatively and is not tied to one discovery. The inventory on this page always reflects a single discovery.
{% endhint %}

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>User Inventory</strong></td><td>The accounts behind your devices.</td><td></td></tr><tr><td><strong>Create and Save Queries</strong></td><td>Build and keep queries for your devices.</td><td></td></tr><tr><td><strong>Discovery and Aggregation</strong></td><td>How devices are merged and how to merge more.</td><td></td></tr><tr><td><strong>Asset Profiles</strong></td><td>Group devices by query and score them.</td><td></td></tr></tbody></table>
