Skip to content

renatosans/PrintJobAccounting

Repository files navigation

PrintJobAccounting

Contabiliza trabalhos de impressão e cópias

This service looks for printer jobs when they are created in the printer spool. This is done by monitoring the spool directory using .NET FileSystemWatcher

You can use the web interface to generate reports based on the print logs.

Its included an alternative solution using PAPERCUT, where the print logs are generated by PAPERCUT and imported into SQL Server using C# This tool logs are in the format: // daily Ex.: papercut-print-log-2022-09-19.csv // montlhy Ex.: papercut-print-log-2022-09.csv // all-time Ex.: papercut-print-log-all-time.csv

https://www.papercut.com/products/free-software/#print-logger

The web interface provides an Endpoint to register client Printers, printers are discovered using SNMP and page counters are sent to the backend so that reports can be generated using printer info.

SNMP discovery service (printer and network equipment) depends on a external C# library -> SharpSnmpLib

Possible update to this NPM package -> https://www.npmjs.com/package/net-snmp, using PM2 to keek service runing after restarts.

OIDs used to find printer info on client network

    // Serial BROTHER - .1.3.6.1.2.1.43.5.1.1.17.1
    // Serial RICOH - .1.3.6.1.4.1.367.3.2.1.2.1.4.0
    // Serial LEXMARK - .1.3.6.1.4.1.641.2.1.2.1.6.1
    // Page Count - .1.3.6.1.2.1.43.10.2.1.4.1.1
    // Printer Description - .1.3.6.1.2.1.25.3.2.1.3.1
    // Printer Status - .1.3.6.1.2.1.25.3.5.1.1.1
    // Toner Estimated Capacity % - .1.3.6.1.4.1.367.3.2.1.2.24.1.1.5.1

About

Contabiliza trabalhos de impressão e cópias

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published