> For the complete documentation index, see [llms.txt](https://documentation.ocsinventory-ng.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.ocsinventory-ng.org/default-inventoried-data/legacy-agent.md).

# Legacy Agent

Inventory data collected from assets running an Agent 2.X.

### Default Template

| Section                                 | Fields reported                                                                                                                                                                                                                                                                    |
| --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **ACCOUNTINFO** (free-form metadata)    | Key name, Key value                                                                                                                                                                                                                                                                |
| **BATTERIES**                           | Chemistry, Cycles, Description, Design capacity, Design voltage, Estimated charge remaining, Manufacturer, Name, Serial number, Status                                                                                                                                             |
| **BIOS**                                | Manufacturer, Model, Serial number, Type, Bios manufacturer, Bios version, Bios date, Asset tag, Motherboard manufacturer, Motherboard model, Motherboard serial number                                                                                                            |
| **CONTROLLERS**                         | Manufacturer, Name, Caption, Description, Version, Type                                                                                                                                                                                                                            |
| **CPUS**                                | Manufacturer, Type, Serial number, Frequency, Cores number, L2 cache size, Architecture, Data width, Current address width, Logical CPUs, Voltage, Current speed, Socket type                                                                                                      |
| **DRIVES** (partitions/volumes)         | Letter, Type, File system, Total (MB), Free (MB), Volume                                                                                                                                                                                                                           |
| **HARDWARE** (machine identity/summary) | Name, Domain, Operating system, OS version, Service pack, CPU type, CPU (MHz), CPU number, Memory, Swap, IP address, DNS, Default gateway, Quality, Fidelity, Connected user, Description, Company, Owner, Windows license, Windows key, User agent, IP source, UUID, Architecture |
| **INPUTS** (keyboard/mouse/readers)     | Type, Manufacturer, Caption, Description, Interface                                                                                                                                                                                                                                |
| **LOCAL\_GROUPS**                       | Group ID, Member, Name                                                                                                                                                                                                                                                             |
| **LOCAL\_USERS**                        | User ID, Group ID, Name, Home, Shell, Login, Member                                                                                                                                                                                                                                |
| **MEMORIES** (RAM modules)              | Caption, Description, Capacity, Purpose, Type, Speed, Slot number, Serial number                                                                                                                                                                                                   |
| **MODEMS**                              | Name, Model, Description, Type                                                                                                                                                                                                                                                     |
| **MONITORS**                            | Manufacturer, Caption, Manufactured on (week/year), Type, Serial number                                                                                                                                                                                                            |
| **NETWORKS** (network interfaces)       | Description, Type, Speed, MTU, MAC address, Status, IP address, Netmask, Gateway, Network number, DHCP IP                                                                                                                                                                          |
| **PORTS**                               | Type, Name, Caption, Description                                                                                                                                                                                                                                                   |
| **PRINTERS**                            | Name, Driver, Port, Description, Server printer sharing, Sharing printer on server, Screen resolution, Comment, Shared, Local/Networks                                                                                                                                             |
| **REPOSITORY** (package repositories)   | Name, Base URL                                                                                                                                                                                                                                                                     |
| **SLOTS** (expansion slots)             | Name, Description, Designation, Purpose, Status                                                                                                                                                                                                                                    |
| **SOFTWARES** (installed software)      | Name, Publisher, Version, Folder, Comments, Filename, Filesize, GUID, Language, Installation date, Data width, Source, From, Architecture                                                                                                                                          |
| **SOUNDS**                              | Manufacturer, Name, Description                                                                                                                                                                                                                                                    |
| **STORAGES** (physical disks)           | Manufacturer, Name, Model, Description, Type, Disk size (MB), Serial number, Firmware                                                                                                                                                                                              |
| **USBDEVICES**                          | Description, Interface, Manufacturer, Serial number, Type                                                                                                                                                                                                                          |
| **VIDEOS** (graphics cards)             | Name, Chipset, Memory (MB), Resolution                                                                                                                                                                                                                                             |
| **VIRTUALMACHINES**                     | Name, Status, Operating system, Type, UUID, Processors, Memory                                                                                                                                                                                                                     |

### Extended Template

{% hint style="info" %}
The extended inventory also contains the sections from the default inventory template.
{% endhint %}

| Section                                                                | Fields reported                                                                                                                                                                                                                                                                                                                                                                                                   |
| ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **ANYDESK** (AnyDesk client presence/config)                           | ADID, Version, Alias                                                                                                                                                                                                                                                                                                                                                                                              |
| **BITLOCKERSTATUS** (disk encryption)                                  | Drive, Volume type, Conversion status, Protection status, Encryption method, Init protect                                                                                                                                                                                                                                                                                                                         |
| **BROWSEREXTENSIONS** (Chrome/Edge/Firefox extensions)                 | User name, Browser name, Extension name, Extension version, Extension ID                                                                                                                                                                                                                                                                                                                                          |
| **DEFAULTWINDOWSAPP** (default system apps)                            | Name, Type                                                                                                                                                                                                                                                                                                                                                                                                        |
| **DRIVERSLIST** (installed drivers)                                    | Class, Description, Name, Provider name, Version, Date, Inf name, Friendly name, Signed, Device ID                                                                                                                                                                                                                                                                                                                |
| **FIREWALLCONFIG** (firewall profiles)                                 | Profile, State, Firewall policy, Local firewall rules, File name, Max file size                                                                                                                                                                                                                                                                                                                                   |
| **FIREWALLRULES**                                                      | Rule ID, Direction, Source, Source port, Destination, Destination port, Action, Protocol, Comment, Other                                                                                                                                                                                                                                                                                                          |
| **OSINSTALL**                                                          | Install date, Build version, Code set, Country code, OS language, Current time zone, Locale                                                                                                                                                                                                                                                                                                                       |
| **POWERSHELLVERSION**                                                  | Version, Major, Minor, Build, Revision                                                                                                                                                                                                                                                                                                                                                                            |
| **SCHEDULEDTASKS**                                                     | Name, Next exec hour, State, Last exec hour, Last result, Creator, Planning, Task to execute, Start in, Comment, Task status, Type, Begin hour/date, End date, Day, Month, Execute as, Del task, Stop task after                                                                                                                                                                                                  |
| **SECURITYCERTIFICATE** (installed certificates)                       | Name, Authority, Date start, Expiration                                                                                                                                                                                                                                                                                                                                                                           |
| **SERVICES** (Windows services)                                        | Name, Display name, State, Description, Start mode, Path name, Start name, Exit code, Service specific exit code                                                                                                                                                                                                                                                                                                  |
| **TEAMVIEWER** (TeamViewer client presence/config)                     | TW ID, Version                                                                                                                                                                                                                                                                                                                                                                                                    |
| **UPTIME**                                                             | Log date, Duration                                                                                                                                                                                                                                                                                                                                                                                                |
| **USERINSTALLEDAPPS** (per-user installed apps, outside admin profile) | User name, App name, Publisher, Version                                                                                                                                                                                                                                                                                                                                                                           |
| **UWPAPPS** (Windows Store apps)                                       | App name, Architecture, Version, Full name, Status, Publisher, Install location                                                                                                                                                                                                                                                                                                                                   |
| **WINSECDETAILS** (Defender/antivirus state)                           | AM engine/product version, AM running mode, AM service enabled/version, Antispyware enabled/signature age/last updated/version, Antivirus enabled/signature age/last updated/version, Behavior monitor enabled, IOAV protection enabled, Is tamper protected, NIS enabled/engine version/signature age/last updated/version, On-access protection enabled, Real-time protection enabled, Tamper protection source |
| **WINSERVERFEATURES** (Windows Server roles/features)                  | Name, Display name, Description, Installed, Sub features                                                                                                                                                                                                                                                                                                                                                          |
| **WINUPDATESCAN** (last update scan)                                   | Title, Last scan date, Last installation date                                                                                                                                                                                                                                                                                                                                                                     |
| **WINUPDATESTATE** (update history)                                    | KB, Title, Date, Operation, Status, Support link, Description                                                                                                                                                                                                                                                                                                                                                     |
| **WINUSERS** (detailed user accounts)                                  | Name, Type, Created, Size, Last logon, Description, User may change password, Password expires, Status, SID, User connection, Number of remote connections, Remote IP                                                                                                                                                                                                                                             |
| **WMIPRODUCTLIST** (products installed via WMI/MSI)                    | Name, Vendor, Version, Install state, Install date, Identifying number, Help link, Install source                                                                                                                                                                                                                                                                                                                 |


---

# 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 dynamically by asking a question.

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

```
GET https://documentation.ocsinventory-ng.org/default-inventoried-data/legacy-agent.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
