For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Agent overview

The OCS Inventory Agent is the client component that collects inventory data from devices and sends it to the OCS Inventory server (or writes it locally, depending on configuration).

The agent performs three main tasks:

  • Collects device information (basic information, see Base Inventory, but also extended information through Template inventory).

  • Formats results into an inventory payload.

  • Sends the payload to the server or writes it to a local file, depending on configuration.

Requirements and compatibility

For agent compatibility, please refer to Agent.

Workflow

1

Install the agent on the target device.

2

Run it either:

  • as a service on a schedule

  • as a one-time command

3

On each run, the agent gathers device inventory and optional template data.

4

Then it either:

  • syncs configuration with the server and uploads inventory

  • writes an inventory file locally for offline workflows

5

If deployment is enabled, the agent can also process packages after the inventory upload step.

Installation

Two installation modes are made available and will depend on the host OS:

Usage

The agent can run:

  • On a schedule (most common)

  • On demand (useful for testing and troubleshooting). You will require terminal access and sufficient privileges:

    • Linux/macOS: sudo ocsinventory-cli

    • Windows: "C:\Program Files\OCS Inventory Agent\ocsinventory-agent.exe"

Last updated