Closed bacus99 closed 1 month ago
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 :
1) glpi-netdiscovery.bat --host YourIP --credentials version:3,username:yourname,authprotocol:SHA,authpassword:XXXXXX,privprotocol:AES128,privpassword:XXXXXXX -i -s c:\folder
2) delete the stack and purge, its very important
3) Import only in the c:\folder\netinventory\yourip.xml
4) import
5) Normally it's ok
6) perform an update, you lose the information I lose the information on all my stacks
I have this bug for 10.0.3
example :
before
if i udpate ( after): ko
OK, I tried your way.
Seems importing says OK, but only 1 port discovered
when I export my xml from GLPI, i can see all the config and ports... Something is blocking. Logs are empty
Waiting for security to approve cleaned xml
networkequipment_4_4977 1.txt Here's the XML
I cannot see your original issue with provided XML. With this one, there is only one network equipment imported; with one port 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)
This looks like a rule issue.
@steph461 please provide inventory file to reproduce.
So you are right, it's not the common point. I reset the rules, still add/remove the ports and don't see 2 switches. Just found in my file that we DON'T see the second serial number switch like I can see in Orion
I'll do more tests, but it makes sense it will not create the second switch... Now why
@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 My good switches: Cisco IOS Software [Bengaluru], Catalyst L3 Switch Software (CAT9K_LITE_IOSXE), Version 17.6.5
What is the version of your switches?
@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 My good switches: Cisco IOS Software [Bengaluru], Catalyst L3 Switch Software (CAT9K_LITE_IOSXE), Version 17.6.5
What is the version of your switches?
Aruba 2930F VSF VC, revision WC.16.10.0009,
other example : i have stack5 If i update my stack, its ko . I must to delete stack 5 and I create the good XML folder netinventory
When you have test, you took the files in the folder in this folder ?
My faulty switches: Cisco IOS Software [Fuji], Catalyst L3 Switch Software (CAT9K_LITE_IOSXE), Version 16.9.4 My good switches: Cisco IOS Software [Bengaluru], Catalyst L3 Switch Software (CAT9K_LITE_IOSXE), Version 17.6.5
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. If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.
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:
Using either SNMPv3 or SNMP v2c, same behavior