glpi-project / sysobject.ids

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

New Sysobjectid Mellanox MSN3700C with Cumulus 4.2 #23

Closed vandsten closed 11 months ago

vandsten commented 1 year ago

Hello, I have the following switch


root@agenthost:~# snmpget -v2c -c public IP 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.40310
root@agenthost:~# glpi-netinventory --credentials version:2c,community:public --debug --host iIP
[debug] Logger backend Stderr initialized
[debug] GLPI Agent (1.5-1)
[debug] Current run expiration timeout: 1.0 hour
[debug] creating 1 worker threads
[debug] [thread 1] creation
[debug] [thread 1] #1, scanning 0: IP
[debug] [thread 1] #1, no match for sysobjectID .1.3.6.1.4.1.40310 in database: unknown manufacturer ID
<?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <FIRMWARES>
        <DESCRIPTION>device firmware</DESCRIPTION>
        <NAME>SSG7A80803</NAME>
        <TYPE>device</TYPE>
        <VERSION>Cumulus-Linux 4.2.0 (Linux Kernel 4.19.94-1+cl4u5)</VERSION>
      </FIRMWARES>
      <INFO>
        <COMMENTS>Cumulus-Linux 4.2.0 (Linux Kernel 4.19.94-1+cl4u5)</COMMENTS>
        <CONTACT>root</CONTACT>
        <FIRMWARE>Cumulus-Linux 4.2.0 (Linux Kernel 4.19.94-1+cl4u5)</FIRMWARE>
        <ID>0</ID>
        <IPS>
          <IP>IP</IP>
          <IP>127.0.0.1</IP>
        </IPS>
        <LOCATION>Unknown</LOCATION>
        <MAC>##########</MAC>
        <MEMORY>7</MEMORY>
        <MODEL>SSG7A80803</MODEL>
        <NAME>HOSTNAME</NAME>
        <RAM>7863</RAM>
        <SERIAL>SSSSSSS</SERIAL>
        <UPTIME>167 days, 04:07:55.04</UPTIME>

How I could add this switch manually to sysobject.ids file?. I only have the value 40310 value and I dont have model value to identify it.

Thank you in advace.

Best regards

g-bougard commented 11 months ago

Hi @vandsten

you can read sysobject.ids short documentation to understand how this file is used.

In your case, you still can just add the following line in your sysobject.ids file, be careful to use one tabulation as separator between fields:

40310   Mellanox    NETWORKING

Here your Mellanox MSN3700C seems to report SSG7A80803 as model. In #24, you shared Mellanox MSN2410 seems to report SSG7A80799 as model. As I understand, this is not what you expect as model. For that problem, as for #25, you'll have to open an glpi-agent issue but this time providing snmpwalk output for your 2 Mellanox devices. In that way, we may be able to add a Mellanox dedicated module to extract the expected model.

g-bougard commented 11 months ago

Closing without user feedback.

Feel free to re-open.