fusioninventory / fusioninventory-agent

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

Internal MAC Adresse D-LINK DGS-3420-52T #369

Open dwtz opened 6 years ago

dwtz commented 6 years ago

Hi,

the mac address for each port is the same. FusionInventory Agent (2.3.21)

Other D-LINK Switches like DGS-1510 are ok.

fusion-switch

g-bougard commented 6 years ago

Hello @dwtz I imagine you're using netinventory. Could you provide us the related snmp walk ? See bug reporting page for the detailed process to obtain it. Thank you

dwtz commented 6 years ago

Hi,

attatched the snmpwalk dump dlink-3420.zip

dwtz commented 6 years ago

Hello @g-bougard looks like the information we need is starting at .1.0.8802.1.1.2.1.3.7.1.3.1 = Hex-STRING: AC F1 DF 8E 8F 00 lldpLocPortId ?

g-bougard commented 6 years ago

Thank you @dwtz

can you test the result replacing FusionInventory/Agent/Tools/Hardware.pm with the following I just updated in a dedicated branch: Hardware.pm

I'm checking currently possible sides-effect on our private snmp walk database before submitting a PR but it should fix your issue.

g-bougard commented 6 years ago

And yes, about your last comment, this was what I also identified and my patch result is just including this information check before getting common mac address.

dwtz commented 6 years ago

Thank you @g-bougard works great for us.

dwtz commented 6 years ago

Hi again @g-bougard

However, unfortunately, there we have been glad too early. Now other D-Link Switches like D-Link Corporation DGS-1510-20 have lost their internal MAC addresses. It worked before the patch.

g-bougard commented 6 years ago

Well, in fact, this breaks ports inventory in most cases.

I just updated the branch with a new Revision of Hardware.pm file less intrusive.

You can test it but I'm finally not sure this is a agent issue. Can you double-check you switch issue ? agent identifies there's an aggregate and in that case this seems normal to me all port has same mac address.

So can you check your switch config and report real mac you're expecting ?

dwtz commented 6 years ago

i have checked switch settings and found no aggregate. LLDP Local Port Brief Table shows the address which i expect. I have checked another 3420-52T switch and it is the same. But maybe I understand something wrong.

dwtz commented 6 years ago

Hi @g-bougard any news on the problem? To me it looks like the problem: https://github.com/fusioninventory/fusioninventory-for-glpi/issues/2258 So apparently, it's not a specific problem with D-Link Switches. However, it only affects the enterprise switches with a management port at D-Link, as far as I can see