fusioninventory / fusioninventory-for-glpi

FusionInventory plugin for GLPI
http://www.FusionInventory.org/
GNU Affero General Public License v3.0
362 stars 149 forks source link

Device not associated with the correspondent SNMP model #1117

Closed ddurieux closed 8 years ago

ddurieux commented 9 years ago

Author Name: Anonymous (Anonymous) Original Redmine Issue: 2091, http://forge.fusioninventory.org/issues/2091 Original Date: 2013-04-17 Original Assignee: David Durieux


GLPI for FusionInventory (0.83+2.1 version)

FusionInventory unified agent for UNIX, Linux and MacOSX (2.2.7) ESX (v2.2.1) Inventory (v1.0) WakeOnLan (v1.0) NetDiscovery (v2.2.0) NetInventory (v2.2.0)

x86_64 CentOS release 5.8 (Final) This is perl, v5.10.0 built for x86_64-linux-thread-multi

After netdiscovery, device is listed in the correct list (Networks or Printers) but not associated with the correspondent SNMP model.

We have at least two cases: one with a switch model (996935) and other with a printer model (997364).

Please tell me what information you need to solve this problem.

This is very important to our organization! Thanks in advance!

ddurieux commented 9 years ago

Original Redmine Comment Author Name: Anonymous (Anonymous) Original Date: 2013-04-17T17:15:25Z


SNMP Model Name: 997364 Type: Printers Comments: Xerox WorkCentre 4260; System Software Version 30.103.51.000, Main Controller 2.50.03.51, Network Controller 4.01.71.06, Image Output Terminal 0.41.69, User Interface 0.040.15.186, DADF 1.01

Device Sysdescr:

Xerox WorkCentre 4260; System Software Version 30.103.51.000, Main Controller 2.50.03.51, Network Controller 4.01.71.06, Image Output Terminal 0.41.69, User Interface 0.040.15.186, DADF 1.01

SNMP Model Name: 996935 Type: Networks Comments: HP Comware Platform Software, Software Version 5.20 Release 2208\HP A5500-48G EI Switch with 2 Interface Slots\Copyright (c) 2010-2011 Hewlett-Packard Development Company, L.P.\

H3C Comware Platform Software, Software Version 5.20 Release 2208\H3C S5500-52C-EI\Copyright (c) 2004-2010 Hangzhou H3C Tech. Co., Ltd. All rights reserved.\

Device Sysdescr: H3C Comware Platform Software, Software Version 5.20 Release 2208 H3C S5500-52C-EI Copyright (c) 2004-2010 Hangzhou H3C Tech. Co., Ltd. All rights reserved.

=> The SNMP models were created using the SNMP tool.

ddurieux commented 9 years ago

Original Redmine Comment Author Name: Anonymous (Anonymous) Original Date: 2013-04-17T17:22:14Z


Agent log (netdiscovery) for the switch case.

ddurieux commented 9 years ago

Original Redmine Comment Author Name: Anonymous (Anonymous) Original Date: 2013-04-17T19:43:23Z


We've made a new test with a clean environment (uninstalled and reinstalled fusinvsnmp plugin). After creating a new model for the printer, the printer device was correctly associated (so, I think you can forget this case).

Then, I've repeated the test for the switches (using the same 996935 model - it's in the central server - you can take a look at it) and it did not work: the correct model was not associated to the switch device.

I think it's something related with a sysdescr with more than one line (the model was created with a double slash to indicate the line separation and perhaps this is causing the matching problem).

Perhaps getting only the first line will solve the problem.

ddurieux commented 9 years ago

Original Redmine Comment Author Name: Anonymous (Anonymous) Original Date: 2013-04-18T17:01:11Z


David, could you please tell us which module tries the string match between the SNMP model and the sysdescr obtained from the device?

My boss thinks he can make a simple change in it, then solving the problem reported in this bug...

Thanks in advance!

ddurieux commented 9 years ago

Original Redmine Comment Author Name: Anonymous (Anonymous) Original Date: 2013-04-22T15:55:04Z


Hi, ddurieux_all!

My great team is proud to announce you that we've just found a solution to the above problem!

You only need to remove all "\" from the existing models!

Models with description in more than one line should be created concatenating all lines in a single one (without any character separation).

Example:

NO: HP Comware Platform Software, Software Version 5.20 Release 2208\HP A5500-48G EI Switch with 2 Interface Slots\Copyright (c) 2010-2011 Hewlett-Packard Development Company, L.P.\

YES: HP Comware Platform Software, Software Version 5.20 Release 2208HP A5500-48G EI Switch with 2 Interface SlotsCopyright (c) 2010-2011 Hewlett-Packard Development Company, L.P.

Any doubts?

Could you please remove these "\" from all models in central server and include some instructions for our users?

Thanks a lot in advance!

ddurieux commented 9 years ago

Original Redmine Comment Author Name: David Durieux (@ddurieux) Original Date: 2013-04-22T15:56:57Z


Yes, somebody has reported this problem this morning, I will see the problem in couple of hours ;)

ddurieux commented 9 years ago

Original Redmine Comment Author Name: Anonymous (Anonymous) Original Date: 2013-07-30T16:16:04Z


Do you have any idea when the correction for this bug will be available? Thank you!

ddurieux commented 9 years ago

Original Redmine Comment Author Name: Anonymous (Anonymous) Original Date: 2013-12-10T15:25:38Z


No news?

ddurieux commented 8 years ago

snmp models no exist now