fusioninventory-agent
fusioninventory-agent copied to clipboard
Not integrate network ports if OperStatus is not present
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

Actually, the actual behavior offers a polluted view with networks ports that physically aren't in the network equipment
Can you past the XML node of this port?
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>
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