glpi-project / glpi-agent

GLPI Agent
GNU General Public License v2.0
246 stars 61 forks source link

Plotter Canon TM-300 #351

Closed Giudy closed 1 year ago

Giudy commented 1 year ago

Hello we have an issue with the printer Canon TM-300 It does find, partially, the manufacturer but it is not imported as no xml is fetched.

here the usual commands report

davide

[root@xxxx ~]# glpi-netdiscovery  --credential version:1,community:public --debug --host 192.168.99.70
[debug] Logger backend Stderr initialized
[debug] GLPI Agent (1.5-git75728309)
[info] Can't load Net::NBName, netbios can't be used
[debug] initializing job 1
[debug] initializing block 192.168.99.70-192.168.99.70
[debug] Current run expiration timeout: soon
[debug] creating 1 worker threads
[debug] [thread 1] creation
[debug] [thread 1] glpi-project/sysobject.ids#1, scanning 192.168.99.70
[debug] [thread 1] glpi-project/sysobject.ids#1, partial match for sysobjectID .1.3.6.1.4.1.1602.4.3 on manufacturer ID
[debug] [thread 1] glpi-project/sysobject.ids#1, - scanning 192.168.99.70 with SNMP, credentials 1: success
[debug] [thread 1] glpi-project/sysobject.ids#1, - scanning 192.168.99.70 with echo ping: no result
[debug] [thread 1] glpi-project/sysobject.ids#1, - scanning 192.168.99.70 in arp table: no result
[debug] [thread 1] termination
[debug] All netdiscovery threads terminated

Here the snmpwalk result:

[root@mlv-glpi01 ~]# snmpwalk -v 1 -c public 192.168.99.70
SNMPv2-MIB::sysDescr.0 = STRING: Canon TM-300 /P
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.1602.4.3
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (351300) 0:58:33.00
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING:
SNMPv2-MIB::sysLocation.0 = STRING:
IF-MIB::ifNumber.0 = INTEGER: 2
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifDescr.1 = STRING: Canon NB-20GB 1.0
IF-MIB::ifDescr.2 = STRING: Canon NB-20GB 1.0
IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifSpeed.1 = Gauge32: 1000000000
IF-MIB::ifSpeed.2 = Gauge32: 0
IF-MIB::ifPhysAddress.1 = STRING: 74:38:b7:c9:51:70
IF-MIB::ifPhysAddress.2 = STRING: f8:a2:6d:41:c5:e1
IP-MIB::ipAdEntAddr.192.168.99.70 = IpAddress: 192.168.99.70
IP-MIB::ipAdEntNetMask.192.168.99.70 = IpAddress: 255.255.255.0
IP-MIB::ip.21.1.1.0.0.0.0 = IpAddress: 0.0.0.0
IP-MIB::ip.21.1.7.0.0.0.0 = IpAddress: 192.168.99.1
SNMPv2-MIB::snmpInPkts.0 = Counter32: 2050
SNMPv2-MIB::snmpOutPkts.0 = Counter32: 2042
SNMPv2-MIB::snmpInBadCommunityNames.0 = Counter32: 1
SNMPv2-MIB::snmpInBadCommunityUses.0 = Counter32: 0
SNMPv2-MIB::snmpInGetRequests.0 = Counter32: 816
SNMPv2-MIB::snmpInGetNexts.0 = Counter32: 1231
SNMPv2-MIB::snmpInSetRequests.0 = Counter32: 0
SNMPv2-MIB::snmpOutTraps.0 = Counter32: 0
HOST-RESOURCES-MIB::hrMemorySize.0 = INTEGER: 2097152 KBytes
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: FIRMROM
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: RAM
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: NVRAM
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 1 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 1 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 1 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 33554432
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 268435456
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 65536
HOST-RESOURCES-MIB::hrDeviceIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrDeviceType.1 = OID: HOST-RESOURCES-TYPES::hrDevicePrinter
HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: Canon TM-300
HOST-RESOURCES-MIB::hrDeviceID.1 = OID: SNMPv2-SMI::enterprises.1602.4.3
HOST-RESOURCES-MIB::hrDeviceStatus.1 = INTEGER: running(2)
HOST-RESOURCES-MIB::hrPrinterStatus.1 = INTEGER: other(1)
HOST-RESOURCES-MIB::hrPrinterDetectedErrorState.1 = Hex-STRING: 00
SNMPv2-SMI::mib-2.43.5.1.1.1.1 = Counter32: 0
SNMPv2-SMI::mib-2.43.5.1.1.2.1 = INTEGER: 1
SNMPv2-SMI::mib-2.43.5.1.1.3.1 = INTEGER: 3
SNMPv2-SMI::mib-2.43.5.1.1.4.1 = ""
SNMPv2-SMI::mib-2.43.5.1.1.5.1 = ""
SNMPv2-SMI::mib-2.43.5.1.1.10.1 = INTEGER: 5
SNMPv2-SMI::mib-2.43.5.1.1.11.1 = INTEGER: 1
SNMPv2-SMI::mib-2.43.5.1.1.12.1 = INTEGER: 255
SNMPv2-SMI::mib-2.43.5.1.1.13.1 = INTEGER: 3
SNMPv2-SMI::mib-2.43.7.1.1.3.1.1 = STRING: "US"
SNMPv2-SMI::mib-2.43.7.1.1.4.1.1 = INTEGER: 106
SNMPv2-SMI::mib-2.43.8.2.1.2.1.1 = INTEGER: 5
SNMPv2-SMI::mib-2.43.8.2.1.2.1.2 = INTEGER: 6
SNMPv2-SMI::mib-2.43.8.2.1.3.1.1 = INTEGER: 4
SNMPv2-SMI::mib-2.43.8.2.1.3.1.2 = INTEGER: 4
SNMPv2-SMI::mib-2.43.8.2.1.4.1.1 = INTEGER: -2
SNMPv2-SMI::mib-2.43.8.2.1.4.1.2 = INTEGER: 1219200
SNMPv2-SMI::mib-2.43.8.2.1.5.1.1 = INTEGER: -2
SNMPv2-SMI::mib-2.43.8.2.1.5.1.2 = INTEGER: 914400
SNMPv2-SMI::mib-2.43.8.2.1.6.1.1 = INTEGER: -2
SNMPv2-SMI::mib-2.43.8.2.1.6.1.2 = INTEGER: 1219200
SNMPv2-SMI::mib-2.43.8.2.1.7.1.1 = INTEGER: -2
SNMPv2-SMI::mib-2.43.8.2.1.7.1.2 = INTEGER: 914400
SNMPv2-SMI::mib-2.43.8.2.1.8.1.1 = INTEGER: 8
SNMPv2-SMI::mib-2.43.8.2.1.8.1.2 = INTEGER: 4
SNMPv2-SMI::mib-2.43.8.2.1.9.1.1 = INTEGER: 1
SNMPv2-SMI::mib-2.43.8.2.1.9.1.2 = INTEGER: 200000000
SNMPv2-SMI::mib-2.43.8.2.1.10.1.1 = INTEGER: 0
SNMPv2-SMI::mib-2.43.8.2.1.10.1.2 = INTEGER: -3
SNMPv2-SMI::mib-2.43.8.2.1.11.1.1 = INTEGER: 0
SNMPv2-SMI::mib-2.43.8.2.1.11.1.2 = INTEGER: 0
SNMPv2-SMI::mib-2.43.8.2.1.12.1.1 = ""
SNMPv2-SMI::mib-2.43.8.2.1.12.1.2 = ""
SNMPv2-SMI::mib-2.43.8.2.1.13.1.1 = STRING: "Multi-Purpose Tray"
SNMPv2-SMI::mib-2.43.8.2.1.13.1.2 = STRING: "Roll Unit 1"
SNMPv2-SMI::mib-2.43.8.2.1.14.1.1 = STRING: "Canon"
SNMPv2-SMI::mib-2.43.8.2.1.14.1.2 = STRING: "Canon"
SNMPv2-SMI::mib-2.43.8.2.1.15.1.1 = ""
SNMPv2-SMI::mib-2.43.8.2.1.15.1.2 = ""
SNMPv2-SMI::mib-2.43.8.2.1.16.1.1 = ""
SNMPv2-SMI::mib-2.43.8.2.1.16.1.2 = ""
SNMPv2-SMI::mib-2.43.8.2.1.17.1.1 = ""
SNMPv2-SMI::mib-2.43.8.2.1.17.1.2 = ""
SNMPv2-SMI::mib-2.43.8.2.1.18.1.1 = ""
SNMPv2-SMI::mib-2.43.8.2.1.18.1.2 = ""
SNMPv2-SMI::mib-2.43.8.2.1.21.1.1 = STRING: "Undefined"
SNMPv2-SMI::mib-2.43.8.2.1.21.1.2 = STRING: "Plain papers"
SNMPv2-SMI::mib-2.43.9.2.1.3.1.1 = INTEGER: 8
SNMPv2-SMI::mib-2.43.9.2.1.4.1.1 = INTEGER: 1
SNMPv2-SMI::mib-2.43.9.2.1.5.1.1 = INTEGER: -2
SNMPv2-SMI::mib-2.43.9.2.1.7.1.1 = STRING: "Output Tray"
SNMPv2-SMI::mib-2.43.10.2.1.3.1.1 = INTEGER: 8
SNMPv2-SMI::mib-2.43.10.2.1.4.1.1 = Counter32: 760
SNMPv2-SMI::mib-2.43.10.2.1.5.1.1 = Counter32: 0
SNMPv2-SMI::mib-2.43.11.1.1.2.1.1 = INTEGER: 1
SNMPv2-SMI::mib-2.43.11.1.1.2.1.2 = INTEGER: 1
SNMPv2-SMI::mib-2.43.11.1.1.2.1.3 = INTEGER: 1
SNMPv2-SMI::mib-2.43.11.1.1.2.1.4 = INTEGER: 1
SNMPv2-SMI::mib-2.43.11.1.1.2.1.5 = INTEGER: 1
SNMPv2-SMI::mib-2.43.11.1.1.2.1.6 = INTEGER: 1
SNMPv2-SMI::mib-2.43.11.1.1.3.1.1 = INTEGER: 1
SNMPv2-SMI::mib-2.43.11.1.1.3.1.2 = INTEGER: 2
SNMPv2-SMI::mib-2.43.11.1.1.3.1.3 = INTEGER: 3
SNMPv2-SMI::mib-2.43.11.1.1.3.1.4 = INTEGER: 4
SNMPv2-SMI::mib-2.43.11.1.1.3.1.5 = INTEGER: 5
SNMPv2-SMI::mib-2.43.11.1.1.3.1.6 = INTEGER: 6
SNMPv2-SMI::mib-2.43.11.1.1.4.1.1 = INTEGER: 3
SNMPv2-SMI::mib-2.43.11.1.1.4.1.2 = INTEGER: 3
SNMPv2-SMI::mib-2.43.11.1.1.4.1.3 = INTEGER: 3
SNMPv2-SMI::mib-2.43.11.1.1.4.1.4 = INTEGER: 3
SNMPv2-SMI::mib-2.43.11.1.1.4.1.5 = INTEGER: 3
SNMPv2-SMI::mib-2.43.11.1.1.4.1.6 = INTEGER: 4
SNMPv2-SMI::mib-2.43.11.1.1.5.1.1 = INTEGER: 6
SNMPv2-SMI::mib-2.43.11.1.1.5.1.2 = INTEGER: 6
SNMPv2-SMI::mib-2.43.11.1.1.5.1.3 = INTEGER: 6
SNMPv2-SMI::mib-2.43.11.1.1.5.1.4 = INTEGER: 6
SNMPv2-SMI::mib-2.43.11.1.1.5.1.5 = INTEGER: 6
SNMPv2-SMI::mib-2.43.11.1.1.5.1.6 = INTEGER: 8
SNMPv2-SMI::mib-2.43.11.1.1.6.1.1 = STRING: "CANON Matte Black Ink Tank"
SNMPv2-SMI::mib-2.43.11.1.1.6.1.2 = STRING: "CANON Black Ink Tank"
SNMPv2-SMI::mib-2.43.11.1.1.6.1.3 = STRING: "CANON Yellow Ink Tank"
SNMPv2-SMI::mib-2.43.11.1.1.6.1.4 = STRING: "CANON Magenta Ink Tank"
SNMPv2-SMI::mib-2.43.11.1.1.6.1.5 = STRING: "CANON Cyan Ink Tank"
SNMPv2-SMI::mib-2.43.11.1.1.6.1.6 = STRING: "CANON Waste Ink Tank"
SNMPv2-SMI::mib-2.43.11.1.1.7.1.1 = INTEGER: 15
SNMPv2-SMI::mib-2.43.11.1.1.7.1.2 = INTEGER: 15
SNMPv2-SMI::mib-2.43.11.1.1.7.1.3 = INTEGER: 15
SNMPv2-SMI::mib-2.43.11.1.1.7.1.4 = INTEGER: 15
SNMPv2-SMI::mib-2.43.11.1.1.7.1.5 = INTEGER: 15
SNMPv2-SMI::mib-2.43.11.1.1.7.1.6 = INTEGER: 15
SNMPv2-SMI::mib-2.43.11.1.1.8.1.1 = INTEGER: 1300
SNMPv2-SMI::mib-2.43.11.1.1.8.1.2 = INTEGER: 1300
SNMPv2-SMI::mib-2.43.11.1.1.8.1.3 = INTEGER: 1300
SNMPv2-SMI::mib-2.43.11.1.1.8.1.4 = INTEGER: 1300
SNMPv2-SMI::mib-2.43.11.1.1.8.1.5 = INTEGER: 1300
SNMPv2-SMI::mib-2.43.11.1.1.8.1.6 = INTEGER: 6700
SNMPv2-SMI::mib-2.43.11.1.1.9.1.1 = INTEGER: 1300
SNMPv2-SMI::mib-2.43.11.1.1.9.1.2 = INTEGER: 1300
SNMPv2-SMI::mib-2.43.11.1.1.9.1.3 = INTEGER: 1300
SNMPv2-SMI::mib-2.43.11.1.1.9.1.4 = INTEGER: 1300
SNMPv2-SMI::mib-2.43.11.1.1.9.1.5 = INTEGER: 1300
SNMPv2-SMI::mib-2.43.11.1.1.9.1.6 = INTEGER: 5360
SNMPv2-SMI::mib-2.43.12.1.1.2.1.1 = INTEGER: 1
SNMPv2-SMI::mib-2.43.12.1.1.2.1.2 = INTEGER: 1
SNMPv2-SMI::mib-2.43.12.1.1.2.1.3 = INTEGER: 1
SNMPv2-SMI::mib-2.43.12.1.1.2.1.4 = INTEGER: 1
SNMPv2-SMI::mib-2.43.12.1.1.2.1.5 = INTEGER: 1
SNMPv2-SMI::mib-2.43.12.1.1.2.1.6 = INTEGER: 1
SNMPv2-SMI::mib-2.43.12.1.1.4.1.1 = STRING: "Matte Black"
SNMPv2-SMI::mib-2.43.12.1.1.4.1.2 = STRING: "Black"
SNMPv2-SMI::mib-2.43.12.1.1.4.1.3 = STRING: "Yellow"
SNMPv2-SMI::mib-2.43.12.1.1.4.1.4 = STRING: "Magenta"
SNMPv2-SMI::mib-2.43.12.1.1.4.1.5 = STRING: "Cyan"
SNMPv2-SMI::mib-2.43.12.1.1.4.1.6 = STRING: "Waste"
SNMPv2-SMI::mib-2.43.13.4.1.2.1.1 = INTEGER: 17
SNMPv2-SMI::mib-2.43.13.4.1.4.1.1 = INTEGER: 33
SNMPv2-SMI::mib-2.43.13.4.1.9.1.1 = INTEGER: 5
SNMPv2-SMI::mib-2.43.13.4.1.10.1.1 = STRING: "Simplex"
SNMPv2-SMI::mib-2.43.15.1.1.2.1.1 = INTEGER: 1
SNMPv2-SMI::mib-2.43.15.1.1.2.1.2 = INTEGER: 3
SNMPv2-SMI::mib-2.43.15.1.1.2.1.3 = INTEGER: 1
SNMPv2-SMI::mib-2.43.15.1.1.3.1.1 = ""
SNMPv2-SMI::mib-2.43.15.1.1.3.1.2 = ""
SNMPv2-SMI::mib-2.43.15.1.1.3.1.3 = ""
SNMPv2-SMI::mib-2.43.15.1.1.5.1.1 = STRING: "SGRaster"
SNMPv2-SMI::mib-2.43.15.1.1.5.1.2 = STRING: "HP-GL/2"
SNMPv2-SMI::mib-2.43.15.1.1.5.1.3 = STRING: "HP RTL"
SNMPv2-SMI::mib-2.43.16.5.1.2.1.1 = STRING: "Sleeping."
SNMPv2-SMI::mib-2.43.17.6.1.2.1.1 = INTEGER: 1000
SNMPv2-SMI::mib-2.43.17.6.1.2.1.2 = INTEGER: 1000
SNMPv2-SMI::mib-2.43.17.6.1.2.1.3 = INTEGER: 1000
SNMPv2-SMI::mib-2.43.17.6.1.3.1.1 = INTEGER: 0
SNMPv2-SMI::mib-2.43.17.6.1.3.1.2 = INTEGER: 0
SNMPv2-SMI::mib-2.43.17.6.1.3.1.3 = INTEGER: 0
SNMPv2-SMI::mib-2.43.17.6.1.5.1.1 = STRING: "POWER"
SNMPv2-SMI::mib-2.43.17.6.1.5.1.2 = STRING: "DATA"
SNMPv2-SMI::mib-2.43.17.6.1.5.1.3 = STRING: "MESSAGE"
SNMPv2-SMI::mib-2.43.18.1.1.8.1.1 = ""
SNMPv2-SMI::mib-2.43.18.1.1.8.1.2 = ""
SNMPv2-SMI::mib-2.43.18.1.1.8.1.3 = ""
SNMPv2-SMI::mib-2.43.18.1.1.8.1.4 = ""
SNMPv2-SMI::mib-2.43.18.1.1.8.1.5 = ""
SNMPv2-SMI::mib-2.43.18.1.1.8.1.6 = ""
SNMPv2-SMI::mib-2.43.18.1.1.8.1.7 = ""
SNMPv2-SMI::mib-2.43.18.1.1.8.1.8 = ""
SNMPv2-SMI::mib-2.43.18.1.1.8.1.9 = ""
SNMPv2-SMI::mib-2.43.18.1.1.8.1.10 = ""
SNMPv2-SMI::mib-2.43.18.1.1.8.1.11 = ""
g-bougard commented 1 year ago

Hi @Giudy

firstly, SNMPv2-MIB::sysName.0 seems empty in your walk. Maybe this is the reason. You should check if you can edit the printer configuration to set its "sysName".

sghebuz commented 1 year ago

Hi, after setting the printer name it now gets some XML, but not the MAC address nor the serial number. The serial number is not shown on the snmpwalk, but the MAC is, what should we do for it to show up?


[debug] Logger backend Stderr initialized
[debug] GLPI Agent (1.5-git75728309)
[info] Can't load Net::NBName, netbios can't be used
[debug] initializing job 1
[debug] initializing block 192.168.99.70-192.168.99.70
[debug] Current run expiration timeout: soon
[debug] creating 1 worker threads
[debug] [thread 1] creation
[debug] [thread 1] glpi-project/sysobject.ids#1, scanning 192.168.99.70
[debug] [thread 1] glpi-project/sysobject.ids#1, full match for sysobjectID .1.3.6.1.4.1.1602.4.3 in database
[debug] [thread 1] glpi-project/sysobject.ids#1, - scanning 192.168.99.70 with SNMP, credentials 1: success
[debug] [thread 1] glpi-project/sysobject.ids#1, - scanning 192.168.99.70 with echo ping: no result
[debug] [thread 1] glpi-project/sysobject.ids#1, - scanning 192.168.99.70 in arp table: no result
<?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <AUTHSNMP>1</AUTHSNMP>
      <DESCRIPTION>Canon TM-300 /P</DESCRIPTION>
      <IP>192.168.99.70</IP>
      <IPS>
        <IP>192.168.99.70</IP>
      </IPS>
      <MANUFACTURER>Canon</MANUFACTURER>
      <MODEL>Canon TM-300</MODEL>
      <SNMPHOSTNAME>Plotter Engineering</SNMPHOSTNAME>
      <TYPE>PRINTER</TYPE>
      <UPTIME>13 minutes, 31.00</UPTIME>
    </DEVICE>
    <MODULEVERSION>5.1</MODULEVERSION>
    <PROCESSNUMBER>1</PROCESSNUMBER>
  </CONTENT>
  <DEVICEID>foo</DEVICEID>
  <QUERY>NETDISCOVERY</QUERY>
</REQUEST>
[debug] [thread 1] termination
[debug] All netdiscovery threads terminated 
g-bougard commented 1 year ago

Hi @sghebuz

I moved your issue to the proper repository.

Nice to see you just had to set a proper name on the device to still have a better detection.

Setting the SNMPv2-MIB::sysName.0 to what you seem to have set I can use glpi-netinventory script to produce:

<?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <CARTRIDGES>
        <CARTRIDGEBLACK>100</CARTRIDGEBLACK>
        <CARTRIDGECYAN>100</CARTRIDGECYAN>
        <CARTRIDGEMAGENTA>100</CARTRIDGEMAGENTA>
        <CARTRIDGEMATTE>100</CARTRIDGEMATTE>
        <CARTRIDGEYELLOW>100</CARTRIDGEYELLOW>
        <WASTETONER>80</WASTETONER>
      </CARTRIDGES>
      <INFO>
        <COMMENTS>Canon TM-300 /P</COMMENTS>
        <ID>0</ID>
        <MANUFACTURER>Canon</MANUFACTURER>
        <MODEL>Canon TM-300</MODEL>
        <NAME>Plotter Engineering</NAME>
        <TYPE>PRINTER</TYPE>
      </INFO>
      <PAGECOUNTERS>
        <TOTAL>760</TOTAL>
      </PAGECOUNTERS>
      <PORTS>
        <PORT>
          <IFDESCR>Canon NB-20GB 1.0</IFDESCR>
          <IFNAME>Canon NB-20GB 1.0</IFNAME>
          <IFNUMBER>1</IFNUMBER>
          <IFSPEED>1000000000</IFSPEED>
          <IFTYPE>6</IFTYPE>
          <MAC>74:38:b7:c9:51:70</MAC>
        </PORT>
        <PORT>
          <IFDESCR>Canon NB-20GB 1.0</IFDESCR>
          <IFNAME>Canon NB-20GB 1.0</IFNAME>
          <IFNUMBER>2</IFNUMBER>
          <IFSPEED>0</IFSPEED>
          <IFTYPE>6</IFTYPE>
          <MAC>f8:a2:6d:41:c5:e1</MAC>
        </PORT>
      </PORTS>
    </DEVICE>
    <MODULEVERSION>5.1</MODULEVERSION>
    <PROCESSNUMBER>1</PROCESSNUMBER>
  </CONTENT>
  <DEVICEID>foo</DEVICEID>
  <QUERY>SNMPQUERY</QUERY>
</REQUEST>

So yes, mac address is missing. Without serial the device can't be imported so.

With the walk we can see there's 2 ports. But it seems the agent can't decide which mac address to use. Can you still confirm which one is the right one ? I guess this is 74:38:b7:c9:51:70 as we detect a port speed.

Anyway, there's not enough information in the walk. Can you still try to use the command proposed there to produce a walk in the right format and maybe with more information: snmpwalk output for bug reporting

sghebuz commented 1 year ago

Hi, yes 74:38:b7:c9:51:70 is the correct MAC address, I saw that the printer have also a wireless card, maybe the other MAC is of the wireless card. Please see attached the snmpwak in debug mode, I run it in v1 and v3 The serial number of this machine is BALB28472 but I can't find it anywere on the snmpwalk. Probably it's only in the proprietary mibs... https://developers.canon-europe.com/s/mib walk-tm300.txt walk-tm300-snmpv3.txt

g-bougard commented 1 year ago

Nice, I see the S/N in private OIDs. We will be able to add its support. I see we should be able also to support firmware version. For the mac, I'm not sure this can be solved safely but with the S/N this becomes not important as S/N is sufficient to import the device. I guess too the second port is the wireless card.

sghebuz commented 1 year ago

that is great, let me know if there is anything else we can do from our side. thanks!

g-bougard commented 1 year ago

For now, I need to wait at least 24h before having access to MIBs. I need so to verify what I can really use safely. So I'll investigate to enhance Canon support on monday.

g-bougard commented 1 year ago

Hi @sghebuz next nightly build should give you a plain support for your printer.

sghebuz commented 1 year ago

work perfectly thanks a lot!