> For the complete documentation index, see [llms.txt](https://help.glpi-project.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.glpi-project.org/inventory/collect_data.md).

# Collect Data

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

The GLPI Inventory plugin is available in the menu **`Administration`** > **`GLPI Inventory`**\
If it is not installed, please go to the **marketplace**, and install the GLPI Inventory plugin

\
![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)
{% endhint %}

## Declaration of a data to be queried

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

In the following example, we are going to check that the user has the thunderbird icon on his desktop (which in this case is a portable application).
{% endhint %}

Go to the **`administration`** > **`GLPI Inventory`** > **`tasks`** > **`computer information`**

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

Then create a new item **`ajouter`** :

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

The next window will allow you to enter the following information:

* A name
* A comment
* A type
  * Registry
  * [WMI](broken://spaces/QFOh36etagWOcP9q4ECb/pages/uyV7vc1BgpEAKyDInQFN#comment-configurer-la-collecte-wmi)
  * Search for a file
* Active or not
* Visible in a sub-entity or not

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

Once you've clicked on **`Add`**, a **`Collect configuration`** tab appears in the left-hand menu, allowing you to configure data collection for one of the following three options, depending on the chosen type:

* WMI Windows
* File search
* Windows registry

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

## Creating the task

Go to **`administration`** > **`GLPI Inventory`** > **`tasks`** > **`task management`**

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

Then create a new task with **`ajouter`** :

![](https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2Fgit-blob-912ab7d869fe7127b9431aeffdc801105acb0a71%2Fcollect-6.png?alt=media)

Create the task :

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

Then in **`Job configuration`**, add a job:

![](https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2Fgit-blob-5575d294ca6345ce411c79725ef83c17bcbf2979%2Fcollect-8.png?alt=media)

And configure the collect job in this task:

![](https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2Fgit-blob-039b39ab27decf2dfc48580ae3fc5377b2cb0f3d%2Fcollect-9.png?alt=media)

Once the job has been activated, prepared and taken over by the agent, you can see the result of the job execution here:

![](https://2961961068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsGALtnzA2IROeldmXKt5%2Fuploads%2Fgit-blob-27d06bbcf41515bd05f10c17d53f7c75b4215eb4%2Fcollect-10.png?alt=media)

In the computer file, a new tab **`Collection information`** appears with the value found for the file:

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

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.glpi-project.org/inventory/collect_data.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
