-
Notifications
You must be signed in to change notification settings - Fork 27
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
SNMP inventory problem with disconnecting devices from the switch #482
Comments
I've tried to reproduce on my side, but if I could have strange behavior; I did not see the exact one you talk about here. But I've built myself XML files, and maybe did I create use cases that does not exists. Please provide inventory files we can use to reproduce on a fresh GLPI instance and inspect on our side. It can be very light versions, no need for 200+ ports nor all computer hardware/software list to get that specific issue reproduced. |
Hello, thank you for the answer. please let me know what address I should send the inventory files to |
There is no private way to send data for community support. You can post them here, just ensure to remove sensitive data before (as said, most of the file content won't be required to reproduce the issue you describe). |
The agent name is created the first time it is run a The only way to update the agent name is to reinstall it or delete this file |
Wrong issue ;) |
Hello, I imported from the Administration->Inventory->Import from file->Upload tab Administration->Inventory->Import from file->Upload Administration->Inventory->Import from file->Upload |
OK, I can reproduce with provided files; thank you. I'll take a closer look. |
I've inspected provided files, and GLPI actual behaviour seems correct. Computer's MAC address is present on both switches XML. Therefore, when you import the first switch, a link is done, but it's replaced when importing the second one; and that seems logic. |
Have I understood correctly that there is not much that can be done about it? |
If XML you provide are correct (ie you did not edit mac list by hand on "PD1-STACK" and made mistakes); I do not see what we could do GLPI side. Attaching assets to a switch at inventory time is not related to rules if I remember correctly; it's just about the mac address presence. Rule works on asset level; not on what they contain; therefore you cannot choose to not inventory a port that is present - as far as I know. |
Describe the bug
Good morning,
I use glpi inventory version 1.3.5 and the latest Glpi Agent 1.7.1
I would like to present a problem in connecting network ports between switches and devices
To reproduce
I have several Huawei switches. I would like to describe my example based on the following scenario.
A computer named a17129 and Mac address xx:xx:xx:d4:92:90 is connected directly to the Huawei switch named PD1-STACK on port number 0/0/16.
When I execute glpi-injector switchPD1-STACK.xml, the computer will connect to the appropriate port on the Huawei screen switch:
Huawei PD1-STACK switch is connected to another Huawei CORE switch. All other switches in the company are connected to the CORE switch and if a glpi-injector of another switch is performed, e.g. Switch PD1-POE, the a17129 computer is disconnected from the correct Switch PD1-Stack port 0/0/16 and is connected to Hub > N /And below is the screenshot after executing the command
glpi-injector switchPD1-POE.xml
Glpi has created an Unmanaged devices Hub that looks like this:
After analyzing the .xml files, I noticed that glpi works like this when in the section
there are many connections with different MAC addresses and if there is a computer's MAC in this section, it will then create a hub. Below is a screenshot with a fragment of the xml file and the mac address of the computer marked a17129
when I remove the Mac address of the computer a17129 from the xml file and execute glpi-injector, the computer will remain intact.
In the above example, the PD1-POE switch on the XGigabitEthernet0/0/1 port is a Trunk VLAN port 1-4092, therefore it displays all MAC addresses of computers.
I tried to work around this problem via rules. I noticed that the port is removed by the Update only mac address (mac on switch port) rule, I tried to modify it by adding e.g. criteria
Asset>Network port>Port number in not 55 however the rule does not seem to work. Please help me how to solve this problem. Maybe I'm doing something wrong?
Expected behavior
I would like this problem to be fixed
Operating system
Linux
GLPI Agent version
Other (See additional context below)
GLPI version
10.0.12
GLPIInventory plugin
1.3.5
Additional context
Thank you for your help
The text was updated successfully, but these errors were encountered: