# Computer inventory

Since GLPI 10, the inventory is now native.

Please refer to the documentation for the GLPI agent to upload your PCs, printers, etc. [https://glpi-agent.readthedocs.io/en/latest/installation/](https://glpi-agent.readthedocs.io/en/latest/installation/)

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

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

{% hint style="info" %}
**GLPI Inventory**

For advanced tasks, installation of the GLPI Inventory plugin is required (network discovery and inventory, ESX interrogation, data collection and remote deployment, the GLPI agent is still required). Go to the **marketplace**, and install the GLPI Inventory plugin

\
&#x20;![Alt text](https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2Fgit-blob-bebdcd7a6d61d2ae847303ed728a772ad3cbfa14%2Finventaire_pc-1.png?alt=media)

\
Once the plugin is ready to use, its menu will be in **`Administration`** > **`GLPI Inventory`**
{% endhint %}

## Install Agent

You will need to install the agent to retrieve inventory. You can download it [here](https://github.com/glpi-project/glpi-agent/releases)

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="Alt text"></div>

* The next step will allow you to identify your GLPI server. The URL to enter may vary depending on whether or not you have installed the GLPI Inventory plugin:
  * without the plugin: `https://myinstance.com/front/inventory.php`
  * with the plugin: `https://myinstance.com/marketplace/glpiinventory`

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

{% hint style="success" %}
To know

The URL `https://myinstance.com/front/inventory.php` will also work if the GLPI Inventory plugin is installed, so there's no need to change it if you decide to install it later.
{% endhint %}

* 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="Alt text"></div>

1. **`As a service`**: the task is launched in the background and runs without any user or administrator action\

2. **`As a task`**: a scheduled task is programmed so that the agent is launched every X hours/days\

3. **`Manually`**: the agent will only be launched on request\


* 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="Alt text"></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="Alt text"></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="Alt text"></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:

![Alt text](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)
