diff --git a/includes/definitions/konica.yaml b/includes/definitions/konica.yaml index 991b7e6367..c2932b7709 100644 --- a/includes/definitions/konica.yaml +++ b/includes/definitions/konica.yaml @@ -7,6 +7,8 @@ over: discovery: - sysDescr: - KONICA MINOLTA + - sysObjectID: + - .1.3.6.1.4.1.18334.1.2.1.2.1. discovery_modules: toner: 1 poller_modules: diff --git a/tests/data/konica.json b/tests/data/konica.json new file mode 100644 index 0000000000..96867b8023 --- /dev/null +++ b/tests/data/konica.json @@ -0,0 +1,761 @@ +{ + "os": { + "discovery": { + "devices": [ + { + "sysName": "", + "sysObjectID": ".1.3.6.1.4.1.18334.1.1.1.2.1.117.2.2", + "sysDescr": "KONICA MINOLTA bizhub C3110", + "sysContact": null, + "version": null, + "hardware": "", + "features": null, + "location": null, + "os": "konica", + "type": "printer", + "serial": null, + "icon": "konica.svg" + } + ] + }, + "poller": { + "devices": [ + { + "sysName": "", + "sysObjectID": ".1.3.6.1.4.1.18334.1.1.1.2.1.117.2.2", + "sysDescr": "KONICA MINOLTA bizhub C3110", + "sysContact": "", + "version": "1.80", + "hardware": "Develop ineo+ 280", + "features": null, + "location": "", + "os": "konica", + "type": "printer", + "serial": null, + "icon": "konica.svg" + } + ] + } + }, + "ports": { + "discovery": { + "ports": [ + { + "port_descr_type": null, + "port_descr_descr": null, + "port_descr_circuit": null, + "port_descr_speed": null, + "port_descr_notes": null, + "ifDescr": "Ethernet 10/100/1000 Base-T", + "ifName": "", + "portName": null, + "ifIndex": "1", + "ifSpeed": null, + "ifConnectorPresent": null, + "ifPromiscuousMode": null, + "ifHighSpeed": null, + "ifOperStatus": null, + "ifOperStatus_prev": null, + "ifAdminStatus": null, + "ifAdminStatus_prev": null, + "ifDuplex": null, + "ifMtu": null, + "ifType": null, + "ifAlias": "", + "ifPhysAddress": null, + "ifHardType": null, + "ifLastChange": "0", + "ifVlan": "", + "ifTrunk": null, + "ifVrf": "0", + "counter_in": null, + "counter_out": null, + "ignore": "0", + "disabled": "0", + "detailed": "0", + "deleted": "0", + "pagpOperationMode": null, + "pagpPortState": null, + "pagpPartnerDeviceId": null, + "pagpPartnerLearnMethod": null, + "pagpPartnerIfIndex": null, + "pagpPartnerGroupIfIndex": null, + "pagpPartnerDeviceName": null, + "pagpEthcOperationMode": null, + "pagpDeviceId": null, + "pagpGroupIfIndex": null, + "ifInUcastPkts": null, + "ifInUcastPkts_prev": null, + "ifInUcastPkts_delta": null, + "ifInUcastPkts_rate": null, + "ifOutUcastPkts": null, + "ifOutUcastPkts_prev": null, + "ifOutUcastPkts_delta": null, + "ifOutUcastPkts_rate": null, + "ifInErrors": null, + "ifInErrors_prev": null, + "ifInErrors_delta": null, + "ifInErrors_rate": null, + "ifOutErrors": null, + "ifOutErrors_prev": null, + "ifOutErrors_delta": null, + "ifOutErrors_rate": null, + "ifInOctets": null, + "ifInOctets_prev": null, + "ifInOctets_delta": null, + "ifInOctets_rate": null, + "ifOutOctets": null, + "ifOutOctets_prev": null, + "ifOutOctets_delta": null, + "ifOutOctets_rate": null, + "poll_prev": null, + "ifInNUcastPkts": null, + "ifInNUcastPkts_prev": null, + "ifInNUcastPkts_delta": null, + "ifInNUcastPkts_rate": null, + "ifOutNUcastPkts": null, + "ifOutNUcastPkts_prev": null, + "ifOutNUcastPkts_delta": null, + "ifOutNUcastPkts_rate": null, + "ifInDiscards": null, + "ifInDiscards_prev": null, + "ifInDiscards_delta": null, + "ifInDiscards_rate": null, + "ifOutDiscards": null, + "ifOutDiscards_prev": null, + "ifOutDiscards_delta": null, + "ifOutDiscards_rate": null, + "ifInUnknownProtos": null, + "ifInUnknownProtos_prev": null, + "ifInUnknownProtos_delta": null, + "ifInUnknownProtos_rate": null, + "ifInBroadcastPkts": null, + "ifInBroadcastPkts_prev": null, + "ifInBroadcastPkts_delta": null, + "ifInBroadcastPkts_rate": null, + "ifOutBroadcastPkts": null, + "ifOutBroadcastPkts_prev": null, + "ifOutBroadcastPkts_delta": null, + "ifOutBroadcastPkts_rate": null, + "ifInMulticastPkts": null, + "ifInMulticastPkts_prev": null, + "ifInMulticastPkts_delta": null, + "ifInMulticastPkts_rate": null, + "ifOutMulticastPkts": null, + "ifOutMulticastPkts_prev": null, + "ifOutMulticastPkts_delta": null, + "ifOutMulticastPkts_rate": null + }, + { + "port_descr_type": null, + "port_descr_descr": null, + "port_descr_circuit": null, + "port_descr_speed": null, + "port_descr_notes": null, + "ifDescr": "Software Loopback", + "ifName": "", + "portName": null, + "ifIndex": "2", + "ifSpeed": null, + "ifConnectorPresent": null, + "ifPromiscuousMode": null, + "ifHighSpeed": null, + "ifOperStatus": null, + "ifOperStatus_prev": null, + "ifAdminStatus": null, + "ifAdminStatus_prev": null, + "ifDuplex": null, + "ifMtu": null, + "ifType": null, + "ifAlias": "", + "ifPhysAddress": null, + "ifHardType": null, + "ifLastChange": "0", + "ifVlan": "", + "ifTrunk": null, + "ifVrf": "0", + "counter_in": null, + "counter_out": null, + "ignore": "0", + "disabled": "0", + "detailed": "0", + "deleted": "0", + "pagpOperationMode": null, + "pagpPortState": null, + "pagpPartnerDeviceId": null, + "pagpPartnerLearnMethod": null, + "pagpPartnerIfIndex": null, + "pagpPartnerGroupIfIndex": null, + "pagpPartnerDeviceName": null, + "pagpEthcOperationMode": null, + "pagpDeviceId": null, + "pagpGroupIfIndex": null, + "ifInUcastPkts": null, + "ifInUcastPkts_prev": null, + "ifInUcastPkts_delta": null, + "ifInUcastPkts_rate": null, + "ifOutUcastPkts": null, + "ifOutUcastPkts_prev": null, + "ifOutUcastPkts_delta": null, + "ifOutUcastPkts_rate": null, + "ifInErrors": null, + "ifInErrors_prev": null, + "ifInErrors_delta": null, + "ifInErrors_rate": null, + "ifOutErrors": null, + "ifOutErrors_prev": null, + "ifOutErrors_delta": null, + "ifOutErrors_rate": null, + "ifInOctets": null, + "ifInOctets_prev": null, + "ifInOctets_delta": null, + "ifInOctets_rate": null, + "ifOutOctets": null, + "ifOutOctets_prev": null, + "ifOutOctets_delta": null, + "ifOutOctets_rate": null, + "poll_prev": null, + "ifInNUcastPkts": null, + "ifInNUcastPkts_prev": null, + "ifInNUcastPkts_delta": null, + "ifInNUcastPkts_rate": null, + "ifOutNUcastPkts": null, + "ifOutNUcastPkts_prev": null, + "ifOutNUcastPkts_delta": null, + "ifOutNUcastPkts_rate": null, + "ifInDiscards": null, + "ifInDiscards_prev": null, + "ifInDiscards_delta": null, + "ifInDiscards_rate": null, + "ifOutDiscards": null, + "ifOutDiscards_prev": null, + "ifOutDiscards_delta": null, + "ifOutDiscards_rate": null, + "ifInUnknownProtos": null, + "ifInUnknownProtos_prev": null, + "ifInUnknownProtos_delta": null, + "ifInUnknownProtos_rate": null, + "ifInBroadcastPkts": null, + "ifInBroadcastPkts_prev": null, + "ifInBroadcastPkts_delta": null, + "ifInBroadcastPkts_rate": null, + "ifOutBroadcastPkts": null, + "ifOutBroadcastPkts_prev": null, + "ifOutBroadcastPkts_delta": null, + "ifOutBroadcastPkts_rate": null, + "ifInMulticastPkts": null, + "ifInMulticastPkts_prev": null, + "ifInMulticastPkts_delta": null, + "ifInMulticastPkts_rate": null, + "ifOutMulticastPkts": null, + "ifOutMulticastPkts_prev": null, + "ifOutMulticastPkts_delta": null, + "ifOutMulticastPkts_rate": null + } + ] + }, + "poller": { + "ports": [ + { + "port_descr_type": null, + "port_descr_descr": null, + "port_descr_circuit": null, + "port_descr_speed": null, + "port_descr_notes": null, + "ifDescr": "Ethernet 10/100/1000 Base-T", + "ifName": "Ethernet 10/100/1000 Base-T", + "portName": null, + "ifIndex": "1", + "ifSpeed": "1000000000", + "ifConnectorPresent": null, + "ifPromiscuousMode": null, + "ifHighSpeed": null, + "ifOperStatus": "up", + "ifOperStatus_prev": null, + "ifAdminStatus": "up", + "ifAdminStatus_prev": null, + "ifDuplex": null, + "ifMtu": "1500", + "ifType": "ethernetCsmacd", + "ifAlias": "Ethernet 10/100/1000 Base-T", + "ifPhysAddress": "00206b67ef7c", + "ifHardType": null, + "ifLastChange": "0", + "ifVlan": "", + "ifTrunk": null, + "ifVrf": "0", + "counter_in": null, + "counter_out": null, + "ignore": "0", + "disabled": "0", + "detailed": "0", + "deleted": "0", + "pagpOperationMode": null, + "pagpPortState": null, + "pagpPartnerDeviceId": null, + "pagpPartnerLearnMethod": null, + "pagpPartnerIfIndex": null, + "pagpPartnerGroupIfIndex": null, + "pagpPartnerDeviceName": null, + "pagpEthcOperationMode": null, + "pagpDeviceId": null, + "pagpGroupIfIndex": null, + "ifInUcastPkts": "3301011", + "ifInUcastPkts_prev": "0", + "ifInUcastPkts_delta": null, + "ifInUcastPkts_rate": null, + "ifOutUcastPkts": "3695705", + "ifOutUcastPkts_prev": "0", + "ifOutUcastPkts_delta": null, + "ifOutUcastPkts_rate": null, + "ifInErrors": "0", + "ifInErrors_prev": "0", + "ifInErrors_delta": null, + "ifInErrors_rate": null, + "ifOutErrors": "0", + "ifOutErrors_prev": "0", + "ifOutErrors_delta": null, + "ifOutErrors_rate": null, + "ifInOctets": "4294967295", + "ifInOctets_prev": "0", + "ifInOctets_delta": null, + "ifInOctets_rate": null, + "ifOutOctets": "216968618", + "ifOutOctets_prev": "0", + "ifOutOctets_delta": null, + "ifOutOctets_rate": null, + "poll_prev": null, + "ifInNUcastPkts": "20837475", + "ifInNUcastPkts_prev": "0", + "ifInNUcastPkts_delta": null, + "ifInNUcastPkts_rate": null, + "ifOutNUcastPkts": "34699", + "ifOutNUcastPkts_prev": "0", + "ifOutNUcastPkts_delta": null, + "ifOutNUcastPkts_rate": null, + "ifInDiscards": "0", + "ifInDiscards_prev": "0", + "ifInDiscards_delta": null, + "ifInDiscards_rate": null, + "ifOutDiscards": "0", + "ifOutDiscards_prev": "0", + "ifOutDiscards_delta": null, + "ifOutDiscards_rate": null, + "ifInUnknownProtos": "0", + "ifInUnknownProtos_prev": "0", + "ifInUnknownProtos_delta": null, + "ifInUnknownProtos_rate": null, + "ifInBroadcastPkts": "0", + "ifInBroadcastPkts_prev": "0", + "ifInBroadcastPkts_delta": null, + "ifInBroadcastPkts_rate": null, + "ifOutBroadcastPkts": "0", + "ifOutBroadcastPkts_prev": "0", + "ifOutBroadcastPkts_delta": null, + "ifOutBroadcastPkts_rate": null, + "ifInMulticastPkts": "0", + "ifInMulticastPkts_prev": "0", + "ifInMulticastPkts_delta": null, + "ifInMulticastPkts_rate": null, + "ifOutMulticastPkts": "0", + "ifOutMulticastPkts_prev": "0", + "ifOutMulticastPkts_delta": null, + "ifOutMulticastPkts_rate": null + }, + { + "port_descr_type": null, + "port_descr_descr": null, + "port_descr_circuit": null, + "port_descr_speed": null, + "port_descr_notes": null, + "ifDescr": "Software Loopback", + "ifName": "Software Loopback", + "portName": null, + "ifIndex": "2", + "ifSpeed": "0", + "ifConnectorPresent": null, + "ifPromiscuousMode": null, + "ifHighSpeed": null, + "ifOperStatus": "up", + "ifOperStatus_prev": null, + "ifAdminStatus": "up", + "ifAdminStatus_prev": null, + "ifDuplex": null, + "ifMtu": "1536", + "ifType": "softwareLoopback", + "ifAlias": "Software Loopback", + "ifPhysAddress": null, + "ifHardType": null, + "ifLastChange": "0", + "ifVlan": "", + "ifTrunk": null, + "ifVrf": "0", + "counter_in": null, + "counter_out": null, + "ignore": "0", + "disabled": "0", + "detailed": "0", + "deleted": "0", + "pagpOperationMode": null, + "pagpPortState": null, + "pagpPartnerDeviceId": null, + "pagpPartnerLearnMethod": null, + "pagpPartnerIfIndex": null, + "pagpPartnerGroupIfIndex": null, + "pagpPartnerDeviceName": null, + "pagpEthcOperationMode": null, + "pagpDeviceId": null, + "pagpGroupIfIndex": null, + "ifInUcastPkts": "0", + "ifInUcastPkts_prev": "0", + "ifInUcastPkts_delta": null, + "ifInUcastPkts_rate": null, + "ifOutUcastPkts": "2", + "ifOutUcastPkts_prev": "0", + "ifOutUcastPkts_delta": null, + "ifOutUcastPkts_rate": null, + "ifInErrors": "0", + "ifInErrors_prev": "0", + "ifInErrors_delta": null, + "ifInErrors_rate": null, + "ifOutErrors": "0", + "ifOutErrors_prev": "0", + "ifOutErrors_delta": null, + "ifOutErrors_rate": null, + "ifInOctets": "0", + "ifInOctets_prev": "0", + "ifInOctets_delta": null, + "ifInOctets_rate": null, + "ifOutOctets": "0", + "ifOutOctets_prev": "0", + "ifOutOctets_delta": null, + "ifOutOctets_rate": null, + "poll_prev": null, + "ifInNUcastPkts": "0", + "ifInNUcastPkts_prev": "0", + "ifInNUcastPkts_delta": null, + "ifInNUcastPkts_rate": null, + "ifOutNUcastPkts": "0", + "ifOutNUcastPkts_prev": "0", + "ifOutNUcastPkts_delta": null, + "ifOutNUcastPkts_rate": null, + "ifInDiscards": "0", + "ifInDiscards_prev": "0", + "ifInDiscards_delta": null, + "ifInDiscards_rate": null, + "ifOutDiscards": "0", + "ifOutDiscards_prev": "0", + "ifOutDiscards_delta": null, + "ifOutDiscards_rate": null, + "ifInUnknownProtos": "0", + "ifInUnknownProtos_prev": "0", + "ifInUnknownProtos_delta": null, + "ifInUnknownProtos_rate": null, + "ifInBroadcastPkts": "0", + "ifInBroadcastPkts_prev": "0", + "ifInBroadcastPkts_delta": null, + "ifInBroadcastPkts_rate": null, + "ifOutBroadcastPkts": "0", + "ifOutBroadcastPkts_prev": "0", + "ifOutBroadcastPkts_delta": null, + "ifOutBroadcastPkts_rate": null, + "ifInMulticastPkts": "0", + "ifInMulticastPkts_prev": "0", + "ifInMulticastPkts_delta": null, + "ifInMulticastPkts_rate": null, + "ifOutMulticastPkts": "0", + "ifOutMulticastPkts_prev": "0", + "ifOutMulticastPkts_delta": null, + "ifOutMulticastPkts_rate": null + } + ] + } + }, + "processors": { + "discovery": { + "processors": [] + }, + "poller": "matches discovery" + }, + "mempools": { + "discovery": { + "mempools": [ + { + "mempool_index": "1", + "entPhysicalIndex": null, + "hrDeviceIndex": null, + "mempool_type": "hrstorage", + "mempool_precision": "1048576", + "mempool_descr": "RAM", + "mempool_perc": "0", + "mempool_used": "0", + "mempool_free": "0", + "mempool_total": "0", + "mempool_largestfree": null, + "mempool_lowestfree": null, + "mempool_deleted": "0", + "mempool_perc_warn": "75" + } + ] + }, + "poller": { + "mempools": [ + { + "mempool_index": "1", + "entPhysicalIndex": null, + "hrDeviceIndex": null, + "mempool_type": "hrstorage", + "mempool_precision": "1048576", + "mempool_descr": "RAM", + "mempool_perc": "79", + "mempool_used": "1898971136", + "mempool_free": "516947968", + "mempool_total": "2415919104", + "mempool_largestfree": null, + "mempool_lowestfree": null, + "mempool_deleted": "0", + "mempool_perc_warn": "75" + } + ] + } + }, + "storage": { + "discovery": { + "storage": [ + { + "storage_mib": "hrstorage", + "storage_index": "2", + "storage_type": "hrStorageFixedDisk", + "storage_descr": "HDD", + "storage_size": "250028752896", + "storage_units": "1048576", + "storage_used": "70976012288", + "storage_free": "0", + "storage_perc": "0", + "storage_perc_warn": "60", + "storage_deleted": "0" + }, + { + "storage_mib": "hrstorage", + "storage_index": "3", + "storage_type": "hrStorageFlashMemory", + "storage_descr": "NVRAM", + "storage_size": "2097152", + "storage_units": "1048576", + "storage_used": "2097152", + "storage_free": "0", + "storage_perc": "0", + "storage_perc_warn": "60", + "storage_deleted": "0" + } + ] + }, + "poller": { + "storage": [ + { + "storage_mib": "hrstorage", + "storage_index": "2", + "storage_type": "hrStorageFixedDisk", + "storage_descr": "HDD", + "storage_size": "250028752896", + "storage_units": "1048576", + "storage_used": "70976012288", + "storage_free": "179052740608", + "storage_perc": "28", + "storage_perc_warn": "60", + "storage_deleted": "0" + }, + { + "storage_mib": "hrstorage", + "storage_index": "3", + "storage_type": "hrStorageFlashMemory", + "storage_descr": "NVRAM", + "storage_size": "2097152", + "storage_units": "1048576", + "storage_used": "2097152", + "storage_free": "0", + "storage_perc": "100", + "storage_perc_warn": "60", + "storage_deleted": "0" + } + ] + } + }, + "toner": { + "discovery": { + "toner": [ + { + "toner_id": "1", + "toner_index": "1", + "toner_type": "jetdirect", + "toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.1", + "toner_descr": "Cyan", + "toner_capacity": "100", + "toner_current": "29", + "toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.1" + }, + { + "toner_id": "10", + "toner_index": "10", + "toner_type": "jetdirect", + "toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.10", + "toner_descr": "Developer Cartridge (Yellow)", + "toner_capacity": "100", + "toner_current": "78", + "toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.10" + }, + { + "toner_id": "11", + "toner_index": "11", + "toner_type": "jetdirect", + "toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.11", + "toner_descr": "Drum Cartridge (Black)", + "toner_capacity": "100", + "toner_current": "20", + "toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.11" + }, + { + "toner_id": "12", + "toner_index": "12", + "toner_type": "jetdirect", + "toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.12", + "toner_descr": "Developer Cartridge (Black)", + "toner_capacity": "100", + "toner_current": "71", + "toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.12" + }, + { + "toner_id": "13", + "toner_index": "13", + "toner_type": "jetdirect", + "toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.13", + "toner_descr": "Waste Toner Box", + "toner_capacity": "100", + "toner_current": "50", + "toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.13" + }, + { + "toner_id": "14", + "toner_index": "14", + "toner_type": "jetdirect", + "toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.14", + "toner_descr": "Fusing Unit", + "toner_capacity": "100", + "toner_current": "68", + "toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.14" + }, + { + "toner_id": "15", + "toner_index": "15", + "toner_type": "jetdirect", + "toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.15", + "toner_descr": "Image Transfer Belt Unit", + "toner_capacity": "100", + "toner_current": "41", + "toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.15" + }, + { + "toner_id": "16", + "toner_index": "16", + "toner_type": "jetdirect", + "toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.16", + "toner_descr": "Transfer Roller Unit", + "toner_capacity": "100", + "toner_current": "45", + "toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.16" + }, + { + "toner_id": "17", + "toner_index": "17", + "toner_type": "jetdirect", + "toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.17", + "toner_descr": "Ozone Filter", + "toner_capacity": "100", + "toner_current": "45", + "toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.17" + }, + { + "toner_id": "2", + "toner_index": "2", + "toner_type": "jetdirect", + "toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.2", + "toner_descr": "Magenta", + "toner_capacity": "100", + "toner_current": "31", + "toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.2" + }, + { + "toner_id": "3", + "toner_index": "3", + "toner_type": "jetdirect", + "toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.3", + "toner_descr": "Yellow", + "toner_capacity": "100", + "toner_current": "58", + "toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.3" + }, + { + "toner_id": "4", + "toner_index": "4", + "toner_type": "jetdirect", + "toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.4", + "toner_descr": "Black", + "toner_capacity": "100", + "toner_current": "83", + "toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.4" + }, + { + "toner_id": "5", + "toner_index": "5", + "toner_type": "jetdirect", + "toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.5", + "toner_descr": "Drum Cartridge (Cyan)", + "toner_capacity": "100", + "toner_current": "59", + "toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.5" + }, + { + "toner_id": "6", + "toner_index": "6", + "toner_type": "jetdirect", + "toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.6", + "toner_descr": "Developer Cartridge (Cyan)", + "toner_capacity": "100", + "toner_current": "79", + "toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.6" + }, + { + "toner_id": "7", + "toner_index": "7", + "toner_type": "jetdirect", + "toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.7", + "toner_descr": "Drum Cartridge (Magenta)", + "toner_capacity": "100", + "toner_current": "97", + "toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.7" + }, + { + "toner_id": "8", + "toner_index": "8", + "toner_type": "jetdirect", + "toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.8", + "toner_descr": "Developer Cartridge (Magenta)", + "toner_capacity": "100", + "toner_current": "78", + "toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.8" + }, + { + "toner_id": "9", + "toner_index": "9", + "toner_type": "jetdirect", + "toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.9", + "toner_descr": "Drum Cartridge (Yellow)", + "toner_capacity": "100", + "toner_current": "59", + "toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.9" + } + ] + }, + "poller": "matches discovery" + } +} diff --git a/tests/module_tables.yaml b/tests/module_tables.yaml index 07017749c9..fd6cdecc8b 100644 --- a/tests/module_tables.yaml +++ b/tests/module_tables.yaml @@ -48,6 +48,10 @@ sensors: storage: storage: excluded_fields: [device_id, storage_id] +toner: + toner: + excluded_fields: [device_id] + order_by: toner_oid, toner_index wireless: wireless_sensors: excluded_fields: [device_id, sensor_id, access_point_id, lastupdate] diff --git a/tests/snmpsim/konica.snmprec b/tests/snmpsim/konica.snmprec index 0c1751f5e5..fc1078701c 100644 --- a/tests/snmpsim/konica.snmprec +++ b/tests/snmpsim/konica.snmprec @@ -1,2 +1,274 @@ 1.3.6.1.2.1.1.1.0|4|KONICA MINOLTA bizhub C3110 1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.18334.1.1.1.2.1.117.2.2 +1.3.6.1.2.1.1.3.0|67|173664643 +1.3.6.1.2.1.1.4.0|4| +1.3.6.1.2.1.1.5.0|4| +1.3.6.1.2.1.1.6.0|4| +1.3.6.1.2.1.2.2.1.1.1|2|1 +1.3.6.1.2.1.2.2.1.1.2|2|2 +1.3.6.1.2.1.2.2.1.2.1|4|Ethernet 10/100/1000 Base-T +1.3.6.1.2.1.2.2.1.2.2|4|Software Loopback +1.3.6.1.2.1.2.2.1.3.1|2|6 +1.3.6.1.2.1.2.2.1.3.2|2|24 +1.3.6.1.2.1.2.2.1.4.1|2|1500 +1.3.6.1.2.1.2.2.1.4.2|2|1536 +1.3.6.1.2.1.2.2.1.5.1|66|1000000000 +1.3.6.1.2.1.2.2.1.5.2|66|0 +1.3.6.1.2.1.2.2.1.6.1|4x|00206B67EF7C +1.3.6.1.2.1.2.2.1.6.2|4| +1.3.6.1.2.1.2.2.1.7.1|2|1 +1.3.6.1.2.1.2.2.1.7.2|2|1 +1.3.6.1.2.1.2.2.1.8.1|2|1 +1.3.6.1.2.1.2.2.1.8.2|2|1 +1.3.6.1.2.1.2.2.1.9.1|67|0 +1.3.6.1.2.1.2.2.1.9.2|67|0 +1.3.6.1.2.1.2.2.1.10.1|65|4294967295 +1.3.6.1.2.1.2.2.1.10.2|65|0 +1.3.6.1.2.1.2.2.1.11.1|65|3301011 +1.3.6.1.2.1.2.2.1.11.2|65|0 +1.3.6.1.2.1.2.2.1.12.1|65|20837475 +1.3.6.1.2.1.2.2.1.12.2|65|0 +1.3.6.1.2.1.2.2.1.13.1|65|0 +1.3.6.1.2.1.2.2.1.13.2|65|0 +1.3.6.1.2.1.2.2.1.14.1|65|0 +1.3.6.1.2.1.2.2.1.14.2|65|0 +1.3.6.1.2.1.2.2.1.15.1|65|0 +1.3.6.1.2.1.2.2.1.15.2|65|0 +1.3.6.1.2.1.2.2.1.16.1|65|216968618 +1.3.6.1.2.1.2.2.1.16.2|65|0 +1.3.6.1.2.1.2.2.1.17.1|65|3695705 +1.3.6.1.2.1.2.2.1.17.2|65|2 +1.3.6.1.2.1.2.2.1.18.1|65|34699 +1.3.6.1.2.1.2.2.1.18.2|65|0 +1.3.6.1.2.1.2.2.1.19.1|65|0 +1.3.6.1.2.1.2.2.1.19.2|65|0 +1.3.6.1.2.1.2.2.1.20.1|65|0 +1.3.6.1.2.1.2.2.1.20.2|65|0 +1.3.6.1.2.1.2.2.1.21.1|66|0 +1.3.6.1.2.1.2.2.1.21.2|66|0 +1.3.6.1.2.1.2.2.1.22.1|6|0.0 +1.3.6.1.2.1.2.2.1.22.2|6|0.0 +1.3.6.1.2.1.4.3.0|65|18218410 +1.3.6.1.2.1.4.4.0|65|5478 +1.3.6.1.2.1.4.5.0|65|2405 +1.3.6.1.2.1.4.6.0|65|0 +1.3.6.1.2.1.4.7.0|65|446642 +1.3.6.1.2.1.4.8.0|65|0 +1.3.6.1.2.1.4.9.0|65|17757632 +1.3.6.1.2.1.4.10.0|65|3793729 +1.3.6.1.2.1.4.11.0|65|0 +1.3.6.1.2.1.4.12.0|65|0 +1.3.6.1.2.1.4.14.0|65|12240 +1.3.6.1.2.1.4.15.0|65|6120 +1.3.6.1.2.1.4.16.0|65|0 +1.3.6.1.2.1.4.17.0|65|0 +1.3.6.1.2.1.4.18.0|65|0 +1.3.6.1.2.1.4.19.0|65|0 +1.3.6.1.2.1.4.20.1.2.127.0.0.1|2|2 +1.3.6.1.2.1.4.20.1.2.172.16.1.253|2|1 +1.3.6.1.2.1.4.20.1.3.127.0.0.1|64|255.0.0.0 +1.3.6.1.2.1.4.20.1.3.172.16.1.253|64|255.255.240.0 +1.3.6.1.2.1.4.22.1.2.1.172.16.1.1|4x|0002B6430409 +1.3.6.1.2.1.4.22.1.2.1.172.16.1.180|4x|6273E822BC00 +1.3.6.1.2.1.4.22.1.2.1.172.16.1.221|4x|66D35F8B40AF +1.3.6.1.2.1.4.22.1.2.1.172.16.1.244|4x|0211FF163D62 +1.3.6.1.2.1.4.22.1.2.1.172.16.1.248|4x|C6D878698F62 +1.3.6.1.2.1.4.22.1.2.1.172.16.1.250|4x|76136C34EF1D +1.3.6.1.2.1.4.22.1.2.1.172.16.2.177|4x|120B125B7373 +1.3.6.1.2.1.4.22.1.2.1.172.16.2.178|4x|82C8A2EF3CAD +1.3.6.1.2.1.4.22.1.2.1.172.16.2.179|4x|D65FB4D8D6AD +1.3.6.1.2.1.4.22.1.2.1.172.16.2.192|4x|60A44CAEFC06 +1.3.6.1.2.1.4.22.1.2.1.172.16.2.193|4x|60A44CAEFAFE +1.3.6.1.2.1.4.22.1.2.1.172.16.2.207|4x|FAAE2C40B415 +1.3.6.1.2.1.4.22.1.2.1.172.16.3.78|4x|001D7D5BCDEB +1.3.6.1.2.1.4.22.1.2.1.172.16.3.124|4x|00241DA7C5A0 +1.3.6.1.2.1.4.22.1.2.1.172.16.3.132|4x|001FD0ACF435 +1.3.6.1.2.1.4.22.1.2.1.172.16.3.192|4x|BC5FF445074D +1.3.6.1.2.1.4.22.1.2.1.172.16.4.5|4x|60A44CAEF9B5 +1.3.6.1.2.1.4.22.1.2.1.172.16.4.44|4x|001FD0AD0545 +1.3.6.1.2.1.4.22.1.2.1.172.16.4.91|4x|60A44CAEF8F9 +1.3.6.1.2.1.4.22.1.2.1.172.16.5.9|4x|3497F634469E +1.3.6.1.2.1.4.22.1.2.1.172.16.5.142|4x|00241DA73ECD +1.3.6.1.2.1.4.22.1.2.1.172.16.5.191|4x|74D4352F78CB +1.3.6.1.2.1.4.22.1.2.1.172.16.7.225|4x|6CF0491CC0E9 +1.3.6.1.2.1.4.22.1.2.1.172.16.8.119|4x|408D5C25196A +1.3.6.1.2.1.4.22.1.2.1.224.0.0.252|4x|01005E0000FC +1.3.6.1.2.1.4.22.1.2.1.239.255.255.250|4x|01005E7FFFFA +1.3.6.1.2.1.4.22.1.2.2.172.16.1.253|4x|00206B67EF7C +1.3.6.1.2.1.5.1.0|65|6682 +1.3.6.1.2.1.5.2.0|65|0 +1.3.6.1.2.1.5.3.0|65|0 +1.3.6.1.2.1.5.4.0|65|0 +1.3.6.1.2.1.5.5.0|65|0 +1.3.6.1.2.1.5.6.0|65|0 +1.3.6.1.2.1.5.7.0|65|0 +1.3.6.1.2.1.5.8.0|65|6682 +1.3.6.1.2.1.5.9.0|65|0 +1.3.6.1.2.1.5.10.0|65|0 +1.3.6.1.2.1.5.11.0|65|0 +1.3.6.1.2.1.5.12.0|65|0 +1.3.6.1.2.1.5.13.0|65|0 +1.3.6.1.2.1.5.14.0|65|6700 +1.3.6.1.2.1.5.15.0|65|18 +1.3.6.1.2.1.5.16.0|65|18 +1.3.6.1.2.1.5.17.0|65|0 +1.3.6.1.2.1.5.18.0|65|0 +1.3.6.1.2.1.5.19.0|65|0 +1.3.6.1.2.1.5.20.0|65|0 +1.3.6.1.2.1.5.21.0|65|0 +1.3.6.1.2.1.5.22.0|65|6682 +1.3.6.1.2.1.5.23.0|65|0 +1.3.6.1.2.1.5.24.0|65|0 +1.3.6.1.2.1.5.25.0|65|0 +1.3.6.1.2.1.5.26.0|65|0 +1.3.6.1.2.1.6.5.0|65|1742 +1.3.6.1.2.1.6.6.0|65|7460 +1.3.6.1.2.1.6.7.0|65|0 +1.3.6.1.2.1.6.8.0|65|1744 +1.3.6.1.2.1.6.9.0|66|0 +1.3.6.1.2.1.6.10.0|65|2694478 +1.3.6.1.2.1.6.11.0|65|3606738 +1.3.6.1.2.1.6.12.0|65|0 +1.3.6.1.2.1.6.14.0|65|0 +1.3.6.1.2.1.6.15.0|65|9 +1.3.6.1.2.1.7.1.0|65|5615963 +1.3.6.1.2.1.7.2.0|65|2190652 +1.3.6.1.2.1.7.3.0|65|6218 +1.3.6.1.2.1.7.4.0|65|174772 +1.3.6.1.2.1.11.1.0|65|486316 +1.3.6.1.2.1.11.2.0|65|151471 +1.3.6.1.2.1.11.3.0|65|0 +1.3.6.1.2.1.11.4.0|65|333778 +1.3.6.1.2.1.11.5.0|65|0 +1.3.6.1.2.1.11.6.0|65|0 +1.3.6.1.2.1.11.8.0|65|0 +1.3.6.1.2.1.11.9.0|65|0 +1.3.6.1.2.1.11.10.0|65|0 +1.3.6.1.2.1.11.11.0|65|0 +1.3.6.1.2.1.11.12.0|65|0 +1.3.6.1.2.1.11.13.0|65|724051 +1.3.6.1.2.1.11.14.0|65|0 +1.3.6.1.2.1.11.15.0|65|97397 +1.3.6.1.2.1.11.16.0|65|1099 +1.3.6.1.2.1.11.17.0|65|0 +1.3.6.1.2.1.11.18.0|65|0 +1.3.6.1.2.1.11.19.0|65|0 +1.3.6.1.2.1.11.20.0|65|0 +1.3.6.1.2.1.11.21.0|65|1066 +1.3.6.1.2.1.11.22.0|65|0 +1.3.6.1.2.1.11.24.0|65|0 +1.3.6.1.2.1.11.25.0|65|0 +1.3.6.1.2.1.11.26.0|65|0 +1.3.6.1.2.1.11.27.0|65|0 +1.3.6.1.2.1.11.28.0|65|150407 +1.3.6.1.2.1.11.29.0|65|0 +1.3.6.1.2.1.11.30.0|2|2 +1.3.6.1.2.1.25.1.1.0|67|173664647 +1.3.6.1.2.1.25.1.5.0|66|0 +1.3.6.1.2.1.25.1.6.0|66|401 +1.3.6.1.2.1.25.2.3.1.1.1|2|1 +1.3.6.1.2.1.25.2.3.1.1.2|2|2 +1.3.6.1.2.1.25.2.3.1.1.3|2|3 +1.3.6.1.2.1.25.2.3.1.2.1|6|1.3.6.1.2.1.25.2.1.2 +1.3.6.1.2.1.25.2.3.1.2.2|6|1.3.6.1.2.1.25.2.1.4 +1.3.6.1.2.1.25.2.3.1.2.3|6|1.3.6.1.2.1.25.2.1.9 +1.3.6.1.2.1.25.2.3.1.3.1|4|RAM +1.3.6.1.2.1.25.2.3.1.3.2|4|HDD +1.3.6.1.2.1.25.2.3.1.3.3|4|NVRAM +1.3.6.1.2.1.25.2.3.1.4.1|2|1048576 +1.3.6.1.2.1.25.2.3.1.4.2|2|1048576 +1.3.6.1.2.1.25.2.3.1.4.3|2|1048576 +1.3.6.1.2.1.25.2.3.1.5.1|2|2304 +1.3.6.1.2.1.25.2.3.1.5.2|2|238446 +1.3.6.1.2.1.25.2.3.1.5.3|2|2 +1.3.6.1.2.1.25.2.3.1.6.1|2|1811 +1.3.6.1.2.1.25.2.3.1.6.2|2|67688 +1.3.6.1.2.1.25.2.3.1.6.3|2|2 +1.3.6.1.2.1.25.2.3.1.7.1|65|0 +1.3.6.1.2.1.25.2.3.1.7.2|65|0 +1.3.6.1.2.1.25.2.3.1.7.3|65|0 +1.3.6.1.2.1.25.3.2.1.1.1|2|1 +1.3.6.1.2.1.25.3.2.1.1.2|2|2 +1.3.6.1.2.1.25.3.2.1.1.3|2|3 +1.3.6.1.2.1.25.3.2.1.1.4|2|4 +1.3.6.1.2.1.25.3.2.1.2.1|6|1.3.6.1.2.1.25.3.1.5 +1.3.6.1.2.1.25.3.2.1.2.2|6|1.3.6.1.2.1.25.3.1.1 +1.3.6.1.2.1.25.3.2.1.2.3|6|1.3.6.1.2.1.25.3.1.4 +1.3.6.1.2.1.25.3.2.1.2.4|6|1.3.6.1.2.1.25.3.1.6 +1.3.6.1.2.1.25.3.2.1.3.1|4|Generic 28C-1 +1.3.6.1.2.1.25.3.2.1.3.2|4|Generic 28C-1 +1.3.6.1.2.1.25.3.2.1.3.3|4|Ethernet 10/100/1000 Base-T +1.3.6.1.2.1.25.3.2.1.3.4|4|HDD +1.3.6.1.2.1.25.3.2.1.4.1|6|1.3.6.1.4.1.18334.1.2.1.2.1.50.3.2 +1.3.6.1.2.1.25.3.2.1.4.2|6|1.3.6.1.4.1.18334.1.2.1.2.1.50.3.2 +1.3.6.1.2.1.25.3.2.1.4.3|6|1.3.6.1.4.1.18334.1.1.2.1.1.1.1 +1.3.6.1.2.1.25.3.2.1.4.4|6|1.3.6.1.4.1.18334.1.1.3.1.1.1.2 +1.3.6.1.2.1.25.3.2.1.5.1|2|3 +1.3.6.1.2.1.25.3.2.1.5.2|2|2 +1.3.6.1.2.1.25.3.2.1.5.3|2|2 +1.3.6.1.2.1.25.3.2.1.5.4|2|2 +1.3.6.1.2.1.25.3.2.1.6.1|65|0 +1.3.6.1.2.1.25.3.2.1.6.2|65|0 +1.3.6.1.2.1.25.3.2.1.6.3|65|0 +1.3.6.1.2.1.25.3.2.1.6.4|65|0 +1.3.6.1.2.1.43.11.1.1.6.1.1|4|Toner (Cyan) +1.3.6.1.2.1.43.11.1.1.6.1.2|4|Toner (Magenta) +1.3.6.1.2.1.43.11.1.1.6.1.3|4|Toner (Yellow) +1.3.6.1.2.1.43.11.1.1.6.1.4|4|Toner (Black) +1.3.6.1.2.1.43.11.1.1.6.1.5|4|Drum Cartridge (Cyan) +1.3.6.1.2.1.43.11.1.1.6.1.6|4|Developer Cartridge (Cyan) +1.3.6.1.2.1.43.11.1.1.6.1.7|4|Drum Cartridge (Magenta) +1.3.6.1.2.1.43.11.1.1.6.1.8|4|Developer Cartridge (Magenta) +1.3.6.1.2.1.43.11.1.1.6.1.9|4|Drum Cartridge (Yellow) +1.3.6.1.2.1.43.11.1.1.6.1.10|4|Developer Cartridge (Yellow) +1.3.6.1.2.1.43.11.1.1.6.1.11|4|Drum Cartridge (Black) +1.3.6.1.2.1.43.11.1.1.6.1.12|4|Developer Cartridge (Black) +1.3.6.1.2.1.43.11.1.1.6.1.13|4|Waste Toner Box +1.3.6.1.2.1.43.11.1.1.6.1.14|4|Fusing Unit +1.3.6.1.2.1.43.11.1.1.6.1.15|4|Image Transfer Belt Unit +1.3.6.1.2.1.43.11.1.1.6.1.16|4|Transfer Roller Unit +1.3.6.1.2.1.43.11.1.1.6.1.17|4|Ozone Filter +1.3.6.1.2.1.43.11.1.1.8.1.1|2|100 +1.3.6.1.2.1.43.11.1.1.8.1.2|2|100 +1.3.6.1.2.1.43.11.1.1.8.1.3|2|100 +1.3.6.1.2.1.43.11.1.1.8.1.4|2|100 +1.3.6.1.2.1.43.11.1.1.8.1.5|2|100 +1.3.6.1.2.1.43.11.1.1.8.1.6|2|100 +1.3.6.1.2.1.43.11.1.1.8.1.7|2|100 +1.3.6.1.2.1.43.11.1.1.8.1.8|2|100 +1.3.6.1.2.1.43.11.1.1.8.1.9|2|100 +1.3.6.1.2.1.43.11.1.1.8.1.10|2|100 +1.3.6.1.2.1.43.11.1.1.8.1.11|2|100 +1.3.6.1.2.1.43.11.1.1.8.1.12|2|100 +1.3.6.1.2.1.43.11.1.1.8.1.13|2|-2 +1.3.6.1.2.1.43.11.1.1.8.1.14|2|100 +1.3.6.1.2.1.43.11.1.1.8.1.15|2|100 +1.3.6.1.2.1.43.11.1.1.8.1.16|2|100 +1.3.6.1.2.1.43.11.1.1.8.1.17|2|100 +1.3.6.1.2.1.43.11.1.1.9.1.1|2|29 +1.3.6.1.2.1.43.11.1.1.9.1.2|2|31 +1.3.6.1.2.1.43.11.1.1.9.1.3|2|58 +1.3.6.1.2.1.43.11.1.1.9.1.4|2|83 +1.3.6.1.2.1.43.11.1.1.9.1.5|2|59 +1.3.6.1.2.1.43.11.1.1.9.1.6|2|79 +1.3.6.1.2.1.43.11.1.1.9.1.7|2|97 +1.3.6.1.2.1.43.11.1.1.9.1.8|2|78 +1.3.6.1.2.1.43.11.1.1.9.1.9|2|59 +1.3.6.1.2.1.43.11.1.1.9.1.10|2|78 +1.3.6.1.2.1.43.11.1.1.9.1.11|2|20 +1.3.6.1.2.1.43.11.1.1.9.1.12|2|71 +1.3.6.1.2.1.43.11.1.1.9.1.13|2|-3 +1.3.6.1.2.1.43.11.1.1.9.1.14|2|68 +1.3.6.1.2.1.43.11.1.1.9.1.15|2|41 +1.3.6.1.2.1.43.11.1.1.9.1.16|2|45 +1.3.6.1.2.1.43.11.1.1.9.1.17|2|45 +1.3.6.1.2.1.43.12.1.1.2.1.1|2|1 +1.3.6.1.2.1.43.12.1.1.2.1.2|2|1 +1.3.6.1.2.1.43.12.1.1.2.1.3|2|1 +1.3.6.1.2.1.43.12.1.1.2.1.4|2|1 +1.3.6.1.2.1.43.12.1.1.4.1.1|4|cyan +1.3.6.1.2.1.43.12.1.1.4.1.2|4|magenta +1.3.6.1.2.1.43.12.1.1.4.1.3|4|yellow +1.3.6.1.2.1.43.12.1.1.4.1.4|4|black +1.3.6.1.4.1.18334.1.1.1.1.6.1.0|4|1.80 +1.3.6.1.4.1.18334.1.1.1.1.6.2.1.0|4|Develop ineo+ 280