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
Install the agent on the target device.
See Installation.
Run it either:
as a service on a schedule
as a one-time command
On each run, the agent gathers device inventory and optional template data.
Then it either:
syncs configuration with the server and uploads inventory
writes an inventory file locally for offline workflows
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-cliWindows:
"C:\Program Files\OCS Inventory Agent\ocsinventory-agent.exe"
Last updated

