glpi-project / glpi-agent

GLPI Agent
GNU General Public License v2.0
251 stars 61 forks source link

GLPI Agent reports different SN for HP LJ printers (adds 00) #652

Open petertuharsky opened 7 months ago

petertuharsky commented 7 months ago

Bug reporting acknowledgment

Yes, I read it

Professional support

None

Describe the bug

GLPI Agent report incorrect SN for some HP LaserJet Printers. It adds "00" to beginning, rest of SN follows correctly, but this is enough for SN not to be matched, thus creating duplicate printers. So far seen for HP LaserJet P2015d and HP LaserJet P2055dn.

To reproduce

Run GLPI Agent. Compare SNs of detected HP LJ printers to their real SNs.

Expected behavior

GLPI should adjust the SN internally in order to report correct SN. The correct SN for HP is exactly 10 letters long.

Operating system

Windows

GLPI Agent version

1.7.3

GLPI version

10.0.14

GLPIInventory plugin or other plugin version

Not applicable

Additional context

No response

g-bougard commented 6 months ago

Hi @petertuharsky

in the case you're talking about printers inventories via network (netdiscovery & netinventory tasks) can you provide a snmpwalk output in the expected format for each concerned models ?

If you're talking about printers reported in a computer inventory, can you share the "printers" section of the computer inventory ?

petertuharsky commented 6 months ago

Do You mean like this? obrázok

g-bougard commented 6 months ago

Hi @petertuharsky

you can produce a partial inventory running the following command from an administrative console and from the agent installation folder:

glpi-inventory --partial printer

Only the "printers" section of that inventory content is required.

Can you also share the output of the following command:

wmic path Win32_Printer get /format:list

And can you also share an export of the following registry keys ?

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Enum/USBPRINT
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Enum/USB
petertuharsky commented 5 months ago

Here are the data.

inv.log usb.reg.gz usbprint.reg.gz wmic.log.gz