diff --git a/html/images/os/cxr-networks.png b/html/images/os/cxr-networks.png new file mode 100644 index 0000000000..4689d2352d Binary files /dev/null and b/html/images/os/cxr-networks.png differ diff --git a/includes/definitions/cxr-ts.yaml b/includes/definitions/cxr-ts.yaml new file mode 100644 index 0000000000..a9327a56a2 --- /dev/null +++ b/includes/definitions/cxr-ts.yaml @@ -0,0 +1,10 @@ +os: cxr-ts +text: 'CXR Networks TS' +type: network +icon: cxr-networks +over: + - { graph: device_bits, text: 'Device Traffic' } +mib_dir: + - cxr-networks +discovery: + - sysObjectID: .1.3.6.1.4.1.1425. diff --git a/includes/definitions/discovery/cxr-ts.yaml b/includes/definitions/discovery/cxr-ts.yaml new file mode 100644 index 0000000000..80cb5043cf --- /dev/null +++ b/includes/definitions/discovery/cxr-ts.yaml @@ -0,0 +1,33 @@ +mib: CXR-TS-MIB +modules: + sensors: + state: + data: + - + oid: system + value: ftpdService + num_oid: .1.3.6.1.4.1.1425.1040.1.8. + descr: FTP Service + state_name: ftpdService + states: + - { descr: on, graph: 0, value: 1, generic: 0 } + - { descr: off, graph: 0, value: 2, generic: 1 } + - + oid: system + value: httpdService + num_oid: .1.3.6.1.4.1.1425.1040.1.9. + descr: HTTP Service + state_name: httpdService + states: + - { descr: on, graph: 0, value: 1, generic: 0 } + - { descr: off, graph: 0, value: 2, generic: 1 } + - + oid: system + value: telnetdService + num_oid: .1.3.6.1.4.1.1425.1040.1.10. + descr: Telnet Service + state_name: telnetdService + states: + - { descr: on, graph: 0, value: 1, generic: 0 } + - { descr: off, graph: 0, value: 2, generic: 1 } + diff --git a/includes/polling/os/cxr-ts.inc.php b/includes/polling/os/cxr-ts.inc.php new file mode 100644 index 0000000000..e80e8885c7 --- /dev/null +++ b/includes/polling/os/cxr-ts.inc.php @@ -0,0 +1,10 @@ +. +* +* @package LibreNMS +* @link http://librenms.org +* @copyright PipoCanaja 2018 +* @author PipoCanaja +*/ + +$cxr_stats = snmpwalk_cache_oid($device, 'portTable', array(), 'CXR-TS-MIB'); +$cxr_stats = snmpwalk_cache_oid($device, 'portStatsTable', $cxr_stats, 'CXR-TS-MIB'); + +d_echo($cxr_stats); + +//We'll create dummy ifIndexes to add the Serial Ports to the LibreNMS port view. +//These devices are showing only a few interfaces, 1000 seems a sufficient offset. + +$offset = 1000; + +foreach ($cxr_stats as $index => $serialport_stats) { + $curIfIndex = $offset + $index; + $port_stats[$curIfIndex]['ifDescr'] = "SerialPort$index"; + $port_stats[$curIfIndex]['ifType'] = 'rs232'; //rs232 + $port_stats[$curIfIndex]['ifName'] = "Serial$index"; + $port_stats[$curIfIndex]['ifInOctets'] = $serialport_stats['bytesReceiveFromV24']; + $port_stats[$curIfIndex]['ifOutOctets'] = $serialport_stats['bytesSendToV24']; + $port_stats[$curIfIndex]['ifSpeed'] = preg_replace("/[^0-9.]/", '', $serialport_stats['baudRate']); + $port_stats[$curIfIndex]['ifAdminStatus'] = 'up'; + $port_stats[$curIfIndex]['ifOperStatus'] = 'up'; + $port_stats[$curIfIndex]['ifAlias'] = "Port $index, " . $serialport_stats['terminalType'] . ", " . $serialport_stats['mode'] . ", " . $serialport_stats['baudRate']." ".$serialport_stats['nbParStop']; + if ($serialport_stats['aliasIpAddress'] != "0.0.0.0") { + $port_stats[$curIfIndex]['ifAlias'] .= ", Alias IP: " . $serialport_stats['aliasIpAddress'] . ":".$serialport_stats['tcpPort']; + } + if ($serialport_stats['remoteIpAddress'] != "0.0.0.0") { + $port_stats[$curIfIndex]['ifAlias'] .= ", Remote IP: " . $serialport_stats['remoteIpAddress'] . ":".$serialport_stats['remoteTcpPort']; + } +} diff --git a/mibs/cxr-networks/CXR-TS-MIB b/mibs/cxr-networks/CXR-TS-MIB new file mode 100644 index 0000000000..d5a6190f5a --- /dev/null +++ b/mibs/cxr-networks/CXR-TS-MIB @@ -0,0 +1,766 @@ +--*************************************************************************** +-- CXR-TS-MIB - Version 1.14 - April 21 2004 +--*************************************************************************** + + CXR-TS-MIB + + DEFINITIONS ::= BEGIN + + + IMPORTS + IpAddress, enterprises FROM RFC1155-SMI + OBJECT-TYPE FROM RFC-1212 + DisplayString FROM RFC-1213 + TRAP-TYPE FROM RFC-1215; + + --************************************************************************* + -- Define the enterprise number as allocated by the internet authority + cxr OBJECT IDENTIFIER ::= { enterprises 1425 } + + --************************************************************************* + --************************************************************************* + -- the overall structure of the MIB + --************************************************************************* + --************************************************************************* + + ts OBJECT IDENTIFIER ::= { cxr 1040 } + + + --************************************************************************* + -- First Group: system + + system OBJECT IDENTIFIER ::= { ts 1 } + + --************************************************************************* + + productName OBJECT-TYPE + SYNTAX DisplayString + ACCESS read-only + STATUS mandatory + DESCRIPTION "Product Name" + ::= { system 1 } + + version OBJECT-TYPE + SYNTAX DisplayString + ACCESS read-only + STATUS mandatory + DESCRIPTION "Revision" + ::= { system 2 } + + bootp OBJECT-TYPE + SYNTAX INTEGER { + enable(1), + disable(2) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "Bootp" + ::= { system 3 } + + mainIpAddress OBJECT-TYPE + SYNTAX IpAddress + ACCESS read-write + STATUS mandatory + DESCRIPTION "IP address" + ::= { system 4 } + + ipNetmask OBJECT-TYPE + SYNTAX IpAddress + ACCESS read-write + STATUS mandatory + DESCRIPTION "IP Netmask" + ::= { system 5 } + + ipGateway OBJECT-TYPE + SYNTAX IpAddress + ACCESS read-write + STATUS mandatory + DESCRIPTION "IP Gateway" + ::= { system 6 } + + ethernetAddress OBJECT-TYPE + SYNTAX OCTET STRING + ACCESS read-only + STATUS mandatory + DESCRIPTION "Mac Address" + ::= { system 7 } + + ftpdService OBJECT-TYPE + SYNTAX INTEGER { + on(1), + off(2) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "FTPD Service" + ::= { system 8 } + + httpdService OBJECT-TYPE + SYNTAX INTEGER { + on(1), + off(2) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "HTTPD Service" + ::= { system 9 } + + telnetdService OBJECT-TYPE + SYNTAX INTEGER { + on(1), + off(2) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "TELNETD Service" + ::= { system 10 } + + snmpdService OBJECT-TYPE + SYNTAX INTEGER { + on(1), + off(2) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "SNMPD Service" + ::= { system 11 } + + snmpTrap OBJECT-TYPE + SYNTAX INTEGER { + on(1), + off(2) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "SNMP Traps" + + + ::= { system 12 } + + snmpTrapAddr1 OBJECT-TYPE + SYNTAX IpAddress + ACCESS read-write + STATUS mandatory + DESCRIPTION "Trap IP Address" + ::= { system 13 } + + snmpTrapAddr2 OBJECT-TYPE + SYNTAX IpAddress + ACCESS read-write + STATUS mandatory + DESCRIPTION "Trap IP Address" + ::= { system 14 } + + nameResolution OBJECT-TYPE + SYNTAX INTEGER { + on(1), + off(2) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "Names Resolution" + ::= { system 15 } + + nameServer1 OBJECT-TYPE + SYNTAX IpAddress + ACCESS read-write + STATUS mandatory + DESCRIPTION "Names Server 1" + ::= { system 16 } + + nameServer2 OBJECT-TYPE + SYNTAX IpAddress + ACCESS read-write + STATUS mandatory + DESCRIPTION "Names Server 1" + ::= { system 17 } + + radiusServer1 OBJECT-TYPE + SYNTAX IpAddress + ACCESS read-write + STATUS mandatory + DESCRIPTION "Radius Server 1" + ::= { system 18 } + + radiusSecret1 OBJECT-TYPE + SYNTAX DisplayString + ACCESS read-write + STATUS mandatory + DESCRIPTION "Secret for Radius Server 1" + ::= { system 19 } + + radiusServer2 OBJECT-TYPE + SYNTAX IpAddress + ACCESS read-write + STATUS mandatory + DESCRIPTION "Radius Server 2" + ::= { system 20 } + + radiusSecret2 OBJECT-TYPE + SYNTAX DisplayString + ACCESS read-write + STATUS mandatory + DESCRIPTION "Secret for Radius Server 2" + ::= { system 21 } + + siteName OBJECT-TYPE + SYNTAX DisplayString + ACCESS read-write + STATUS mandatory + DESCRIPTION "String indetifier for TS" + ::= { system 22 } + + resetByButton OBJECT-TYPE + SYNTAX INTEGER { + on(1), + off(2) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "Reset by button Enable ot Disable" + ::= { system 23 } + + reset OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-write + STATUS mandatory + DESCRIPTION "Reset the TS" + ::= { system 24 } + + --************************************************************************* + -- Second Group: port + + portTable OBJECT-TYPE + SYNTAX SEQUENCE OF PortEntry + ACCESS not-accessible + STATUS mandatory + DESCRIPTION + "A table containing all the ports" + ::= { ts 2 } + + portEntry OBJECT-TYPE + SYNTAX PortEntry + ACCESS not-accessible + STATUS mandatory + DESCRIPTION + "Port index 1 to 11 possible" + INDEX { portIndex } + ::= { portTable 1 } + + PortEntry ::= SEQUENCE { + portIndex INTEGER, + tcpPort INTEGER, + aliasIpAddress IpAddress, + aliasIpNetmask IpAddress, + timeoutRxTx INTEGER, + baudRate INTEGER, + nbParStop INTEGER, + ipServer INTEGER, + remoteIpAddress IpAddress, + gatewayToRemote IpAddress, + remoteTcpPort INTEGER, + flowControl INTEGER, + mode INTEGER, + rxIdle INTEGER, + txIdle INTEGER, + endMsg OCTET STRING, + interFrame INTEGER, + beforeSend INTEGER, + afterSend INTEGER, + timeoutPAD INTEGER, + terminalType INTEGER, + multiSession INTEGER, + authType INTEGER, + authRad1 INTEGER, + authRad2 INTEGER, + acctRad1 INTEGER, + acctRad2 INTEGER, + formFeed INTEGER, + secondIpAddress IpAddress, + secondGateway IpAddress, + secondTcpPort INTEGER, + modbusMode INTEGER, + modbusType INTEGER, + portReset INTEGER + } + + --************************************************************************* + + --************************************************************************* + -- Second Group: port + --************************************************************************* + + portIndex OBJECT-TYPE + SYNTAX INTEGER (1..11) + ACCESS read-only + STATUS mandatory + DESCRIPTION "Port Index" + ::= { portEntry 1 } + + tcpPort OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-write + STATUS mandatory + DESCRIPTION "TCP port" + ::= { portEntry 2 } + + aliasIpAddress OBJECT-TYPE + SYNTAX IpAddress + ACCESS read-write + STATUS mandatory + DESCRIPTION "Alias IP address" + ::= { portEntry 3 } + + aliasIpNetmask OBJECT-TYPE + SYNTAX IpAddress + ACCESS read-write + STATUS mandatory + DESCRIPTION "Alias IP netmask" + ::= { portEntry 4 } + + timeoutRxTx OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-write + STATUS mandatory + DESCRIPTION "Timeout No rx/Tx Data(min)" + ::= { portEntry 5 } + + baudRate OBJECT-TYPE + SYNTAX INTEGER { + b300(1), + b600(2), + b1200(3), + b2400(4), + b4800(5), + b9600(6), + b19200(7), + b38400(8), + b57600(9), + b115200(10), + b50(11), + b200(12) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "Baud rate" + ::= { portEntry 6 } + + nbParStop OBJECT-TYPE + SYNTAX INTEGER { + p7Odd1(1), + p7Odd2(2), + p7Even1(17), + p7Even2(18), + p7None1(33), + p7None2(34), + p7High1(49), + p7High2(50), + p7Low1(65), + p7Low2(66), + p8Odd1(129), + + p8Odd2(130), + p8Even1(145), + p8Even2(146), + p8None1(161), + p8None2(162), + p8High1(177), + p8High2(178), + p8Low1(193), + p8Low2(194) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "Nb bits/Parity/Nb stop bits" + ::= { portEntry 7 } + + ipServer OBJECT-TYPE + SYNTAX INTEGER { + active(1), + passive(2), + passiveExclusive(3) + } + ACCESS read-only + STATUS mandatory + DESCRIPTION "Server IP" + ::= { portEntry 8 } + + remoteIpAddress OBJECT-TYPE + SYNTAX IpAddress + ACCESS read-write + STATUS mandatory + DESCRIPTION "Remote IP address" + ::= { portEntry 9 } + + gatewayToRemote OBJECT-TYPE + SYNTAX IpAddress + ACCESS read-write + STATUS mandatory + DESCRIPTION "Gateway to remote" + ::= { portEntry 10 } + + remoteTcpPort OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-write + STATUS mandatory + DESCRIPTION "remote TCP port" + ::= { portEntry 11 } + + flowControl OBJECT-TYPE + SYNTAX INTEGER { + noFlowControl(1), + xonXoff(2), + rtsCts(3) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "Flow Control" + ::= { portEntry 12 } + + mode OBJECT-TYPE + SYNTAX INTEGER { + rfc2217(1), + msgFormat(2), + carrierBreak(3), + telex(4), + rlogin(5), + lpd(6), + telnet(7), + rawIp(8), + rtelnet(9), + pad(10), + muxv24(11), + modbus(12), + hnzs2(13), + hnzs5(14), + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "Fonctionnement" + ::= { portEntry 13 } + + rxIdle OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-write + STATUS mandatory + DESCRIPTION "Rx Idle" + ::= { portEntry 14 } + + txIdle OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-write + STATUS mandatory + DESCRIPTION "Tx Idle" + ::= { portEntry 15 } + + endMsg OBJECT-TYPE + SYNTAX OCTET STRING + ACCESS read-only + STATUS mandatory + DESCRIPTION "End msg character" + ::= { portEntry 16 } + + interFrame OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-write + STATUS mandatory + DESCRIPTION "Time Inter Frame(modem mode)" + ::= { portEntry 17 } + + beforeSend OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-write + STATUS mandatory + DESCRIPTION "Time Before Send(modem mode)" + ::= { portEntry 18 } + + afterSend OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-write + STATUS mandatory + DESCRIPTION "Time After Send(modem mode)" + ::= { portEntry 19 } + + timeoutPAD OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-write + STATUS mandatory + DESCRIPTION "Timeout PAD(modem PAD)" + ::= { portEntry 20 } + + + terminalType OBJECT-TYPE + SYNTAX INTEGER { + console(1), + linux(2), + aixterm(3), + dec-vt100(4), + vt100(5), + vt200(6), + vt420(7), + xterm(8), + xterms(9), + xtermc(10) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "Terminal Type" + ::= { portEntry 21 } + + multiSession OBJECT-TYPE + SYNTAX INTEGER { + on(1), + off(2) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "multiSession" + ::= { portEntry 22 } + + authType OBJECT-TYPE + SYNTAX INTEGER { + remote(1), + radius(2) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "Authentication type" + ::= { portEntry 23 } + + authRad1 OBJECT-TYPE + SYNTAX INTEGER { + on(1), + off(2) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "Use Server Radius 1 for auth." + ::= { portEntry 24 } + + authRad2 OBJECT-TYPE + SYNTAX INTEGER { + on(1), + off(2) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "Use Server Radius 2 for auth." + ::= { portEntry 25 } + + acctRad1 OBJECT-TYPE + SYNTAX INTEGER { + on(1), + off(2) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "Use Server Radius 1 for acct." + ::= { portEntry 26 } + + acctRad2 OBJECT-TYPE + SYNTAX INTEGER { + on(1), + off(2) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "Use Server Radius 2 for acct." + ::= { portEntry 27 } + + formFeed OBJECT-TYPE + SYNTAX INTEGER { + on(1), + off(2) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "LPD form Feed" + ::= { portEntry 28 } + + secondIpAddress OBJECT-TYPE + SYNTAX IpAddress + ACCESS read-write + STATUS mandatory + DESCRIPTION "Second IP address" + ::= { portEntry 29 } + + secondGateway OBJECT-TYPE + SYNTAX IpAddress + ACCESS read-write + STATUS mandatory + DESCRIPTION "Second Gateway" + ::= { portEntry 30 } + + secondTcpPort OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-write + STATUS mandatory + DESCRIPTION "Second TCP port" + ::= { portEntry 31 } + + modbusMode OBJECT-TYPE + SYNTAX INTEGER { + rtu(1), + ascii(2) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "Modbus Mode" + ::= { portEntry 32 } + + modbusType OBJECT-TYPE + SYNTAX INTEGER { + slave(1), + master(2) + } + ACCESS read-write + STATUS mandatory + DESCRIPTION "Modbus Type" + ::= { portEntry 33 } + + portReset OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-write + STATUS mandatory + DESCRIPTION "Apply changes to port" + ::= { portEntry 34 } + +--************************************************************************* +-- Third Group: port Stats + portStatsTable OBJECT-TYPE + SYNTAX SEQUENCE OF PortStatsEntry + ACCESS not-accessible + STATUS mandatory + DESCRIPTION + "A table containing all the statistics ports" + ::= { ts 3 } + + portStatsEntry OBJECT-TYPE + SYNTAX PortStatsEntry + ACCESS not-accessible + STATUS mandatory + DESCRIPTION + "Port index 1 to 11 possible" + INDEX { portIndex } + ::= { portStatsTable 1 } + + PortStatsEntry ::= SEQUENCE { + bytesReceiveFromV24 INTEGER, + bytesSendToV24 INTEGER, + statusDTR INTEGER + } + + +--************************************************************************* +-- Third Group: port Stats +--************************************************************************* + bytesReceiveFromV24 OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-only + STATUS mandatory + DESCRIPTION "Bytes received from V24" + ::= { portStatsEntry 1} + + bytesSendToV24 OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-only + STATUS mandatory + DESCRIPTION "Bytes send to V24" + ::= { portStatsEntry 2} + + statusDTR OBJECT-TYPE + SYNTAX INTEGER { + on(1), + off(2) + } + ACCESS read-only + STATUS mandatory + DESCRIPTION "DTR Status" + ::= { portStatsEntry 3} + + + +--************************************************************************* +-- Fourth Group: modbus Param + modbusTable OBJECT-TYPE + SYNTAX SEQUENCE OF ModbusEntry + ACCESS not-accessible + STATUS mandatory + DESCRIPTION + "Master modbus table containing all the slave parameters table" + ::= { ts 4 } + + modbusEntry OBJECT-TYPE + SYNTAX ModbusEntry + ACCESS not-accessible + STATUS mandatory + DESCRIPTION + "Slave index 1 to 16 possible" + INDEX { portIndex } + ::= { modbusTable 1 } + + ModbusEntry ::= SEQUENCE { + slaveHexaAddress INTEGER, + slaveIPaddr IpAddress, + slaveIPport INTEGER + } + + +--************************************************************************* +-- Fourth Group: modbus +--************************************************************************* + slaveHexaAddress OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-write + STATUS mandatory + DESCRIPTION "Modbus Hexadecimal address" + ::= { modbusEntry 1} + + slaveIPaddr OBJECT-TYPE + SYNTAX IpAddress + ACCESS read-write + STATUS mandatory + DESCRIPTION "Modbus IP address" + ::= { modbusEntry 2} + + slaveIPport OBJECT-TYPE + SYNTAX INTEGER + ACCESS read-write + STATUS mandatory + DESCRIPTION "Modbus IP Port" + ::= { modbusEntry 3} + + + --************************************************************************* + -- TRAP : Terminal SERVER + --************************************************************************* + + sessionStarted TRAP-TYPE + ENTERPRISE cxr + VARIABLES { portIndex } + DESCRIPTION "Session Begin" + ::= 1041 + + sessionStopped TRAP-TYPE + ENTERPRISE cxr + VARIABLES { portIndex } + DESCRIPTION "Session End" + ::= 1042 + + dtrUp TRAP-TYPE + ENTERPRISE cxr + + VARIABLES { portIndex } + DESCRIPTION "DTR UP" + ::= 1043 + + dtrDown TRAP-TYPE + ENTERPRISE cxr + VARIABLES { portIndex } + DESCRIPTION "DTR DOWN" + ::= 1044 + + + +END + diff --git a/tests/data/cxr-ts.json b/tests/data/cxr-ts.json new file mode 100644 index 0000000000..93f4b480e1 --- /dev/null +++ b/tests/data/cxr-ts.json @@ -0,0 +1,905 @@ +{ + "os": { + "discovery": { + "devices": [ + { + "sysName": "", + "sysObjectID": ".1.3.6.1.4.1.1425.1040", + "sysDescr": "TS 324 (SN: 0302000017017 - 11 03)", + "sysContact": null, + "version": null, + "hardware": null, + "features": null, + "location": null, + "os": "cxr-ts", + "type": "network", + "serial": null, + "icon": "cxr-networks.png" + } + ] + }, + "poller": { + "devices": [ + { + "sysName": "", + "sysObjectID": ".1.3.6.1.4.1.1425.1040", + "sysDescr": "TS 324 (SN: 0302000017017 - 11 03)", + "sysContact": "", + "version": "Rev 2.44d", + "hardware": "TS 324 (047202CD)", + "features": null, + "location": "", + "os": "cxr-ts", + "type": "network", + "serial": null, + "icon": "cxr-networks.png" + } + ] + } + }, + "ports": { + "discovery": { + "ports": [ + { + "port_descr_type": null, + "port_descr_descr": null, + "port_descr_circuit": null, + "port_descr_speed": null, + "port_descr_notes": null, + "ifDescr": "ether", + "ifName": null, + "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": null, + "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 + }, + { + "port_descr_type": null, + "port_descr_descr": null, + "port_descr_circuit": null, + "port_descr_speed": null, + "port_descr_notes": null, + "ifDescr": "lo", + "ifName": null, + "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": null, + "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": "ether", + "ifName": "ether", + "portName": null, + "ifIndex": 1, + "ifSpeed": 10000000, + "ifConnectorPresent": null, + "ifPromiscuousMode": null, + "ifHighSpeed": null, + "ifOperStatus": "up", + "ifOperStatus_prev": null, + "ifAdminStatus": "up", + "ifAdminStatus_prev": null, + "ifDuplex": null, + "ifMtu": 1500, + "ifType": "ethernetCsmacd", + "ifAlias": "ether", + "ifPhysAddress": "00408e8051c2", + "ifHardType": null, + "ifLastChange": 156, + "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": 4294938561, + "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": 8572478, + "ifInOctets_prev": 0, + "ifInOctets_delta": null, + "ifInOctets_rate": null, + "ifOutOctets": 14333737, + "ifOutOctets_prev": 0, + "ifOutOctets_delta": null, + "ifOutOctets_rate": null, + "poll_prev": null, + "ifInNUcastPkts": 28735, + "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 + }, + { + "port_descr_type": null, + "port_descr_descr": null, + "port_descr_circuit": null, + "port_descr_speed": null, + "port_descr_notes": null, + "ifDescr": "lo", + "ifName": "lo", + "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": 16384, + "ifType": "softwareLoopback", + "ifAlias": "lo", + "ifPhysAddress": null, + "ifHardType": null, + "ifLastChange": 158, + "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": 0, + "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": 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 + }, + { + "port_descr_type": "port 1, vt100, rtelnet, b9600 p8none1, alias ip", + "port_descr_descr": "10.199.0.254", + "port_descr_circuit": null, + "port_descr_speed": null, + "port_descr_notes": null, + "ifDescr": "SerialPort1", + "ifName": "Serial1", + "portName": null, + "ifIndex": 1001, + "ifSpeed": 9600, + "ifConnectorPresent": null, + "ifPromiscuousMode": null, + "ifHighSpeed": null, + "ifOperStatus": "up", + "ifOperStatus_prev": null, + "ifAdminStatus": "up", + "ifAdminStatus_prev": null, + "ifDuplex": null, + "ifMtu": null, + "ifType": "rs232", + "ifAlias": "Port 1, vt100, rtelnet, b9600 p8None1, Alias IP: 10.199.0.254:23", + "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": 0, + "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": 25530, + "ifInOctets_prev": 0, + "ifInOctets_delta": null, + "ifInOctets_rate": null, + "ifOutOctets": 1241, + "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 + }, + { + "port_descr_type": "port 2, vt100, rtelnet, b9600 p8none1, alias ip", + "port_descr_descr": "10.199.0.253", + "port_descr_circuit": null, + "port_descr_speed": null, + "port_descr_notes": null, + "ifDescr": "SerialPort2", + "ifName": "Serial2", + "portName": null, + "ifIndex": 1002, + "ifSpeed": 9600, + "ifConnectorPresent": null, + "ifPromiscuousMode": null, + "ifHighSpeed": null, + "ifOperStatus": "up", + "ifOperStatus_prev": null, + "ifAdminStatus": "up", + "ifAdminStatus_prev": null, + "ifDuplex": null, + "ifMtu": null, + "ifType": "rs232", + "ifAlias": "Port 2, vt100, rtelnet, b9600 p8None1, Alias IP: 10.199.0.253:23", + "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": 0, + "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": 1170750, + "ifInOctets_prev": 0, + "ifInOctets_delta": null, + "ifInOctets_rate": null, + "ifOutOctets": 1632, + "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 + }, + { + "port_descr_type": null, + "port_descr_descr": null, + "port_descr_circuit": null, + "port_descr_speed": null, + "port_descr_notes": null, + "ifDescr": "SerialPort3", + "ifName": "Serial3", + "portName": null, + "ifIndex": 1003, + "ifSpeed": 19200, + "ifConnectorPresent": null, + "ifPromiscuousMode": null, + "ifHighSpeed": null, + "ifOperStatus": "up", + "ifOperStatus_prev": null, + "ifAdminStatus": "up", + "ifAdminStatus_prev": null, + "ifDuplex": null, + "ifMtu": null, + "ifType": "rs232", + "ifAlias": "Port 3, console, rfc2217, b19200 p8None1", + "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": 0, + "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": 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 + } + ] + } + }, + "sensors": { + "discovery": { + "sensors": [ + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.1425.1040.1.8.0", + "sensor_index": "0", + "sensor_type": "ftpdService", + "sensor_descr": "FTP Service", + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 1, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "state_name": "ftpdService" + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.1425.1040.1.9.0", + "sensor_index": "0", + "sensor_type": "httpdService", + "sensor_descr": "HTTP Service", + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 1, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "state_name": "httpdService" + }, + { + "sensor_deleted": 0, + "sensor_class": "state", + "poller_type": "snmp", + "sensor_oid": ".1.3.6.1.4.1.1425.1040.1.10.0", + "sensor_index": "0", + "sensor_type": "telnetdService", + "sensor_descr": "Telnet Service", + "sensor_divisor": 1, + "sensor_multiplier": 1, + "sensor_current": 1, + "sensor_limit": null, + "sensor_limit_warn": null, + "sensor_limit_low": null, + "sensor_limit_low_warn": null, + "sensor_alert": 1, + "sensor_custom": "No", + "entPhysicalIndex": null, + "entPhysicalIndex_measured": null, + "sensor_prev": null, + "user_func": null, + "state_name": "telnetdService" + } + ], + "state_indexes": [ + { + "state_name": "ftpdService", + "state_descr": "on", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 0 + }, + { + "state_name": "ftpdService", + "state_descr": "off", + "state_draw_graph": 0, + "state_value": 2, + "state_generic_value": 1 + }, + { + "state_name": "httpdService", + "state_descr": "on", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 0 + }, + { + "state_name": "httpdService", + "state_descr": "off", + "state_draw_graph": 0, + "state_value": 2, + "state_generic_value": 1 + }, + { + "state_name": "telnetdService", + "state_descr": "on", + "state_draw_graph": 0, + "state_value": 1, + "state_generic_value": 0 + }, + { + "state_name": "telnetdService", + "state_descr": "off", + "state_draw_graph": 0, + "state_value": 2, + "state_generic_value": 1 + } + ] + }, + "poller": "matches discovery" + } +} diff --git a/tests/snmpsim/cxr-ts.snmprec b/tests/snmpsim/cxr-ts.snmprec new file mode 100644 index 0000000000..c10aff429f --- /dev/null +++ b/tests/snmpsim/cxr-ts.snmprec @@ -0,0 +1,271 @@ +1.3.6.1.2.1.1.1.0|4|TS 324 (SN: 0302000017017 - 11 03) +1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.1425.1040 +1.3.6.1.2.1.1.3.0|67|19030921 +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|ether +1.3.6.1.2.1.2.2.1.2.2|4|lo +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|16384 +1.3.6.1.2.1.2.2.1.5.1|66|10000000 +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|00408E8051C2 +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|156 +1.3.6.1.2.1.2.2.1.9.2|67|158 +1.3.6.1.2.1.2.2.1.10.1|65|8572478 +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|4294938561 +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|28735 +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|14333737 +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|0 +1.3.6.1.2.1.2.2.1.17.2|65|0 +1.3.6.1.2.1.2.2.1.18.1|65|0 +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|54018 +1.3.6.1.2.1.4.4.0|65|0 +1.3.6.1.2.1.4.5.0|65|0 +1.3.6.1.2.1.4.6.0|65|0 +1.3.6.1.2.1.4.7.0|65|0 +1.3.6.1.2.1.4.8.0|65|0 +1.3.6.1.2.1.4.9.0|65|54017 +1.3.6.1.2.1.4.10.0|65|50143 +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|0 +1.3.6.1.2.1.4.15.0|65|0 +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.10.199.0.252|2|1 +1.3.6.1.2.1.4.20.1.3.10.199.0.252|64|255.255.255.0 +1.3.6.1.2.1.4.22.1.2.1.10.199.0.1|4x|F023FEED1233 +1.3.6.1.2.1.5.1.0|65|1190 +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|1190 +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|1190 +1.3.6.1.2.1.5.15.0|65|0 +1.3.6.1.2.1.5.16.0|65|0 +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|1190 +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|0 +1.3.6.1.2.1.6.6.0|65|4088 +1.3.6.1.2.1.6.7.0|65|0 +1.3.6.1.2.1.6.8.0|65|4 +1.3.6.1.2.1.6.9.0|66|0 +1.3.6.1.2.1.6.10.0|65|34453 +1.3.6.1.2.1.6.11.0|65|29284 +1.3.6.1.2.1.6.12.0|65|1390 +1.3.6.1.2.1.6.14.0|65|0 +1.3.6.1.2.1.6.15.0|65|4294963226 +1.3.6.1.2.1.7.1.0|65|18405 +1.3.6.1.2.1.7.2.0|65|0 +1.3.6.1.2.1.7.3.0|65|0 +1.3.6.1.2.1.7.4.0|65|18304 +1.3.6.1.2.1.11.1.0|65|18276 +1.3.6.1.2.1.11.2.0|65|18275 +1.3.6.1.2.1.11.3.0|65|0 +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|25712 +1.3.6.1.2.1.11.14.0|65|0 +1.3.6.1.2.1.11.15.0|65|17639 +1.3.6.1.2.1.11.16.0|65|638 +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|0 +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|18277 +1.3.6.1.2.1.11.29.0|65|13 +1.3.6.1.2.1.11.30.0|2|1 +1.3.6.1.4.1.1425.1040.1.1.0|4|TS 324 (047202CD) +1.3.6.1.4.1.1425.1040.1.2.0|4|Rev 2.44d +1.3.6.1.4.1.1425.1040.1.3.0|2|2 +1.3.6.1.4.1.1425.1040.1.4.0|64|10.199.0.252 +1.3.6.1.4.1.1425.1040.1.5.0|64|255.255.255.0 +1.3.6.1.4.1.1425.1040.1.6.0|64|10.199.0.1 +1.3.6.1.4.1.1425.1040.1.7.0|4x|00408E8051C2 +1.3.6.1.4.1.1425.1040.1.8.0|2|1 +1.3.6.1.4.1.1425.1040.1.9.0|2|1 +1.3.6.1.4.1.1425.1040.1.10.0|2|1 +1.3.6.1.4.1.1425.1040.1.11.0|2|1 +1.3.6.1.4.1.1425.1040.1.12.0|2|1 +1.3.6.1.4.1.1425.1040.1.13.0|64|195.162.163.246 +1.3.6.1.4.1.1425.1040.1.14.0|64|0.0.0.0 +1.3.6.1.4.1.1425.1040.1.15.0|2|2 +1.3.6.1.4.1.1425.1040.1.16.0|64|127.0.0.1 +1.3.6.1.4.1.1425.1040.1.17.0|64|127.0.0.1 +1.3.6.1.4.1.1425.1040.1.18.0|64|0.0.0.0 +1.3.6.1.4.1.1425.1040.1.19.0|4|secret +1.3.6.1.4.1.1425.1040.1.20.0|64|0.0.0.0 +1.3.6.1.4.1.1425.1040.1.21.0|4|secret +1.3.6.1.4.1.1425.1040.1.22.0|4|CXR1 +1.3.6.1.4.1.1425.1040.1.23.0|2|1 +1.3.6.1.4.1.1425.1040.2.1.1.1|2|1 +1.3.6.1.4.1.1425.1040.2.1.1.2|2|2 +1.3.6.1.4.1.1425.1040.2.1.1.3|2|3 +1.3.6.1.4.1.1425.1040.2.1.2.1|2|23 +1.3.6.1.4.1.1425.1040.2.1.2.2|2|23 +1.3.6.1.4.1.1425.1040.2.1.2.3|2|2002 +1.3.6.1.4.1.1425.1040.2.1.3.1|64|10.199.0.254 +1.3.6.1.4.1.1425.1040.2.1.3.2|64|10.199.0.253 +1.3.6.1.4.1.1425.1040.2.1.3.3|64|0.0.0.0 +1.3.6.1.4.1.1425.1040.2.1.4.1|64|255.255.255.0 +1.3.6.1.4.1.1425.1040.2.1.4.2|64|255.255.255.0 +1.3.6.1.4.1.1425.1040.2.1.4.3|64|0.0.0.0 +1.3.6.1.4.1.1425.1040.2.1.5.1|2|0 +1.3.6.1.4.1.1425.1040.2.1.5.2|2|0 +1.3.6.1.4.1.1425.1040.2.1.5.3|2|0 +1.3.6.1.4.1.1425.1040.2.1.6.1|2|6 +1.3.6.1.4.1.1425.1040.2.1.6.2|2|6 +1.3.6.1.4.1.1425.1040.2.1.6.3|2|7 +1.3.6.1.4.1.1425.1040.2.1.7.1|2|161 +1.3.6.1.4.1.1425.1040.2.1.7.2|2|161 +1.3.6.1.4.1.1425.1040.2.1.7.3|2|161 +1.3.6.1.4.1.1425.1040.2.1.8.1|2|2 +1.3.6.1.4.1.1425.1040.2.1.8.2|2|2 +1.3.6.1.4.1.1425.1040.2.1.8.3|2|2 +1.3.6.1.4.1.1425.1040.2.1.9.1|64|0.0.0.0 +1.3.6.1.4.1.1425.1040.2.1.9.2|64|0.0.0.0 +1.3.6.1.4.1.1425.1040.2.1.9.3|64|0.0.0.0 +1.3.6.1.4.1.1425.1040.2.1.10.1|64|0.0.0.0 +1.3.6.1.4.1.1425.1040.2.1.10.2|64|0.0.0.0 +1.3.6.1.4.1.1425.1040.2.1.10.3|64|0.0.0.0 +1.3.6.1.4.1.1425.1040.2.1.11.1|2|0 +1.3.6.1.4.1.1425.1040.2.1.11.2|2|23 +1.3.6.1.4.1.1425.1040.2.1.11.3|2|2002 +1.3.6.1.4.1.1425.1040.2.1.12.1|2|0 +1.3.6.1.4.1.1425.1040.2.1.12.2|2|0 +1.3.6.1.4.1.1425.1040.2.1.12.3|2|0 +1.3.6.1.4.1.1425.1040.2.1.13.1|2|9 +1.3.6.1.4.1.1425.1040.2.1.13.2|2|9 +1.3.6.1.4.1.1425.1040.2.1.13.3|2|1 +1.3.6.1.4.1.1425.1040.2.1.14.1|2|0 +1.3.6.1.4.1.1425.1040.2.1.14.2|2|0 +1.3.6.1.4.1.1425.1040.2.1.14.3|2|0 +1.3.6.1.4.1.1425.1040.2.1.15.1|2|0 +1.3.6.1.4.1.1425.1040.2.1.15.2|2|0 +1.3.6.1.4.1.1425.1040.2.1.15.3|2|0 +1.3.6.1.4.1.1425.1040.2.1.16.1|4x|00 +1.3.6.1.4.1.1425.1040.2.1.16.2|4x|00 +1.3.6.1.4.1.1425.1040.2.1.16.3|4x|00 +1.3.6.1.4.1.1425.1040.2.1.17.1|2|0 +1.3.6.1.4.1.1425.1040.2.1.17.2|2|0 +1.3.6.1.4.1.1425.1040.2.1.17.3|2|0 +1.3.6.1.4.1.1425.1040.2.1.18.1|2|0 +1.3.6.1.4.1.1425.1040.2.1.18.2|2|0 +1.3.6.1.4.1.1425.1040.2.1.18.3|2|0 +1.3.6.1.4.1.1425.1040.2.1.19.1|2|0 +1.3.6.1.4.1.1425.1040.2.1.19.2|2|0 +1.3.6.1.4.1.1425.1040.2.1.19.3|2|0 +1.3.6.1.4.1.1425.1040.2.1.20.1|2|0 +1.3.6.1.4.1.1425.1040.2.1.20.2|2|0 +1.3.6.1.4.1.1425.1040.2.1.20.3|2|0 +1.3.6.1.4.1.1425.1040.2.1.21.1|2|5 +1.3.6.1.4.1.1425.1040.2.1.21.2|2|5 +1.3.6.1.4.1.1425.1040.2.1.21.3|2|1 +1.3.6.1.4.1.1425.1040.2.1.22.1|2|2 +1.3.6.1.4.1.1425.1040.2.1.22.2|2|2 +1.3.6.1.4.1.1425.1040.2.1.22.3|2|2 +1.3.6.1.4.1.1425.1040.2.1.23.1|2|2 +1.3.6.1.4.1.1425.1040.2.1.23.2|2|2 +1.3.6.1.4.1.1425.1040.2.1.23.3|2|2 +1.3.6.1.4.1.1425.1040.2.1.24.1|2|2 +1.3.6.1.4.1.1425.1040.2.1.24.2|2|2 +1.3.6.1.4.1.1425.1040.2.1.24.3|2|2 +1.3.6.1.4.1.1425.1040.2.1.25.1|2|2 +1.3.6.1.4.1.1425.1040.2.1.25.2|2|2 +1.3.6.1.4.1.1425.1040.2.1.25.3|2|2 +1.3.6.1.4.1.1425.1040.2.1.26.1|2|2 +1.3.6.1.4.1.1425.1040.2.1.26.2|2|2 +1.3.6.1.4.1.1425.1040.2.1.26.3|2|2 +1.3.6.1.4.1.1425.1040.2.1.27.1|2|2 +1.3.6.1.4.1.1425.1040.2.1.27.2|2|2 +1.3.6.1.4.1.1425.1040.2.1.27.3|2|2 +1.3.6.1.4.1.1425.1040.2.1.28.1|2|2 +1.3.6.1.4.1.1425.1040.2.1.28.2|2|2 +1.3.6.1.4.1.1425.1040.2.1.28.3|2|2 +1.3.6.1.4.1.1425.1040.2.1.29.1|64|0.0.0.0 +1.3.6.1.4.1.1425.1040.2.1.29.2|64|0.0.0.0 +1.3.6.1.4.1.1425.1040.2.1.29.3|64|0.0.0.0 +1.3.6.1.4.1.1425.1040.2.1.30.1|64|0.0.0.0 +1.3.6.1.4.1.1425.1040.2.1.30.2|64|0.0.0.0 +1.3.6.1.4.1.1425.1040.2.1.30.3|64|0.0.0.0 +1.3.6.1.4.1.1425.1040.2.1.31.1|2|0 +1.3.6.1.4.1.1425.1040.2.1.31.2|2|0 +1.3.6.1.4.1.1425.1040.2.1.31.3|2|0 +1.3.6.1.4.1.1425.1040.2.1.32.1|2|2 +1.3.6.1.4.1.1425.1040.2.1.32.2|2|2 +1.3.6.1.4.1.1425.1040.2.1.32.3|2|2 +1.3.6.1.4.1.1425.1040.2.1.33.1|2|2 +1.3.6.1.4.1.1425.1040.2.1.33.2|2|2 +1.3.6.1.4.1.1425.1040.2.1.33.3|2|2 +1.3.6.1.4.1.1425.1040.2.1.34.1|2|0 +1.3.6.1.4.1.1425.1040.2.1.34.2|2|0 +1.3.6.1.4.1.1425.1040.2.1.34.3|2|0 +1.3.6.1.4.1.1425.1040.3.1.1.1|2|25530 +1.3.6.1.4.1.1425.1040.3.1.1.2|2|1170750 +1.3.6.1.4.1.1425.1040.3.1.1.3|2|0 +1.3.6.1.4.1.1425.1040.3.1.2.1|2|1241 +1.3.6.1.4.1.1425.1040.3.1.2.2|2|1632 +1.3.6.1.4.1.1425.1040.3.1.2.3|2|0 +1.3.6.1.4.1.1425.1040.3.1.3.1|2|2 +1.3.6.1.4.1.1425.1040.3.1.3.2|2|2 +1.3.6.1.4.1.1425.1040.3.1.3.3|2|2