mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix Oki LAN OS info (#12213)
* Fix Oki LAN os info fixes #12207 * Add test data and some bonus info
This commit is contained in:
37
LibreNMS/OS/Okilan.php
Normal file
37
LibreNMS/OS/Okilan.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/*
|
||||
* Okilan.php
|
||||
*
|
||||
* -Description-
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @package LibreNMS
|
||||
* @link http://librenms.org
|
||||
* @copyright 2020 Tony Murray
|
||||
* @author Tony Murray <murraytony@gmail.com>
|
||||
*/
|
||||
|
||||
namespace LibreNMS\OS;
|
||||
|
||||
use App\Models\Device;
|
||||
|
||||
class Okilan extends Jetdirect
|
||||
{
|
||||
public function discoverOS(Device $device): void
|
||||
{
|
||||
parent::discoverOS($device); // jetdirect
|
||||
$device->hardware = str_replace('OKI ', '', $device->hardware); // remove useless brand
|
||||
}
|
||||
}
|
3
includes/definitions/discovery/okilan.yaml
Normal file
3
includes/definitions/discovery/okilan.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
modules:
|
||||
os:
|
||||
sysDescr_regex: '/OKI OkiLAN (?<features>\S+ \S+).*Attached to (?<hardware>\S+) Rev.(?<version>\S+)/'
|
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
// Jetdirect compatible
|
||||
require 'includes/polling/os/jetdirect.inc.php';
|
||||
|
||||
// Strip off useless brand fields
|
||||
$hardware = str_replace('OKI ', '', $hardware);
|
557
tests/data/okilan_9450g.json
Normal file
557
tests/data/okilan_9450g.json
Normal file
@@ -0,0 +1,557 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.2001.1.1.1.1",
|
||||
"sysDescr": "OKI OkiLAN 9450g Rev.00.69 10/100/1000BASE Ethernet PrintServer: Attached to MC873 Rev.07.87 : Copyright (c) 2015 Oki Data Corporation. All rights reserved.",
|
||||
"sysContact": null,
|
||||
"version": "07.87",
|
||||
"hardware": "MC873",
|
||||
"features": "9450g Rev.00.69",
|
||||
"os": "okilan",
|
||||
"type": "printer",
|
||||
"serial": null,
|
||||
"icon": "oki.svg",
|
||||
"location": "<private>"
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.2001.1.1.1.1",
|
||||
"sysDescr": "OKI OkiLAN 9450g Rev.00.69 10/100/1000BASE Ethernet PrintServer: Attached to MC873 Rev.07.87 : Copyright (c) 2015 Oki Data Corporation. All rights reserved.",
|
||||
"sysContact": "<private>",
|
||||
"version": "07.87",
|
||||
"hardware": "MC873",
|
||||
"features": "9450g Rev.00.69",
|
||||
"os": "okilan",
|
||||
"type": "printer",
|
||||
"serial": null,
|
||||
"icon": "oki.svg",
|
||||
"location": "<private>"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"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",
|
||||
"ifName": "Ethernet",
|
||||
"portName": null,
|
||||
"ifIndex": 1,
|
||||
"ifSpeed": null,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "up",
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": null,
|
||||
"ifAdminStatus_prev": null,
|
||||
"ifDuplex": null,
|
||||
"ifMtu": null,
|
||||
"ifType": "ethernetCsmacd",
|
||||
"ifAlias": "Ethernet",
|
||||
"ifPhysAddress": null,
|
||||
"ifHardType": null,
|
||||
"ifLastChange": 0,
|
||||
"ifVlan": "",
|
||||
"ifTrunk": null,
|
||||
"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",
|
||||
"ifName": "Ethernet",
|
||||
"portName": null,
|
||||
"ifIndex": 1,
|
||||
"ifSpeed": 1000000000,
|
||||
"ifSpeed_prev": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifHighSpeed_prev": null,
|
||||
"ifOperStatus": "up",
|
||||
"ifOperStatus_prev": "up",
|
||||
"ifAdminStatus": "up",
|
||||
"ifAdminStatus_prev": null,
|
||||
"ifDuplex": null,
|
||||
"ifMtu": 1500,
|
||||
"ifType": "ethernetCsmacd",
|
||||
"ifAlias": "Ethernet",
|
||||
"ifPhysAddress": "002536d1a65e",
|
||||
"ifHardType": null,
|
||||
"ifLastChange": 2472,
|
||||
"ifVlan": "",
|
||||
"ifTrunk": null,
|
||||
"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": 51125,
|
||||
"ifInUcastPkts_prev": 0,
|
||||
"ifInUcastPkts_delta": null,
|
||||
"ifInUcastPkts_rate": null,
|
||||
"ifOutUcastPkts": 0,
|
||||
"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": 51338754,
|
||||
"ifInOctets_prev": 0,
|
||||
"ifInOctets_delta": null,
|
||||
"ifInOctets_rate": null,
|
||||
"ifOutOctets": 8018824,
|
||||
"ifOutOctets_prev": 0,
|
||||
"ifOutOctets_delta": null,
|
||||
"ifOutOctets_rate": null,
|
||||
"poll_prev": null,
|
||||
"ifInNUcastPkts": 395654,
|
||||
"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": 8847,
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"sensors": {
|
||||
"discovery": {
|
||||
"sensors": [
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "state",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.2.1.25.3.2.1.5.1",
|
||||
"sensor_index": "0",
|
||||
"sensor_type": "hrDeviceStatus",
|
||||
"sensor_descr": "Printer Device Status",
|
||||
"group": null,
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 2,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": "0",
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": "hrDeviceStatus"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "state",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.2.1.25.3.5.1.2.1",
|
||||
"sensor_index": "0",
|
||||
"sensor_type": "hrPrinterDetectedErrorState",
|
||||
"sensor_descr": "Printer Error Status",
|
||||
"group": null,
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 0,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": "0",
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_prev": null,
|
||||
"user_func": null,
|
||||
"state_name": "hrPrinterDetectedErrorState"
|
||||
}
|
||||
],
|
||||
"state_indexes": [
|
||||
{
|
||||
"state_name": "hrDeviceStatus",
|
||||
"state_descr": "Unknown",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 1,
|
||||
"state_generic_value": 3
|
||||
},
|
||||
{
|
||||
"state_name": "hrDeviceStatus",
|
||||
"state_descr": "Running",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 2,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "hrDeviceStatus",
|
||||
"state_descr": "Warning",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 3,
|
||||
"state_generic_value": 1
|
||||
},
|
||||
{
|
||||
"state_name": "hrDeviceStatus",
|
||||
"state_descr": "Testing",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 4,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "hrDeviceStatus",
|
||||
"state_descr": "Down",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 5,
|
||||
"state_generic_value": 2
|
||||
},
|
||||
{
|
||||
"state_name": "hrPrinterDetectedErrorState",
|
||||
"state_descr": "Normal",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 0,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "hrPrinterDetectedErrorState",
|
||||
"state_descr": "Paper Low",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 1,
|
||||
"state_generic_value": 1
|
||||
},
|
||||
{
|
||||
"state_name": "hrPrinterDetectedErrorState",
|
||||
"state_descr": "No Paper",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 2,
|
||||
"state_generic_value": 2
|
||||
},
|
||||
{
|
||||
"state_name": "hrPrinterDetectedErrorState",
|
||||
"state_descr": "Toner Low",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 3,
|
||||
"state_generic_value": 1
|
||||
},
|
||||
{
|
||||
"state_name": "hrPrinterDetectedErrorState",
|
||||
"state_descr": "No Toner",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 4,
|
||||
"state_generic_value": 2
|
||||
},
|
||||
{
|
||||
"state_name": "hrPrinterDetectedErrorState",
|
||||
"state_descr": "Door Open",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 5,
|
||||
"state_generic_value": 2
|
||||
},
|
||||
{
|
||||
"state_name": "hrPrinterDetectedErrorState",
|
||||
"state_descr": "Jammed",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 6,
|
||||
"state_generic_value": 2
|
||||
},
|
||||
{
|
||||
"state_name": "hrPrinterDetectedErrorState",
|
||||
"state_descr": "Offline",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 7,
|
||||
"state_generic_value": 2
|
||||
},
|
||||
{
|
||||
"state_name": "hrPrinterDetectedErrorState",
|
||||
"state_descr": "Service Needed",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 8,
|
||||
"state_generic_value": 2
|
||||
},
|
||||
{
|
||||
"state_name": "hrPrinterDetectedErrorState",
|
||||
"state_descr": "Warning, multiple issues",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 9,
|
||||
"state_generic_value": 1
|
||||
},
|
||||
{
|
||||
"state_name": "hrPrinterDetectedErrorState",
|
||||
"state_descr": "Critical, multiple issues",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 10,
|
||||
"state_generic_value": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
},
|
||||
"toner": {
|
||||
"discovery": {
|
||||
"toner": [
|
||||
{
|
||||
"toner_index": 1,
|
||||
"toner_type": "toner",
|
||||
"toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.1",
|
||||
"toner_descr": "Black Toner Cartridge OKI DATA C",
|
||||
"toner_capacity": 100,
|
||||
"toner_current": 59,
|
||||
"toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.1"
|
||||
},
|
||||
{
|
||||
"toner_index": 10,
|
||||
"toner_type": "fuser",
|
||||
"toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.10",
|
||||
"toner_descr": "Fuser Unit OKI DATA CORP",
|
||||
"toner_capacity": 100000,
|
||||
"toner_current": 99,
|
||||
"toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.10"
|
||||
},
|
||||
{
|
||||
"toner_index": 2,
|
||||
"toner_type": "toner",
|
||||
"toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.2",
|
||||
"toner_descr": "Cyan Toner Cartridge OKI DATA CO",
|
||||
"toner_capacity": 100,
|
||||
"toner_current": 69,
|
||||
"toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.2"
|
||||
},
|
||||
{
|
||||
"toner_index": 3,
|
||||
"toner_type": "toner",
|
||||
"toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.3",
|
||||
"toner_descr": "Magenta Toner Cartridge OKI DATA",
|
||||
"toner_capacity": 100,
|
||||
"toner_current": 69,
|
||||
"toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.3"
|
||||
},
|
||||
{
|
||||
"toner_index": 4,
|
||||
"toner_type": "toner",
|
||||
"toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.4",
|
||||
"toner_descr": "Yellow Toner Cartridge OKI DATA ",
|
||||
"toner_capacity": 100,
|
||||
"toner_current": 69,
|
||||
"toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.4"
|
||||
},
|
||||
{
|
||||
"toner_index": 5,
|
||||
"toner_type": "opc",
|
||||
"toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.5",
|
||||
"toner_descr": "Black Image Drum Unit OKI DATA C",
|
||||
"toner_capacity": 30000,
|
||||
"toner_current": 95,
|
||||
"toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.5"
|
||||
},
|
||||
{
|
||||
"toner_index": 6,
|
||||
"toner_type": "opc",
|
||||
"toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.6",
|
||||
"toner_descr": "Cyan Image Drum Unit OKI DATA CO",
|
||||
"toner_capacity": 30000,
|
||||
"toner_current": 96,
|
||||
"toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.6"
|
||||
},
|
||||
{
|
||||
"toner_index": 7,
|
||||
"toner_type": "opc",
|
||||
"toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.7",
|
||||
"toner_descr": "Magenta Image Drum Unit OKI DATA",
|
||||
"toner_capacity": 30000,
|
||||
"toner_current": 96,
|
||||
"toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.7"
|
||||
},
|
||||
{
|
||||
"toner_index": 8,
|
||||
"toner_type": "opc",
|
||||
"toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.8",
|
||||
"toner_descr": "Yellow Image Drum Unit OKI DATA ",
|
||||
"toner_capacity": 30000,
|
||||
"toner_current": 96,
|
||||
"toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.8"
|
||||
},
|
||||
{
|
||||
"toner_index": 9,
|
||||
"toner_type": "transferUnit",
|
||||
"toner_oid": ".1.3.6.1.2.1.43.11.1.1.9.1.9",
|
||||
"toner_descr": "Belt Unit OKI DATA CORP",
|
||||
"toner_capacity": 80000,
|
||||
"toner_current": 98,
|
||||
"toner_capacity_oid": ".1.3.6.1.2.1.43.11.1.1.8.1.9"
|
||||
},
|
||||
{
|
||||
"toner_index": 1,
|
||||
"toner_type": "input",
|
||||
"toner_oid": ".1.3.6.1.2.1.43.8.2.1.10.1.1",
|
||||
"toner_descr": "TRAY1",
|
||||
"toner_capacity": 300,
|
||||
"toner_current": 50,
|
||||
"toner_capacity_oid": ".1.3.6.1.2.1.43.8.2.1.9.1.1"
|
||||
},
|
||||
{
|
||||
"toner_index": 2,
|
||||
"toner_type": "input",
|
||||
"toner_oid": ".1.3.6.1.2.1.43.8.2.1.10.1.2",
|
||||
"toner_descr": "MPTRAY",
|
||||
"toner_capacity": 100,
|
||||
"toner_current": 50,
|
||||
"toner_capacity_oid": ".1.3.6.1.2.1.43.8.2.1.9.1.2"
|
||||
},
|
||||
{
|
||||
"toner_index": 3,
|
||||
"toner_type": "input",
|
||||
"toner_oid": ".1.3.6.1.2.1.43.8.2.1.10.1.3",
|
||||
"toner_descr": "TRAY2",
|
||||
"toner_capacity": 530,
|
||||
"toner_current": 50,
|
||||
"toner_capacity_oid": ".1.3.6.1.2.1.43.8.2.1.9.1.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
172
tests/snmpsim/okilan_9450g.snmprec
Normal file
172
tests/snmpsim/okilan_9450g.snmprec
Normal file
@@ -0,0 +1,172 @@
|
||||
1.3.6.1.2.1.1.1.0|4|OKI OkiLAN 9450g Rev.00.69 10/100/1000BASE Ethernet PrintServer: Attached to MC873 Rev.07.87 : Copyright (c) 2015 Oki Data Corporation. All rights reserved.
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.2001.1.1.1.1
|
||||
1.3.6.1.2.1.1.3.0|67|53036118
|
||||
1.3.6.1.2.1.1.4.0|4|<private>
|
||||
1.3.6.1.2.1.1.5.0|4|<private>
|
||||
1.3.6.1.2.1.1.6.0|4|<private>
|
||||
1.3.6.1.2.1.2.2.1.1.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.2.1|4|Ethernet
|
||||
1.3.6.1.2.1.2.2.1.3.1|2|6
|
||||
1.3.6.1.2.1.2.2.1.4.1|2|1500
|
||||
1.3.6.1.2.1.2.2.1.5.1|66|1000000000
|
||||
1.3.6.1.2.1.2.2.1.6.1|4x|002536D1A65E
|
||||
1.3.6.1.2.1.2.2.1.7.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.8.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.9.1|67|2472
|
||||
1.3.6.1.2.1.2.2.1.10.1|65|51338754
|
||||
1.3.6.1.2.1.2.2.1.11.1|65|51125
|
||||
1.3.6.1.2.1.2.2.1.12.1|65|395654
|
||||
1.3.6.1.2.1.2.2.1.13.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.14.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.15.1|65|8847
|
||||
1.3.6.1.2.1.2.2.1.16.1|65|8018824
|
||||
1.3.6.1.2.1.2.2.1.17.1|65|6git3159
|
||||
1.3.6.1.2.1.2.2.1.18.1|65|4499
|
||||
1.3.6.1.2.1.2.2.1.19.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.20.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.21.1|66|0
|
||||
1.3.6.1.2.1.2.2.1.22.1|6|0.0
|
||||
1.3.6.1.2.1.4.3.0|2|67255
|
||||
1.3.6.1.2.1.4.4.0|2|0
|
||||
1.3.6.1.2.1.4.5.0|2|260
|
||||
1.3.6.1.2.1.4.6.0|2|0
|
||||
1.3.6.1.2.1.4.7.0|2|0
|
||||
1.3.6.1.2.1.4.8.0|2|0
|
||||
1.3.6.1.2.1.4.9.0|2|74147
|
||||
1.3.6.1.2.1.4.10.0|2|74722
|
||||
1.3.6.1.2.1.4.11.0|2|0
|
||||
1.3.6.1.2.1.4.12.0|2|0
|
||||
1.3.6.1.2.1.4.14.0|2|0
|
||||
1.3.6.1.2.1.4.15.0|2|0
|
||||
1.3.6.1.2.1.4.16.0|2|0
|
||||
1.3.6.1.2.1.4.17.0|2|0
|
||||
1.3.6.1.2.1.4.18.0|2|0
|
||||
1.3.6.1.2.1.4.19.0|2|0
|
||||
1.3.6.1.2.1.4.20.1.2.10.10.104.125|2|1
|
||||
1.3.6.1.2.1.4.20.1.3.10.10.104.125|64|255.255.255.0
|
||||
1.3.6.1.2.1.4.21.1.1.0.0.0.0|64|0.0.0.0
|
||||
1.3.6.1.2.1.4.21.1.1.10.10.104.0|64|10.10.104.0
|
||||
1.3.6.1.2.1.4.21.1.1.42.2.41.48|64|42.2.41.48
|
||||
1.3.6.1.2.1.4.22.1.2.1.10.10.104.5|4x|CC2DE027F4EE
|
||||
1.3.6.1.2.1.4.22.1.2.1.10.10.104.255|4x|FFFFFFFFFFFF
|
||||
1.3.6.1.2.1.5.1.0|65|10756
|
||||
1.3.6.1.2.1.5.2.0|65|0
|
||||
1.3.6.1.2.1.5.3.0|65|9
|
||||
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|10747
|
||||
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|10758
|
||||
1.3.6.1.2.1.5.15.0|65|0
|
||||
1.3.6.1.2.1.5.16.0|65|7
|
||||
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|10747
|
||||
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|1937
|
||||
1.3.6.1.2.1.6.6.0|65|1606
|
||||
1.3.6.1.2.1.6.7.0|65|0
|
||||
1.3.6.1.2.1.6.8.0|65|0
|
||||
1.3.6.1.2.1.6.9.0|66|0
|
||||
1.3.6.1.2.1.6.10.0|65|32070
|
||||
1.3.6.1.2.1.6.11.0|65|31043
|
||||
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|0
|
||||
1.3.6.1.2.1.7.1.0|65|42456
|
||||
1.3.6.1.2.1.7.2.0|65|7
|
||||
1.3.6.1.2.1.7.3.0|65|0
|
||||
1.3.6.1.2.1.7.4.0|65|45464
|
||||
1.3.6.1.2.1.11.1.0|65|0
|
||||
1.3.6.1.2.1.11.2.0|65|24577
|
||||
1.3.6.1.2.1.11.3.0|65|9
|
||||
1.3.6.1.2.1.11.4.0|65|0
|
||||
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|35583
|
||||
1.3.6.1.2.1.11.14.0|65|0
|
||||
1.3.6.1.2.1.11.15.0|65|12952
|
||||
1.3.6.1.2.1.11.16.0|65|11639
|
||||
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|4287
|
||||
1.3.6.1.2.1.11.22.0|65|0
|
||||
1.3.6.1.2.1.11.24.0|65|1472
|
||||
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|24601
|
||||
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.2.2.0|2|1310720
|
||||
1.3.6.1.2.1.25.3.2.1.5.1|2|2
|
||||
1.3.6.1.2.1.25.3.5.1.2.1|4x|0000
|
||||
1.3.6.1.2.1.43.8.2.1.9.1.1|2|300
|
||||
1.3.6.1.2.1.43.8.2.1.9.1.2|2|100
|
||||
1.3.6.1.2.1.43.8.2.1.9.1.3|2|530
|
||||
1.3.6.1.2.1.43.8.2.1.10.1.1|2|-3
|
||||
1.3.6.1.2.1.43.8.2.1.10.1.2|2|-3
|
||||
1.3.6.1.2.1.43.8.2.1.10.1.3|2|-3
|
||||
1.3.6.1.2.1.43.8.2.1.13.1.1|4|TRAY1
|
||||
1.3.6.1.2.1.43.8.2.1.13.1.2|4|MPTRAY
|
||||
1.3.6.1.2.1.43.8.2.1.13.1.3|4|TRAY2
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.1|2|3
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.2|2|3
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.3|2|3
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.4|2|3
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.5|2|9
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.6|2|9
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.7|2|9
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.8|2|9
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.9|2|20
|
||||
1.3.6.1.2.1.43.11.1.1.5.1.10|2|15
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.1|4|Black Toner Cartridge OKI DATA CORP
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.2|4|Cyan Toner Cartridge OKI DATA CORP
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.3|4|Magenta Toner Cartridge OKI DATA CORP
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.4|4|Yellow Toner Cartridge OKI DATA CORP
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.5|4|Black Image Drum Unit OKI DATA CORP
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.6|4|Cyan Image Drum Unit OKI DATA CORP
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.7|4|Magenta Image Drum Unit OKI DATA CORP
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.8|4|Yellow Image Drum Unit OKI DATA CORP
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.9|4|Belt Unit OKI DATA CORP
|
||||
1.3.6.1.2.1.43.11.1.1.6.1.10|4|Fuser Unit OKI DATA CORP
|
||||
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|30000
|
||||
1.3.6.1.2.1.43.11.1.1.8.1.6|2|30000
|
||||
1.3.6.1.2.1.43.11.1.1.8.1.7|2|30000
|
||||
1.3.6.1.2.1.43.11.1.1.8.1.8|2|30000
|
||||
1.3.6.1.2.1.43.11.1.1.8.1.9|2|80000
|
||||
1.3.6.1.2.1.43.11.1.1.8.1.10|2|100000
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.1|2|59
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.2|2|69
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.3|2|69
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.4|2|69
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.5|2|28407
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.6|2|28771
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.7|2|28771
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.8|2|28771
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.9|2|78392
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.10|2|98842
|
||||
1.3.6.1.4.1.11.2.3.9.1.1.7.0|4|MANUFACTURE:OKI UK LTD;COMMAND SET:PCL,XPS,IBMPPR,EPSONFX,POSTSCRIPT,IPDL;MODEL:MC873;CLASS:PRINTER;DESCRIPTION:MC873;
|
Reference in New Issue
Block a user