Collector CLI
The Collector installs a single command, oculis-collector. Day-to-day operation needs no
commands at all — the Collector runs as a service and starts at boot — so this reference covers
the few things you may want to check or change by hand.
For a container deployment, prefix each command with
docker exec oculis-collector.
Check status
Section titled “Check status”oculis-collector --statusReports whether the Collector is running and connected to Oculis, and when it last delivered data. It reads local state only, so it works even when the host cannot reach Oculis — which is what makes it useful for diagnosing exactly that.
Exit codes: 0 when the Collector is running, 1 when it is stopped or unhealthy. That makes
it usable directly in a monitoring check.
| Option | Effect |
|---|---|
--json |
Machine-readable output instead of the human-readable report |
--watch N |
Re-render the report every N seconds until interrupted |
oculis-collector --status --jsonCheck the installed version
Section titled “Check the installed version”oculis-collector --versionAdd --json for machine-readable output. Use this to confirm which release a host is running before
reporting a problem.
Remove the Collector
Section titled “Remove the Collector”oculis-collector --uninstallStops the Collector and removes it from the host. Collector state is preserved by default, so reinstalling keeps the same Collector rather than enrolling a new one.
| Option | Effect |
|---|---|
--purge-all |
Also remove stored state and logs |
--yes |
Do not prompt for confirmation |
Logging
Section titled “Logging”The Collector logs through your platform’s normal service logging. View them with the tool you already use:
journalctl -u oculis-collectorOpen Console and select the oculis-collector process.
Open Event Viewer and select the OculisCollector service.
docker logs oculis-collectorTo raise verbosity while reproducing a problem, set the log level to DEBUG and restart the
service. Return it to INFO afterwards — DEBUG is considerably more verbose and is not intended
for continuous use.
Versions
Section titled “Versions”This page describes Oculis Collector 1.1.0. Run oculis-collector --version to confirm what a
host has installed.