You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
There's even an "ERRSTATUS" field which is probably just ignored in GLPI.
So I guess this "STATUS" field is an historical feature which may eventually even not work, but I didn't checked.
Today, adding such a feature would require an inventory_format update, a glpi update and glpi-agent update with a lot of work to not break anything.
I'm not against it. I just think it is not the right time to implement it. I think we can keep it for next major glpi-agent and glpi releases. As far I know, GLPI 11 will no more reject inventories on format not validated by "inventory_format" specs. This will permit to develop features involving glpi-agent format changes more easily. Indeed, we will be able to develop the change in glpi-agent before the glpi change as inventory_format will become informative by default.
Of course, if you have a GLPI subscription and want to get this feature sooner, don't hesitate to contact us on subscribers support to obtain a quote.
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 theglpi-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 onStatus
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
<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.
The text was updated successfully, but these errors were encountered: