OCS Inventory
Welcome to the official repository profile for **OCS Inventory** (Open Computers and Software Inventory Next Generation), a powerful open-source asset management and package deployment solution. Since 2001, OCS Inventory has enabled administrators to discover, track, and manage their hardware and software assets across complex infrastructures.
---
## 1. Project Cohabitation: Version 2.X & Version 3.0
The OCS Inventory project is undergoing a major evolution. To ensure stability and support for all users, we are maintaining both the legacy and the reworked branches in parallel:
* **OCS Inventory 3.0** `[Active Rework]`
* **Status**: [](#2-ocs-inventory-30)
* **Focus**: A complete technological redesign focusing on RESTful API-driven architecture, cross-platform Dart-based agent execution, unified data models, and a modern Vue.js web UI.
* **OCS Inventory 2.X** `[Legacy Branch]`
* **Status**: [](#3-ocs-inventory-20)
* **Focus**: Maintenance mode.
* **Support & EOL**: **Version 2.X will be maintained for 5 years**. During this EOL period, it will receive critical security patches and major functional bug fixes. This guarantees operational continuity while you plan your transition.
---
## 2. OCS Inventory 3.0
OCS Inventory 3.0 is a complete overhaul of our architecture to embrace modern engineering practices, remove technical limitations, and enhance developer onboarding and community contributions.
### Key Architectural Shifts
| Feature / Stack | OCS Inventory 2.X (Legacy) | OCS Inventory 3.0 (Rework) |
| :--- | :--- | :--- |
| **Backend & Communication** | Perl Communication Server & direct PHP MySQL queries | **Python (Django & Django REST Framework)** RESTful API |
| **Web Administration Console** | Monolithic PHP interface (`ocsreports`) | Modern **Vue.js** SPA interface with responsive navigation |
| **Agent Base** | Perl (Unix/Linux) and C++ (Windows) | **Unified, cross-platform Dart-based agent** |
| **Network Discovery** | Agent-side SNMP & IPDiscover (separated data) | Dedicated standalone **SNMP Scanner**, server-side IPDiscover |
| **Reporting / Queries** | Complex SQL/custom search forms | Modern UI with **no-code graphical reporting** templates |
For more details, see the dedicated [Key Architecture Shift documentation](https://documentation.ocsinventory-ng.org/project-overview/v2-vs-v3-whats-changed).
### Rework Repositories
Explore the components of OCS Inventory 3.0:
* **[Server Backend API](https://github.com/OCSInventory-NG/OCSInventory-Server-Backend-Rework)**: The single entry-point for console communications and agent posts, exposing a fully open RESTful API.
* **[Server Frontend Console](https://github.com/OCSInventory-NG/OCSInventory-Server-Frontend-Rework)**: The brand-new Vue.js web dashboard for system reporting and administration.
* **[Unified Agent Rework](https://github.com/OCSInventory-NG/OCSInventory-Agent-Rework)**: The cross-platform Dart agent focusing on efficient and unified local inventory collection.
* **[SNMP Scanner](https://github.com/OCSInventory-NG/OCSInventory-SNMP-Scanner)**: Standalone scanner tool for agentless inventory, unifying SNMP network devices into the core catalog.
* **[Server Packages](https://github.com/OCSInventory-NG/OCSInventory-Server-Packages)**: Deployment files, configurations, and OS packages (Debian, etc.) to install the V3 stack.
### Getting Started & Migration Guidelines
We provide comprehensive paths to guide you through installation and transition:
* **Quickstart & Installation**: Refer to the setup guides covering OS package installation and database configurations (like PostgreSQL).
* **Backward Compatibility**: Version 3.0 includes a backward compatibility module allowing legacy 2.x agents to report standard inventory data directly to the new 3.0 backend.
#### Migration Strategies
For detailed steps and diagrams, see the dedicated [Migration Strategies documentation](https://documentation.ocsinventory-ng.org/project-overview/migration-guide).
1. **Parallel Agents (Recommended for validation)**: Run legacy 2.x and reworked 3.x agents side-by-side on the same assets to validate inventories with zero downtime.
2. **Proxy Duplication**: Position a reverse proxy in front of your legacy server. Duplicate incoming XML inventory data, forwarding one flow to V2 and another to the V3 REST API.
3. **Legacy Endpoint Redirection**: Keep the legacy hostname pointing to a reverse proxy that redirects legacy agent traffic into the V3 backend wrapper.
4. **Full Replacement**: Uninstall 2.x agents/server and replace them with the 3.0 stack (optimal for smaller, automated fleets).
---
## 3. OCS Inventory 2.0 (Legacy)
Although the core development effort has transitioned to the 3.0 architecture, OCS Inventory 2.0 remains a stable workhorse. All legacy community portals, documentation sites, and repositories **will remain active and online**.
### Legacy Source Repositories
* [OCS Inventory Server (Legacy PHP/Perl)](https://github.com/OCSInventory-NG/OCSInventory-Server)
* [OCS Inventory Reports (Legacy Web UI)](https://github.com/OCSInventory-NG/OCSInventory-OCSreports)
* [Windows Agent (Legacy C++)](https://github.com/OCSInventory-NG/WindowsAgent)
* [Unix Agent (Legacy Perl)](https://github.com/OCSInventory-NG/UnixAgent)
---
## License
OCS Inventory is licensed under the GPLv2 License.