Closed bogachevd closed 1 month ago
I think the problem is glpi-netinventory doesn't have "Context Name" parameter.
snmpwalk returns error when I remove -n Jetdirect
from command. Is there any way to make glpi-netinventory work with snmp v3 and HP printers?
This seems rather an agent issue than a plugin one; please open a discussion on agent repository.
This seems rather an agent issue than a plugin one
I actually think it's a GLPI-server issue. "Context Name" is a valid snmpv3 parameter. Snmpwalk has it, some HP (and I think not only them) printers have it and require this parameter. Glpi doesn't have this parameter in Administration > Inventory > SNMP credentials at all. Ok, I got it, I'll try to open a discussion in a main repository.
There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 7 days.
If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue.
You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.
Describe the bug
Successfully created NetDiscovery and NetInventory tasks on my server, got a pack of unmanaged devices, added one (HP LJ Pro MFP M428fdn) to Printers and Scheduled an SNMP Inventory task. Task finished succesfully, but nothing changed, no information about the printer was added.
So I tried to launch a command directly from my agent.
glpi-netinventory.bat --host 192.168.*.* --credentials version:3,username:snmptest,authpassword:"snmp1",authprotocol:sha,privpassword:"snmp2",privprotocol:aes --debug
And got an answer from printer:What I tried and what works for me:
What I tried and what doesn't work:
<MESSAGE>SNMP communication error: authentication error on host 192.168.*.*</MESSAGE>
<TYPE>PRINTER</TYPE>
To reproduce
glpi-netinventory.bat --host 192.168.*.* --credentials version:3,username:snmptest,authpassword:"snmp1",authprotocol:sha,privpassword:"snmp2",privprotocol:aes --debug
from GLPI-Agent install pathExpected behavior
xml I get when using snmp v2c credentials (agent version 1.10):
Operating system
Windows, Linux
GLPI Agent version
1.0, Other (See additional context below)
GLPI version
Other (See additional context below)
GLPIInventory plugin
1.3.5
Additional context
Tested on GLPI-Agents v 1.7.1 and 1.10, GLPI version: 1.0.15