Giter Site home page Giter Site logo

Comments (10)

trasher avatar trasher commented on September 12, 2024

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.

from glpi-inventory-plugin.

r0bertk avatar r0bertk commented on September 12, 2024

Hello, thank you for the answer. please let me know what address I should send the inventory files to

from glpi-inventory-plugin.

trasher avatar trasher commented on September 12, 2024

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).

from glpi-inventory-plugin.

stonebuzz avatar stonebuzz commented on September 12, 2024

The agent name is created the first time it is run

a GLPI-Agent.dump file is created and reused each time it is run

The only way to update the agent name is to reinstall it or delete this file

from glpi-inventory-plugin.

trasher avatar trasher commented on September 12, 2024

The agent name is created the first time it is run

a GLPI-Agent.dump file is created and reused each time it is run

The only way to update the agent name is to reinstall it or delete this file

Wrong issue ;)

from glpi-inventory-plugin.

r0bertk avatar r0bertk commented on September 12, 2024

Hello,
I prepared files that I uploaded to the new version of glpi 11 nightly build main-23caf39.tar.gz.
The effect is the same as on my production version.
Below I am sending you a detailed step-by-step scenario
Step 1
On a new glpi installation, we add the computer from the file: a17129_clear_new2.json
a17129_clear_new2.json

I imported from the Administration->Inventory->Import from file->Upload tab
After importing, we have added a computer named a17129
obraz
Step2.
Then we import switch_PD1-STACK from the file: switch_PD1-STACK.xml
switch_PD1-STACK.zip

Administration->Inventory->Import from file->Upload
After importing, a switch called PD1-STACK will appear, which has 102 ports. The a17129 computer will be connected to port 0/0/16
obraz
When we go to the Computers->Networks ports tab, we see that the computer is Connected to PD1-STACK
obraz
Step 3
Then we import switch_PD1-POE from the file: switch_PD1-POE.xml
switch_PD1-POE.zip

Administration->Inventory->Import from file->Upload
After importing, there will be a switch called PD1-POE which has 27 ports. On port XGigabitEthernet2/0/1
obraz
When we go to the Computers->Network ports tab, we see that the computer has been connected to the new Hub
obraz

from glpi-inventory-plugin.

trasher avatar trasher commented on September 12, 2024

OK, I can reproduce with provided files; thank you. I'll take a closer look.

from glpi-inventory-plugin.

trasher avatar trasher commented on September 12, 2024

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.
I have no idea how switches ports are retrieved; but provided data tend to demonstrate computer is plugged on both switches with same mac, I don't think this is possible.

from glpi-inventory-plugin.

r0bertk avatar r0bertk commented on September 12, 2024

Have I understood correctly that there is not much that can be done about it?
If nothing can be done about it, I would like to use a rule that will skip the inventory of this port.
However, when I tried 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 (number port) however the rule does not seem to work.

from glpi-inventory-plugin.

trasher avatar trasher commented on September 12, 2024

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.
Maybe agent can do something, but there also are chances that data provided from your switches is incorrect - I can't say.

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.

from glpi-inventory-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.