fusioninventory / fusioninventory-agent

FusionInventory Agent
http://fusioninventory.org/
GNU General Public License v2.0
253 stars 125 forks source link

Duplicate Devices #445

Closed grego1981 closed 6 years ago

grego1981 commented 6 years ago

Hello all,

I have an issue with some network devices (Mikrotik, HP (ARUBA) and others) that are scanned by FI and imported but report wrong serial number among others. Since this is their import criteria, if changed it makes the system recognise it as another device and duplicates it. I have installed correct MIBs on the server but I don't believe this is relevant.. Is there something I can do?

Thank you!

g-bougard commented 6 years ago

Hi @grego1981

first of all, can you tell us which agent version you're using ?

Then if you're using lastest release (2.4), did you update the sysobject.ids file with the most recent I pushed last week as it permits to discover recent HP/Aruba switchs ? This should be done for the agent which is used for NetDiscovery/NetInventory tasks.

Finally you should show us what serial numbers are reported for devices and in what they are wrong. You can also provide us some snmp walks output as explained in bug reporting documentation with the serial you expect to be extarcted.

grego1981 commented 6 years ago

Hi @g-bougard I'm using the v2.3.20 The serial numbers reported for device CRS125-24G-1S is in mib-2.47.1.1.1.1.11.262145 rb400_usb while the correct value is in mib enterprises.14988.1.1.7.3.0 7875068739D6

The serial numbers reported for device is empty while the correct value is in mib enterprises.14988.1.1.7.3.0 793107F28989

Attached the snmp output of the 2 routers mentioned router2.txt router1.txt

g-bougard commented 6 years ago

Hi @grego1981 I just added Mikrotik devices support in PR #447 This fixes serial numbers and get them from enterprises.14988.1.1.7.3.0.

It also adds firmware support, but I'm in trouble with the values I saw in your walks. For example, for your CRS125-24G-1S, I see a mtxrFirmwareVersion with 3.33 and a mtxrFirmwareUpgradeVersion with 3.41. What the mib is not saying is if 3.33 is the used firmware and 3.41 is available for upgrade or if 3.33 was the first install firmware and 3.41 the currently installed... Can you just tell us if you upgraded this device with 3.41 firmware ?

grego1981 commented 6 years ago

I'm currently on 3.33 with 3.41 available see attrached screenshot if it helps, although I believe a more useful info is the RouterOS version in the second screenshot. How can I check the changed version? Is there an installer for windows to use?

Thank you!

[image: Inline image 1]

[image: Inline image 2]

g-bougard commented 6 years ago

Hi @grego1981

I merged the PR #447 in Teclib repository and triggered a build of associated windows installer on Appveyor.

So you can download the 2.4.x-build-30 development release from Appveyor directly and test it.

About the RouterOS version, I saw it is available in the walk. I'll see if we can add its support.

grego1981 commented 6 years ago

After 2.4 upgrade yesterday and the update to the dev build today and I have seen the following:

Most of my HP switches started reporting 5-6 more unknown components after each scan, specificaly one core switch which I scan every 10mins know has about 600

Also after each scan status is reverted to null.

The Mikrotik routers are properly discovered but the firmware is like the comment above in the components

The HP switch is an HP/Aruba 1920G POE+ capture

The Mikrotik Components page

capture1

grego1981 commented 6 years ago

Also After the 2.4 update the components list for firmware has grown in two days by 7300 records.... All unknown.

I believe something changed radically from the 2.3.20 version and onwards Hope this info will help you

g-bougard commented 6 years ago

Hi @grego1981 can you confirm GLPI+FusionInventory plugin versions you're using ?

grego1981 commented 6 years ago

Hi @g-bougard

I'm using GLPI 9.2 and FI 9.2+1.0

wawax commented 6 years ago

I reproduce the bug, we're going to fix it asap

wawax commented 6 years ago

fixed at the plugin's level here https://github.com/fusioninventory/fusioninventory-for-glpi/compare/e9ddd3538a55...a6c83829d1ea