fusioninventory / sysobject.ids

Repository to store sysobject.ids file, used for snmp network discovery
GNU General Public License v2.0
13 stars 42 forks source link

Dell Wyse with FusionInventory #63

Closed smarcos-starxpert closed 3 years ago

smarcos-starxpert commented 3 years ago

Hi,

I'm trying to inventory Wyse devices on FusionInventory 2.6 & GLPI 9.5.3 I tried NetDiscovery, but it seems to be found as printers. Then, it inventorize only few information that aren't realy reliable :

Does anyone knows if it's possible to fully inventory Dell Wyse devices (known as light devices with ThinOS installed) as if we installed FusionInventory agent in it ?

The thing is that we can't inventory and do not have to serial number as, for example :

Name/OID: .1.3.6.1.4.1.714.1.2.6.2.1.0; Value (OctetString): 651A4C6JV72 (is the serial number)

Regards

smarcos-starxpert commented 3 years ago

More information : snmpget -v1 -c *** "192.168.10.102" .1.3.6.1.4.1.714.1.2.6.2.1.0 iso.3.6.1.4.1.714.1.2.6.2.1.0 = STRING: "651A4C6JV72"


snmpget -v1 -c ***** "192.168.10.102" .1.3.6.1.2.1.1.2.0 iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.714.1.2.6

smarcos-starxpert commented 3 years ago

fusioninventory-netinventory_command.txt

g-bougard commented 3 years ago

Hi @smarcos-starxpert

indeed we have an entry in sysobject.ids telling:

714 Wyse    PRINTER

This explains why you see it as PRINTER.

Can you add the following entry in your sysobject.ids ?

714.1.2.6   Wyse    NETWORKING  Dell Wyse

Be careful to use only one tabulation between each fields.

Anyway, I don't know if "Dell Wyse" is really the model we should set. Maybe another OID is available for. Have you a link toward an official MIB ?

smarcos-starxpert commented 3 years ago

Hi to you @g-bougard

It worked, thanks. They are now in the Network Equipment section.

Now, the thing is that they do not respond to the inventory. They donc give anything but :

How to do to get the inventory as if we had installed an agent ?

smarcos-starxpert commented 3 years ago

Hi again @g-bougard,

I tried by making understand GLPI & FusionInventory to dig into the netinventory process to gather more information. However, impossible to get more information than the beggining. Even if it's now considered as a Network Equipment.

g-bougard commented 3 years ago

Hi @smarcos-starxpert

You asked:

How to do to get the inventory as if we had installed an agent ?

This is not possible with netinventory as computer inventory is not supported by that agent task. And even it won't be as SNMP support is generally not sufficient to produce an inventory computer. The only way is to integrate the agent into the system itself and unless Dell Wyse permits to install some sort of package, there's no simple way. Do you know if packages would be installed and how ?

To continue on the SNMP support, we can develop a dedicated MibSupport agent plugin to support reporting the S/N. It would be nice to identify an OID for the model and the firmware to report the ThinOS version. We may need snmpwalks and if possible related private MIBs to do so.

vhribeiro commented 3 years ago

I have the same "question" and i cant import into inventory the serial number of dell wyse ive obtain the folloing info:

The serial: SnmpGet v1.01 - Copyright (C) 2009 SnmpSoft Company [ More useful network tools on http://www.snmpsoft.com ]

OID=.1.3.6.1.4.1.714.1.2.6.2.1.0 Type=OctetString Value=JC7QDT2

In fusioninventory than value not apear:

c:\Program Files\FusionInventory-Agent\perl\bin>perl.exe fusioninventory-netinventory --credentials version:1,community:public --debug --host xxx.xxx.xxx.xx [debug] creating 1 worker threads [debug] [thread 1] creation [debug] [thread 1] #1, scanning 0: xxx.xxx.xxx.xxx [debug] [thread 1] #1, full match for sysobjectID .1.3.6.1.4.1.714.1.2.6 in database <?xml version="1.0" encoding="UTF-8" ?>

3040 8.6_013 0 xxx.xxx.xxx.xxx 127.0.0.1 6c:2b:59:59:bb:xx Dell Dell Wyse NAME NETWORKING 1 hour, 15:15.07 loop0 0 0 1 0.00 seconds 16384 loop0 1 0 0 1 1 24 127.0.0.1 127.0.0.1 enet0 0 42224995xx 1 0.00 seconds 1500 enet0 2 0 98692702 100000000 1 6 xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 6c:2b:59:59:bb:xx 4.2 1 foo SNMPQUERY

[debug] [thread 1] termination [debug] All netinventory threads terminated

How to get the serial imported?

The model and firmware apears in Sysdescr field. the oid is: .1.3.6.1.2.1.1.1.0,OctetString,3040 8.6_013

tanks

smarcos-starxpert commented 3 years ago

Hi @vhribeiro

You should have a file like this in your fusion inventory : fusioninventory/lib/FusionInventory/Agent/SNMP/Device.pm Inside it you should have a function _getSerial, with a table of oids to try to retrieve the serial. We then just added the oid for the wyse serial number at the end of the table.

g-bougard commented 3 years ago

Hi here, I just developed a dedicated WyseThinOS mibsupport module for glpi-agent in a dedicated branch. It is fully compatible with FusionInventory Agent 2.6 so try it if you can. To do so, just download WyseThinOS.pm file and copy it to FusionInventory/Agent/SNMP/MibSupport subfolder in your agent installation path. You should also revert any modification in your agent related to Wyse support to validate the dev.

TheRoby commented 3 years ago

Hi, Thank you, i update my agent and start a test :) ThinOs 9 is out (we use 8.6). i'll try if the snmp have more infos when we test it !

TheRoby commented 3 years ago

Hi, it works really well !

Thank you :)

g-bougard commented 3 years ago

Thank you for the feed back. I just merged the branch in glpi-agent default branch.