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

Brother Scanner #2

Closed TheRoby closed 1 year ago

TheRoby commented 2 years ago

Hi, I have some brother network scanner, but all was detected as MFC-9340CDW :)

I have Brother ADS-2800W : snmpget -v2c -c public 192.168.26.24 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.2435.2.3.9.1

fusioninventory-netinventory --credentials version:2c,community:public --debug --host 192.168.26.24

[debug] creating 1 worker threads
[debug] [thread 1] creation
[debug] [thread 1] #1, scanning 0: 192.168.26.24
[debug] [thread 1] #1, full match for sysobjectID .1.3.6.1.4.1.2435.2.3.9.1 in database
<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <INFO>
        <COMMENTS>Brother NC-04h, Firmware Ver.R  ,MID 8WD-502</COMMENTS>
        <ID>0</ID>
        <IPS>
          <IP>192.168.26.24</IP>
        </IPS>
        <MAC>3c:2a:f4:70:1a:84</MAC>
        <MANUFACTURER>Brother</MANUFACTURER>
        <MEMORY>512</MEMORY>
        <MODEL>MFC-9340CDW</MODEL>
        <NAME>--</NAME>
        <RAM>512</RAM>
        <SERIAL>E75529L8G253739</SERIAL>
        <TYPE>PRINTER</TYPE>
        <UPTIME>5 days, 19:16:59.75</UPTIME>
      </INFO>
      <PORTS>
        <PORT>
          <IFDESCR>NC-04h</IFDESCR>
          <IFINERRORS>0</IFINERRORS>
          <IFINOCTETS>95021764</IFINOCTETS>
          <IFINTERNALSTATUS>1</IFINTERNALSTATUS>
          <IFLASTCHANGE>9.25 seconds</IFLASTCHANGE>
          <IFMTU>1500</IFMTU>
          <IFNAME>NC-04h</IFNAME>
          <IFNUMBER>1</IFNUMBER>
          <IFOUTERRORS>0</IFOUTERRORS>
          <IFOUTOCTETS>15680328</IFOUTOCTETS>
          <IFSPEED>100000000</IFSPEED>
          <IFSTATUS>1</IFSTATUS>
          <IFTYPE>7</IFTYPE>
          <IP>192.168.26.24</IP>
          <IPS>
            <IP>192.168.26.24</IP>
          </IPS>
          <MAC>3c:2a:f4:70:1a:84</MAC>
        </PORT>
        <PORT>
          <IFDESCR>NC-05w</IFDESCR>
          <IFINERRORS>0</IFINERRORS>
          <IFINOCTETS>0</IFINOCTETS>
          <IFINTERNALSTATUS>2</IFINTERNALSTATUS>
          <IFLASTCHANGE>0.00 seconds</IFLASTCHANGE>
          <IFMTU>1500</IFMTU>
          <IFNAME>NC-05w</IFNAME>
          <IFNUMBER>2</IFNUMBER>
          <IFOUTERRORS>0</IFOUTERRORS>
          <IFOUTOCTETS>0</IFOUTOCTETS>
          <IFSPEED>72000000</IFSPEED>
          <IFSTATUS>2</IFSTATUS>
          <IFTYPE>7</IFTYPE>
          <MAC>74:40:bb:c7:9a:36</MAC>
        </PORT>
        <PORT>
          <IFDESCR>NC-05w</IFDESCR>
          <IFINERRORS>0</IFINERRORS>
          <IFINOCTETS>0</IFINOCTETS>
          <IFINTERNALSTATUS>2</IFINTERNALSTATUS>
          <IFLASTCHANGE>0.00 seconds</IFLASTCHANGE>
          <IFMTU>1500</IFMTU>
          <IFNAME>NC-05w</IFNAME>
          <IFNUMBER>3</IFNUMBER>
          <IFOUTERRORS>0</IFOUTERRORS>
          <IFOUTOCTETS>0</IFOUTOCTETS>
          <IFSPEED>72000000</IFSPEED>
          <IFSTATUS>2</IFSTATUS>
          <IFTYPE>7</IFTYPE>
          <MAC>76:40:bb:c7:1a:36</MAC>
        </PORT>
        <PORT>
          <IFDESCR>SoftwareLoopBack</IFDESCR>
          <IFINERRORS>0</IFINERRORS>
          <IFINOCTETS>0</IFINOCTETS>
          <IFINTERNALSTATUS>1</IFINTERNALSTATUS>
          <IFLASTCHANGE>0.00 seconds</IFLASTCHANGE>
          <IFMTU>1500</IFMTU>
          <IFNAME>SoftwareLoopBack</IFNAME>
          <IFNUMBER>4</IFNUMBER>
          <IFOUTERRORS>0</IFOUTERRORS>
          <IFOUTOCTETS>0</IFOUTOCTETS>
          <IFSPEED>0</IFSPEED>
          <IFSTATUS>1</IFSTATUS>
          <IFTYPE>24</IFTYPE>
        </PORT>
      </PORTS>
    </DEVICE>
    <MODULEVERSION>4.2</MODULEVERSION>
    <PROCESSNUMBER>1</PROCESSNUMBER>
  </CONTENT>
  <DEVICEID>foo</DEVICEID>
  <QUERY>SNMPQUERY</QUERY>
</REQUEST>
[debug] [thread 1] termination
[debug] All netinventory threads terminated

I have Brother ADS-2400N : snmpget -v2c -c public 192.168.11.12 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.2435.2.3.9.1 fusioninventory-netinventory --credentials version:2c,community:public --debug --host 192.168.11.12

[debug] creating 1 worker threads
[debug] [thread 1] creation
[debug] [thread 1] #1, scanning 0: 192.168.11.12
[debug] [thread 1] #1, full match for sysobjectID .1.3.6.1.4.1.2435.2.3.9.1 in database
<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <INFO>
        <COMMENTS>Brother NC-04h, Firmware Ver.R  ,MID 8WD-501</COMMENTS>
        <ID>0</ID>
        <IPS>
          <IP>192.168.11.12</IP>
        </IPS>
        <MAC>b4:22:00:22:75:c7</MAC>
        <MANUFACTURER>Brother</MANUFACTURER>
        <MEMORY>256</MEMORY>
        <MODEL>MFC-9340CDW</MODEL>
        <NAME>--</NAME>
        <RAM>256</RAM>
        <SERIAL>E75518B1G419212</SERIAL>
        <TYPE>PRINTER</TYPE>
        <UPTIME>23 days, 22:32:45.05</UPTIME>
      </INFO>
      <PORTS>
        <PORT>
          <IFDESCR>NC-04h</IFDESCR>
          <IFINERRORS>0</IFINERRORS>
          <IFINOCTETS>22526884</IFINOCTETS>
          <IFINTERNALSTATUS>1</IFINTERNALSTATUS>
          <IFLASTCHANGE>6.20 seconds</IFLASTCHANGE>
          <IFMTU>1500</IFMTU>
          <IFNAME>NC-04h</IFNAME>
          <IFNUMBER>1</IFNUMBER>
          <IFOUTERRORS>0</IFOUTERRORS>
          <IFOUTOCTETS>17982305</IFOUTOCTETS>
          <IFSPEED>100000000</IFSPEED>
          <IFSTATUS>1</IFSTATUS>
          <IFTYPE>7</IFTYPE>
          <IP>192.168.11.12</IP>
          <IPS>
            <IP>192.168.11.12</IP>
          </IPS>
          <MAC>b4:22:00:22:75:c7</MAC>
        </PORT>
        <PORT>
          <IFDESCR>SoftwareLoopBack</IFDESCR>
          <IFINERRORS>0</IFINERRORS>
          <IFINOCTETS>0</IFINOCTETS>
          <IFINTERNALSTATUS>1</IFINTERNALSTATUS>
          <IFLASTCHANGE>0.00 seconds</IFLASTCHANGE>
          <IFMTU>1500</IFMTU>
          <IFNAME>SoftwareLoopBack</IFNAME>
          <IFNUMBER>2</IFNUMBER>
          <IFOUTERRORS>0</IFOUTERRORS>
          <IFOUTOCTETS>0</IFOUTOCTETS>
          <IFSPEED>0</IFSPEED>
          <IFSTATUS>1</IFSTATUS>
          <IFTYPE>24</IFTYPE>
        </PORT>
      </PORTS>
    </DEVICE>
    <MODULEVERSION>4.2</MODULEVERSION>
    <PROCESSNUMBER>1</PROCESSNUMBER>
  </CONTENT>
  <DEVICEID>foo</DEVICEID>
  <QUERY>SNMPQUERY</QUERY>
</REQUEST>
[debug] [thread 1] termination
[debug] All netinventory threads terminated

Thank you :)

g-bougard commented 1 year ago

Hi @TheRoby sorry for the delay, don't know why I didn't received notifications for this repo. This repo is for glpi-agent. Glpi-agent has a dedicated MibSupport module which should catch the expected model. So as I see you were still using fusioninventory-agent, try glpi-agent ;-)

Actually, I removed the default model that was wrongly set for a generic sysObjectID OID.