fusioninventory-agent icon indicating copy to clipboard operation
fusioninventory-agent copied to clipboard

Not integrate network ports if OperStatus is not present

Open FraFau opened this issue 3 years ago • 3 comments
trafficstars

Hi,

It would be great not to import network ports to network equipment if the Oid "ifOperStatus,1.3.6.1.2.1.2.2.1.8,IF-MIB,OBJECT" is notPresent(6).

in the glpi DB, you get the field ifStatus filled with the "6" value Fv2qR7fvy3

Actually, the actual behavior offers a polluted view with networks ports that physically aren't in the network equipment

FraFau avatar Aug 05 '22 10:08 FraFau

Can you past the XML node of this port?

ddurieux avatar Aug 05 '22 11:08 ddurieux

Hi David,

Just to be clear, this happens for me in Cisco SG switches.

With the 9.5+4.2 version of fusioninventory-for-glpi plugin, the agent just add a few "notPresent" (gi4/0/x and te4/0/x) ports but not those who are really presents. (it seems to be another bug because all ports are present in the glpi_plugin_fusioninventory_networkports table but not in the glpi_networkports one) This another bug is not met with the 9.5+3.0 version of fusioninventory-for-glpi plugin

here is the xml node : <PORT> <IFDESCR>GigabitEthernet3/0/1</IFDESCR> <IFINERRORS>0</IFINERRORS> <IFINOCTETS>0</IFINOCTETS> <IFINTERNALSTATUS>1</IFINTERNALSTATUS> <IFLASTCHANGE>0.00 seconds</IFLASTCHANGE> <IFMTU>9000</IFMTU> <IFNAME>gi3/0/1</IFNAME> <IFNUMBER>105</IFNUMBER> <IFOUTERRORS>0</IFOUTERRORS> <IFOUTOCTETS>0</IFOUTOCTETS> <IFPORTDUPLEX>1</IFPORTDUPLEX> <IFSPEED>100000000</IFSPEED> <IFSTATUS>6</IFSTATUS> <IFTYPE>6</IFTYPE> <MAC>c4:c6:03:86:2e:95</MAC> <TRUNK>0</TRUNK> <VLANS> <VLAN> <NAME/> <NUMBER>1</NUMBER> <TAGGED>0</TAGGED> </VLAN> </VLANS> </PORT>

FraFau avatar Aug 05 '22 14:08 FraFau

Hi David, Did you find the way to do this ? For the bug with the latest fusioninventory-for-glpi plugin, did you find a correction ?

Regards, François

FraFau avatar Aug 11 '22 14:08 FraFau