fusioninventory / fusioninventory-for-glpi

FusionInventory plugin for GLPI
http://www.FusionInventory.org/
GNU Affero General Public License v3.0
361 stars 148 forks source link

Better SNMP support for Printers (Show the state) #887

Open ddurieux opened 8 years ago

ddurieux commented 8 years ago

Author Name: Alejandro Escanero Blanco (Alejandro Escanero Blanco) Original Redmine Issue: 1687, http://forge.fusioninventory.org/issues/1687 Original Date: 2012-06-01 Original Assignee: David Durieux


RFC3805 (Printer MIB v2) page 16 said: The Host Resources MIB [RFC2790] provides three status objects that can be used to describe the status of a printer: (1) hrDeviceStatus in the entry in the hrDeviceTable; (2) hrPrinterStatus in the hrPrinterTable; and (3) hrPrinterDetectedErrorState in the hrPrinterTable. These objects describe many of the states that a printer can be in.

Then show a table of the values that the four states could be.

hrDeviceStatus (Depend on the device, must be in OID 1.3.6.1.2.1.25.3.2.1.5.x)and hrPrinterStatus (1.3.6.1.2.1.25.3.5.1.1) have little information about real problems in the machine.

hrPrinterDetectedErrorState (1.3.6.1.2.1.25.3.5.1.2) is a the real information source for problems, the error conditions are encoded as bits in an octet string: 1000 0000 0000 0000 : Low Paper 0100 0000 0000 0000 : No Paper 0010 0000 0000 0000 : Low Toner 0001 0000 0000 0000 : No Toner 0000 1000 0000 0000 : Door Open 0000 0100 0000 0000 : Jammed 0000 0010 0000 0000 : Offline 0000 0001 0000 0000 : Service Requested 0000 0000 1000 0000 : Input Tray Missing 0000 0000 0100 0000 : Output Tray Missing 0000 0000 0010 0000 : Marker Supply Missing 0000 0000 0001 0000 : Output Near Full 0000 0000 0000 1000 : Output Full 0000 0000 0000 0100 : Input Tray Empty 0000 0000 0000 0010 : Overdue Preventive Maintainance 0000 0000 0000 0001 : Not assigned

Is possible to implement a complete printer status in GLpi fusioninventory plugin?

ddurieux commented 8 years ago

Original Redmine Comment Author Name: David Durieux (@ddurieux) Original Date: 2012-06-01T12:09:23Z


Oh yes it's possible