# Computer inventory

Since GLPI 10, inventory is now native. For advanced tasks, the [GLPI Inventory](https://app.gitbook.com/s/uUCcURk2xlvtpVGbiRZf/plugins-glpi/glpi-inventory) plugin is required (network discovery and inventory, VMware host inventory, data collection and package deployment; the GLPI agent is still required). The plugin is available from the marketplace.

{% hint style="info" %}
**Information**

Inventory escalation is of course compatible with Cloud instances
{% endhint %}

## Install Agent

You will need to install the agent to retrieve inventory.&#x20;

<a href="https://github.com/glpi-project/glpi-agent/releases" class="button secondary">Download GLPI Agent</a>

During installation, you will be asked to complete several steps.

## Setup the agent

* We suggest that you go through the full installation so that you can validate any requirements you may have (certificates, type of installation, etc.).

<div align="left"><img src="https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2Fgit-blob-c89dfd3de301cec992c9d7bf7d94ca876ea7c982%2Finstall_agent-1.png?alt=media" alt="Complete installation of the GLPI agent"></div>

* The next step will allow you to identify your GLPI server.&#x20;
  * &#x20;**`https://my_instance.com/`**

<div align="left"><img src="https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2FMwikPPU4NdwFGm8Lk3PE%2Fagent-glpi-URL.png?alt=media&#x26;token=2eed23ca-9ef3-4ec4-be58-8af44ea3d36e" alt="URL indication"></div>

* You can then choose how the agent runs. 3 modes are possible:

<div align="left"><img src="https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2Fgit-blob-fe0b7a28f7c6ff036e641a9de322ba1aea78164e%2Finstall_agent-3.png?alt=media" alt="Install as a service"></div>

1. **`As a service`**: the task is launched in the background and runs without any user or administrator action<br>
2. **`As a task`**: a scheduled task is programmed so that the agent is launched every X hours/days<br>
3. **`Manually`**: the agent will only be launched on request<br>

* During installation, it is also possible to ask for an inventory to be taken at the end of the operation.
* A monitor agent can be installed. It enables tasks run to be forced by the user. This icon will be visible in the notification bar:

<div align="left"><img src="https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2Fgit-blob-5ad6d391e093eac6accc35513bd21e79e4e5a36d%2Finstall_agent-4.png?alt=media" alt="Open GLPI Agent monitor"></div>

<div align="left"><img src="https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2Fgit-blob-a673d9eccae3e715c99dcaea36332ccc9283111b%2Finstall_agent-5.png?alt=media" alt="Interface GLPI Agent monitor"></div>

The next steps will be up to you (certificate, proxy, etc.).

* You will also be able to identify a tag depending on how your GLPI is set up so that your PCs can be sent to the right entities, locations, etc.

<div align="left"><img src="https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2Fgit-blob-ae67698fb7eecdc3cbe8e31549b7898bd04b68f9%2Finstall_agent-6.png?alt=media" alt="Tag Agent GLPI"></div>

* You can also ask for the user's virtual machines to be inventoried. They will be visible in the **Virtualisation** tab of the PC file:

![Inventory completed](https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2Fgit-blob-2fdd7d0ae805838f4db3fc85d0374fce2ac6f323%2Finstall_agent-7.png?alt=media)

* You can also scan the user profiles to bring up any software found in the **software** tab of your GLPI server.

Once the installation is complete, if an inventory has been requested, it will now appear in the **computers** tab a few minutes after installation.

## References

[Documentation GLPI "Module assets - Computer"](https://glpi-user-documentation.readthedocs.io/fr/latest/modules/assets/computers.html)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.glpi-project.org/tutorials/inventory/computer_inventory.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
