Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not integrate network ports if OperStatus is not present #1022

Open
FraFau opened this issue Aug 5, 2022 · 3 comments
Open

Not integrate network ports if OperStatus is not present #1022

FraFau opened this issue Aug 5, 2022 · 3 comments

Comments

@FraFau
Copy link

FraFau commented Aug 5, 2022

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

@ddurieux
Copy link
Member

ddurieux commented Aug 5, 2022

Can you past the XML node of this port?

@FraFau
Copy link
Author

FraFau commented Aug 5, 2022

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
Copy link
Author

FraFau commented Aug 11, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants