##Switch stack inventory

Cisco 3750

Difference in snmpwalk output between normal and stacked switch: The additional number after GigabitEthernet is switch number inside stack, it starts from 1 and not 0 as ports do.

Port name ( . , ifname )

non-stacked:  . = STRING: Gi0/1
stacked:      . = STRING: Gi1/0/1

Port descr. ( . , ifdesc )

non-stacked:  . = STRING: GigabitEthernet0/1
stacked:      . = STRING: GigabitEthernet1/0/1

workaround that works for me

I made discovery of all switches via fusioninv glpi plugin first.

Then I found out that if I run fusioninventory-netinventory from cli against switch and than send xml file with injector or curl, my ports (almost all) on stacked switch are visible in GLPI. Some ports are missing and I’m trying to find out why.

I use this commmands:

/usr/local/bin/fusioninventory-netinventory --host --community something --model ./996914.xml > 14.xml
curl --header "Content-Type: Application/x-compress" -k --data @14.xml https://glpi/plugins/fusioninventory/

# /usr/local/bin/fusioninventory-netinventory --version
# NetInventory task 2.3.2
With patch from bug  #2336 http://forge.fusioninventory.org/issues/2336