-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Cisco stack reporting issue #17281
Comments
Plese provide XML/JSON inventory file we can use to reproduce. |
@hello bacus99 i have bug similary Stack 2 or 3 or 4 or 5 Try this command :
I have this bug for 10.0.3 example : |
networkequipment_4_4977 1.txt |
I cannot see your original issue with provided XML. With this one, there is only one network equipment imported; with one port in it.
This looks like a rule issue. @steph461 please provide inventory file to reproduce. |
@steph461 not 100% sure if related, but I have 2 sites OK My faulty switches: Cisco IOS Software [Fuji], Catalyst L3 Switch Software (CAT9K_LITE_IOSXE), Version 16.9.4 What is the version of your switches? |
Aruba 2930F VSF VC, revision WC.16.10.0009, other example : |
That looks like an issue on switch support on agent side. Please open a discussion on agent repository. |
OK based on my tests, agent 1.9 installed on Linux glpi-netdiscovery --first 172.16.10.1 --last 172.16.10.254 --credentials version:2c,community:community1 --credentials version:2c,community:community2 --credentials version:2c,community:public --credentials 'version:3,username:snmp-glpi,authprotocol:SHA,authpassword:aaaa,privprotocol:AES,privpassword:ssss' --debug --control --backend-collect-timeout 30 --timeout 5 --retries 1 --threads 10000 -i -s /tmp glpi-injector --no-ssl-check -v --recursive --directory /tmp/netinventory -u https://glpi.mycompany/glpi/marketplace/glpiinventory/ Import all switches with stacks From GLPI inventory interface, stack are single switch and delete ports after few passes |
There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days. If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue. You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly. |
Code of Conduct
Is there an existing issue for this?
Version
10.0.16
Bug description
For some time, my Cisco switches are not reporting stacks properly. It change around version 10.0.11, but I'm not sure
Now I have in most of the case 1 switch with all the ports in it. Plus on random frequency, glpi-netinventory snmp update flush all my ports (And sometime change the name of the switch 0 (ex: Site-SW-01 to Site-SW-01 - 2)
Relevant log output
Page URL
No response
Steps To reproduce
Simply create an SNMP scan with glpi-netinventory, then scan
Your GLPI setup information
GLPI is filling my logs (up to 30 GB) with this
2024-06-06 15:04:07] glpiphplog.WARNING: *** PHP User Warning (512): Wired non unique! in /usr/share/glpi/src/NetworkPort_NetworkPort.php at line 273
Backtrace :
src/NetworkPort_NetworkPort.php:273 trigger_error()
src/CommonDBTM.php:1297 NetworkPort_NetworkPort->prepareInputForAdd()
src/NetworkPort_NetworkPort.php:172 CommonDBTM->add()
src/Inventory/Asset/NetworkPort.php:892 NetworkPort_NetworkPort->connectToHub()
src/Inventory/Asset/NetworkPort.php:369 Glpi\Inventory\Asset\NetworkPort->handleHub()
src/Inventory/Asset/NetworkPort.php:611 Glpi\Inventory\Asset\NetworkPort->handleMacConnection()
src/Inventory/Asset/NetworkPort.php:633 Glpi\Inventory\Asset\NetworkPort->handleConnections()
src/Inventory/Asset/NetworkPort.php:623 Glpi\Inventory\Asset\NetworkPort->portChanged()
src/Inventory/Asset/InventoryNetworkPort.php:519 Glpi\Inventory\Asset\NetworkPort->portUpdated()
src/Inventory/Asset/InventoryNetworkPort.php:121 Glpi\Inventory\Asset\NetworkPort->handleUpdates()
src/Inventory/Asset/NetworkPort.php:835 Glpi\Inventory\Asset\NetworkPort->handlePortsTrait()
src/Inventory/Asset/NetworkPort.php:618 Glpi\Inventory\Asset\NetworkPort->handlePorts()
src/Inventory/Asset/MainAsset.php:1001 Glpi\Inventory\Asset\NetworkPort->handle()
src/Inventory/Asset/MainAsset.php:916 Glpi\Inventory\Asset\MainAsset->handleAssets()
src/Inventory/Asset/NetworkEquipment.php:231 Glpi\Inventory\Asset\MainAsset->rulepassed()
src/RuleImportAsset.php:981 Glpi\Inventory\Asset\NetworkEquipment->rulepassed()
src/Rule.php:1531 RuleImportAsset->executeActions()
src/RuleCollection.php:1660 Rule->process()
src/Inventory/Asset/MainAsset.php:582 RuleCollection->processAllRules()
src/Inventory/Inventory.php:724 Glpi\Inventory\Asset\MainAsset->handle()
src/Inventory/Inventory.php:355 Glpi\Inventory\Inventory->handleItem()
...inc/communicationnetworkinventory.class.php:170 Glpi\Inventory\Inventory->doInventory()
marketplace/glpiinventory/hook.php:1088 PluginGlpiinventoryCommunicationNetworkInventory->import()
src/Plugin.php:1730 plugin_glpiinventory_network_inventory()
src/Inventory/Request.php:280 Plugin::doHookFunction()
src/Inventory/Request.php:252 Glpi\Inventory\Request->network()
src/Inventory/Request.php:98 Glpi\Inventory\Request->networkInventory()
src/Agent/Communication/AbstractRequest.php:332 Glpi\Inventory\Request->handleAction()
src/Agent/Communication/AbstractRequest.php:269 Glpi\Agent\Communication\AbstractRequest->handleXMLRequest()
front/inventory.php:95 Glpi\Agent\Communication\AbstractRequest->handleRequest()
...tplace/glpiinventory/front/communication.php:72 include_once()
marketplace/glpiinventory/index.php:45 include_once()
Anything else?
It worked perfectly some time ago, but I did not check back network devices often.
I tried:
The only common point in my situation is my firewall is wire connected on the 3 nodes of my switch (port 1/1 on switch a-b-c for exemple)
Using either SNMPv3 or SNMP v2c, same behavior
The text was updated successfully, but these errors were encountered: