Description
Bug reporting acknowledgment
Yes, I read it
Professional support
None
Describe the bug
Hello,
I'm using GLPI-Agent 1.11 and GLPI 10.0.17 (bugfixes branch).
The inventory.schema.json
file doesn't seems to provide a way to set Network Printer status, the <STATUS></STATUS>
tag seems available only for local printers (as seen here: https://github.com/glpi-project/glpi/blob/4d1548a14d405681b8a8a3289b804dfda1cb6a06/phpunit/functional/Glpi/Inventory/Assets/PrinterTest.php#L65) and not network (SNMP) printers and the glpi-injector
fails with an validation violation error.
The network printer can provide it's status by the prtAlertEntry
OID (.1.3.6.1.2.1.43.18.1.1.8.1.1.) so it would be possible to set the printer status and display it on Status
dropdown of GLPI.
On the snmpwalk attached below, my Brother HL-1210W printer reports it's status as "Sleep" (on hexadecimal) at .1.3.6.1.2.1.43.18.1.1.8.1.1
OID.
snmpwalk_brother_OID.txt
snmpwalk_brother.txt
To reproduce
- Attempt to set
<STATUS></STATUS>
tag on printer network (SNMP) object.
Expected behavior
Status should be available for Printer objects on Inventory schema.
Operating system
Windows
GLPI Agent version
v1.11
GLPI version
10.0.17
GLPIInventory plugin or other plugin version
GLPI Inventory v1.4.0
Additional context
Please let me know if anymore information are needed.