Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
petertuharsky opened this issue Apr 18, 2024 · 4 comments
Open

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

petertuharsky opened this issue Apr 18, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@petertuharsky
Copy link

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

@petertuharsky petertuharsky added the bug Something isn't working label Apr 18, 2024
@g-bougard
Copy link
Member

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
Copy link
Author

Do You mean like this?
obrázok

@g-bougard
Copy link
Member

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
Copy link
Author

Here are the data.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants