← Back to projects

Intranet / Printers

Bringing printer readings and maintenance together.

The printer module connects stored toner levels and page counters with maintenance records. Scheduled device queries supply new readings. A searchable overview and a date-filtered history make these values accessible.

Intranet / PrintersSample data

Example printer A

12 840page counter
Toner level42 %

Stored daily readings · Page counter

  1. 21 Oct12 720
  2. 22 Oct12 780
  3. 23 Oct12 840
SNMPHistory

Maintenance record

Rollers cleaned

22 Oct

Documented work complements the automatically collected device readings.

Schematic illustration with fictional readings and a maintenance entry. It shows stored page counters, not a live device query. No real device or network data.

The problem

A reading shows one moment in time

The current page counter does not explain how usage has developed. Supporting the devices needs earlier readings and the associated maintenance records.

The decision

Separate collection from display

Scheduled background tasks read device values through SNMP. Usable page counters are stored and appended to a history; the interface reads the saved data.

The result

Readings and history in one place

The overview connects device readings with maintenance information. A date filter narrows the counter history, while documented work remains separately traceable.

The decisions behind it

1. Query devices in the background

Symfony Scheduler initiates device queries; a Messenger handler reads SNMP values and writes them to the database. The web interface uses these saved readings, showing the data collected by scheduled queries.

2. Do not turn unknown counters into zero

Devices can return unusable responses as well as numbers. Processing checks page counters for numeric, nonnegative values. Unknown or invalid counters are not appended to the history as new readings.

3. Distinguish the counter from its change

SQL groups the saved values by day using the highest counter reading. The interface can show differences between available samples. When readings are missing, a difference covers the interval between those samples rather than necessarily one calendar day.

Tech stack

Symfony · Scheduler · Messenger · SNMP · Doctrine DBAL · SQL Server · Stimulus · Chart.js

This module belongs to the same internal Symfony intranet as the manufacturing workflow and the other modules shown here.