mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Support for DKT Comega FTTx devices (#9732)
* DKT Comega device support * DKT Comega device support * DKT Comega device support * DKT Comega device support
This commit is contained in:
parent
ccd9973695
commit
c7c1ca2c5a
BIN
html/images/os/dkt.png
Normal file
BIN
html/images/os/dkt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.0 KiB |
23
includes/definitions/discovery/dkt.yaml
Normal file
23
includes/definitions/discovery/dkt.yaml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
mib: DKT-CATV-MIB:DKT-FE-MIB:DKT-GE-MIB:DKT-GENERIC-MIB:DKT-MIB:DKT-RMON-MIB
|
||||||
|
modules:
|
||||||
|
sensors:
|
||||||
|
state:
|
||||||
|
data:
|
||||||
|
-
|
||||||
|
oid: catvSignalDetect
|
||||||
|
value: catvSignalDetect
|
||||||
|
num_oid: '.1.3.6.1.4.1.27304.11.3.{{ $index }}'
|
||||||
|
descr: 'CATV Signal Detect'
|
||||||
|
index: '0'
|
||||||
|
states:
|
||||||
|
- { descr: Signal Ok, graph: 0, value: 1, generic: 0 }
|
||||||
|
- { descr: No Signal, graph: 0, value: 0, generic: 3 }
|
||||||
|
-
|
||||||
|
oid: catvSwitch
|
||||||
|
value: catvSwitch
|
||||||
|
num_oid: '.1.3.6.1.4.1.27304.11.2.{{ $index }}'
|
||||||
|
descr: 'CATV Module'
|
||||||
|
index: '0'
|
||||||
|
states:
|
||||||
|
- { descr: Powered, graph: 0, value: 1, generic: 0 }
|
||||||
|
- { descr: Not powered, graph: 0, value: 0, generic: 3 }
|
11
includes/definitions/dkt.yaml
Normal file
11
includes/definitions/dkt.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
os: dkt
|
||||||
|
group: dkt
|
||||||
|
text: 'DKT Comega'
|
||||||
|
type: network
|
||||||
|
icon: dkt
|
||||||
|
over:
|
||||||
|
- { graph: device_bits, text: 'Device Traffic' }
|
||||||
|
mib_dir:
|
||||||
|
- dkt
|
||||||
|
discovery:
|
||||||
|
- sysObjectID: .1.3.6.1.4.1.27304
|
5
includes/polling/os/dkt.inc.php
Normal file
5
includes/polling/os/dkt.inc.php
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
$hardware = 'DKT ' . snmp_get($device, 'DKT-GENERIC-MIB::hwVersion.0', '-OQv');
|
||||||
|
$version = snmp_get($device, 'DKT-GENERIC-MIB::swVersion.0', '-OQv');
|
||||||
|
|
60
mibs/dkt/DKT-CATV-MIB
Normal file
60
mibs/dkt/DKT-CATV-MIB
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
DKT-CATV-MIB DEFINITIONS ::= BEGIN
|
||||||
|
|
||||||
|
IMPORTS
|
||||||
|
MODULE-IDENTITY, OBJECT-TYPE, Integer32,
|
||||||
|
Counter32 FROM SNMPv2-SMI
|
||||||
|
OBJECT-GROUP FROM SNMPv2-CONF
|
||||||
|
dkt FROM DKT-MIB;
|
||||||
|
|
||||||
|
catvMIB MODULE-IDENTITY
|
||||||
|
LAST-UPDATED "200812170000Z"
|
||||||
|
ORGANIZATION "DKT A/S"
|
||||||
|
CONTACT-INFO
|
||||||
|
"postal: DKT A/S
|
||||||
|
Fanoevej 6
|
||||||
|
DK-4060 Kirke Saaby
|
||||||
|
Denmark
|
||||||
|
|
||||||
|
email: info@dktcomega.com"
|
||||||
|
DESCRIPTION "DKT CATV MIB."
|
||||||
|
::= { dkt 11 }
|
||||||
|
|
||||||
|
catvVersion OBJECT-TYPE
|
||||||
|
SYNTAX OCTET STRING (SIZE(0..100))
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Version string for the CATV module"
|
||||||
|
::= { catvMIB 1 }
|
||||||
|
|
||||||
|
catvSwitch OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER
|
||||||
|
MAX-ACCESS read-write
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Switch CATV module on or off. 1 = on 0 = off"
|
||||||
|
::= { catvMIB 2 }
|
||||||
|
|
||||||
|
catvSignalDetect OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"CATV Rx signal detect. 1 = signal, 0 = no signal"
|
||||||
|
::= { catvMIB 3 }
|
||||||
|
|
||||||
|
|
||||||
|
catvModuleGroup OBJECT-GROUP
|
||||||
|
OBJECTS {
|
||||||
|
catvVersion,
|
||||||
|
catvSwitch,
|
||||||
|
catvSignalDetect
|
||||||
|
}
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"The objects are related to the DKT CATV module."
|
||||||
|
::= { catvMIB 4 }
|
||||||
|
|
||||||
|
END
|
||||||
|
|
||||||
|
|
1415
mibs/dkt/DKT-FE-MIB
Normal file
1415
mibs/dkt/DKT-FE-MIB
Normal file
File diff suppressed because it is too large
Load Diff
1239
mibs/dkt/DKT-GE-MIB
Normal file
1239
mibs/dkt/DKT-GE-MIB
Normal file
File diff suppressed because it is too large
Load Diff
61
mibs/dkt/DKT-GENERIC-MIB
Normal file
61
mibs/dkt/DKT-GENERIC-MIB
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
DKT-GENERIC-MIB DEFINITIONS ::= BEGIN
|
||||||
|
|
||||||
|
IMPORTS
|
||||||
|
MODULE-IDENTITY, OBJECT-TYPE, Integer32,
|
||||||
|
Counter32 FROM SNMPv2-SMI
|
||||||
|
OBJECT-GROUP FROM SNMPv2-CONF
|
||||||
|
dkt FROM DKT-MIB;
|
||||||
|
|
||||||
|
genericMIB MODULE-IDENTITY
|
||||||
|
LAST-UPDATED "200812170000Z"
|
||||||
|
ORGANIZATION "DKT A/S"
|
||||||
|
CONTACT-INFO
|
||||||
|
"postal: DKT A/S
|
||||||
|
Fanoevej 6
|
||||||
|
DK-4060 Kirke Saaby
|
||||||
|
Denmark
|
||||||
|
|
||||||
|
email: info@dktcomega.com"
|
||||||
|
DESCRIPTION "DKT GENERIC MIB."
|
||||||
|
::= { dkt 10 }
|
||||||
|
|
||||||
|
hwVersion OBJECT-TYPE
|
||||||
|
SYNTAX OCTET STRING (SIZE(0..100))
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Version string for the HW"
|
||||||
|
::= { genericMIB 1 }
|
||||||
|
|
||||||
|
swVersion OBJECT-TYPE
|
||||||
|
SYNTAX OCTET STRING (SIZE(0..100))
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Version string for the SW"
|
||||||
|
::= { genericMIB 2 }
|
||||||
|
|
||||||
|
reboot OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER
|
||||||
|
MAX-ACCESS write-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Set to 1 to reboot the device"
|
||||||
|
::= { genericMIB 3 }
|
||||||
|
|
||||||
|
|
||||||
|
genericModuleGroup OBJECT-GROUP
|
||||||
|
OBJECTS {
|
||||||
|
hwVersion,
|
||||||
|
swVersion,
|
||||||
|
reboot
|
||||||
|
}
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"The objects are related to all DKT modules."
|
||||||
|
::= { genericMIB 4 }
|
||||||
|
|
||||||
|
END
|
||||||
|
|
||||||
|
|
||||||
|
|
18
mibs/dkt/DKT-MIB
Normal file
18
mibs/dkt/DKT-MIB
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
DKT-MIB DEFINITIONS ::= BEGIN
|
||||||
|
|
||||||
|
IMPORTS
|
||||||
|
MODULE-IDENTITY, enterprises FROM SNMPv2-SMI;
|
||||||
|
|
||||||
|
dkt MODULE-IDENTITY
|
||||||
|
LAST-UPDATED "200802240000Z"
|
||||||
|
ORGANIZATION "DKT A/S"
|
||||||
|
CONTACT-INFO
|
||||||
|
"postal: DKT A/S
|
||||||
|
Fanoevej 6
|
||||||
|
DK-4060 Kirke Saaby
|
||||||
|
Denmark
|
||||||
|
|
||||||
|
email: info@dkt.dk"
|
||||||
|
DESCRIPTION "Base MIB for DKT."
|
||||||
|
::= { enterprises 27304 }
|
||||||
|
END
|
1642
mibs/dkt/DKT-RMON-MIB
Normal file
1642
mibs/dkt/DKT-RMON-MIB
Normal file
File diff suppressed because it is too large
Load Diff
377
mibs/dkt/IDKT-F2-MIB
Normal file
377
mibs/dkt/IDKT-F2-MIB
Normal file
@ -0,0 +1,377 @@
|
|||||||
|
IDKT-F2-MIB DEFINITIONS ::= BEGIN
|
||||||
|
|
||||||
|
IMPORTS
|
||||||
|
MODULE-IDENTITY, OBJECT-TYPE, Integer32,
|
||||||
|
Counter32 FROM SNMPv2-SMI
|
||||||
|
OBJECT-GROUP FROM SNMPv2-CONF
|
||||||
|
dkt FROM DKT-MIB
|
||||||
|
MacAddress FROM SNMPv2-TC;
|
||||||
|
|
||||||
|
f2MIB MODULE-IDENTITY
|
||||||
|
LAST-UPDATED "201504210000Z"
|
||||||
|
ORGANIZATION "DKT A/S"
|
||||||
|
CONTACT-INFO
|
||||||
|
"postal: DKT A/S
|
||||||
|
Fanoevej 6
|
||||||
|
DK-4060 Kirke Saaby
|
||||||
|
Denmark
|
||||||
|
|
||||||
|
email: info@dktcomega.com"
|
||||||
|
DESCRIPTION "DKT 797xx series MIB."
|
||||||
|
::= { dkt 15 }
|
||||||
|
|
||||||
|
f2SwitchEngine OBJECT IDENTIFIER ::= { f2MIB 1 }
|
||||||
|
|
||||||
|
f2IGMPSnooping OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-write
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Starts/stops IGMP snooping, input parameter 0 = stops IGMP snooping, 1 = starts IGMP snooping. Per Default IGMP snooping is disabled."
|
||||||
|
::= { f2SwitchEngine 1 }
|
||||||
|
|
||||||
|
f2MTU OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..8960)
|
||||||
|
MAX-ACCESS read-write
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Set and get MTU. The following values are valid: 3072, 4096, 6144, 8960 (3k, 4k, 6k and 8960 bytes)"
|
||||||
|
::= { f2SwitchEngine 2 }
|
||||||
|
|
||||||
|
f2FWDTable OBJECT-TYPE
|
||||||
|
SYNTAX SEQUENCE OF F2FWDMacAddressEntry
|
||||||
|
MAX-ACCESS not-accessible
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Get learned MAC addresses from LAN side of switch engine"
|
||||||
|
::= { f2SwitchEngine 3 }
|
||||||
|
|
||||||
|
f2FWDMacAddressEntry OBJECT-TYPE
|
||||||
|
SYNTAX F2FWDMacAddressEntry
|
||||||
|
MAX-ACCESS not-accessible
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Learned MAC address from LAN side of switch engine"
|
||||||
|
::= { f2FWDTable 1 }
|
||||||
|
|
||||||
|
F2FWDMacAddressEntry ::= SEQUENCE {
|
||||||
|
F2FWDMacAddress OCTET STRING
|
||||||
|
}
|
||||||
|
|
||||||
|
F2FWDMacAddress OBJECT-TYPE
|
||||||
|
SYNTAX MacAddress
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"MAC address from LAN"
|
||||||
|
::= { f2FWDMacAddressEntry 1 }
|
||||||
|
|
||||||
|
f2Ports OBJECT IDENTIFIER ::= { f2MIB 2 }
|
||||||
|
|
||||||
|
f2CPUPort OBJECT IDENTIFIER ::= { f2Ports 1 }
|
||||||
|
|
||||||
|
f2CPUPortAutoNegotiation OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..10)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays auto negotiation state for the port."
|
||||||
|
::= { f2CPUPort 1 }
|
||||||
|
|
||||||
|
f2CPUPortSpeedMode OBJECT-TYPE
|
||||||
|
SYNTAX OCTET STRING (SIZE(0..10))
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays the speed and duplex mode on the port."
|
||||||
|
::= { f2CPUPort 2 }
|
||||||
|
|
||||||
|
|
||||||
|
f2CPUPortLinkStatus OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays the Link status for the port"
|
||||||
|
::= { f2CPUPort 3 }
|
||||||
|
|
||||||
|
|
||||||
|
f2CPUPortFlowControl OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays flow control status for the port. Values: 0: No flow control, 1: Rx flow control, 2: Tx flow control, 3: Rx and Tx flow control"
|
||||||
|
::= { f2CPUPort 4 }
|
||||||
|
|
||||||
|
|
||||||
|
f2CPUPortEnable OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Status for CPU port. Always 1 for enabled."
|
||||||
|
::= { f2CPUPort 5 }
|
||||||
|
|
||||||
|
|
||||||
|
f2WANPort OBJECT IDENTIFIER ::= { f2Ports 2 }
|
||||||
|
|
||||||
|
f2WANPortAutoNegotiation OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..10)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays auto negotiation state for the port."
|
||||||
|
::= { f2WANPort 1 }
|
||||||
|
|
||||||
|
f2WANPortSpeedMode OBJECT-TYPE
|
||||||
|
SYNTAX OCTET STRING (SIZE(0..10))
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays the speed and duplex mode on the port. Valid values are (1000FD|1000HD|100FD|100HD)"
|
||||||
|
::= { f2WANPort 2 }
|
||||||
|
|
||||||
|
|
||||||
|
f2WANPortLinkStatus OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays the Link status for the port"
|
||||||
|
::= { f2WANPort 3 }
|
||||||
|
|
||||||
|
|
||||||
|
f2WANPortFlowControl OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays flow control status for the port. Values: 0: No flow control, 1: Rx flow control, 2: Tx flow control, 3: Rx and Tx flow control"
|
||||||
|
::= { f2WANPort 4 }
|
||||||
|
|
||||||
|
|
||||||
|
f2WANPortEnable OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Status for WAN port. Always 1 for enabled."
|
||||||
|
::= { f2WANPort 5 }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
f2LAN1Port OBJECT IDENTIFIER ::= { f2Ports 3 }
|
||||||
|
|
||||||
|
f2LAN1PortAutoNegotiation OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays auto negotiation state for the port."
|
||||||
|
::= { f2LAN1Port 1 }
|
||||||
|
|
||||||
|
f2LAN1PortSpeedMode OBJECT-TYPE
|
||||||
|
SYNTAX OCTET STRING (SIZE(0..10))
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays the speed and duplex mode on the port. Valid values are (1000FD|1000HD|100FD|100HD)"
|
||||||
|
::= { f2LAN1Port 2 }
|
||||||
|
|
||||||
|
|
||||||
|
f2LAN1PortLinkStatus OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays the Link status for the port"
|
||||||
|
::= { f2LAN1Port 3 }
|
||||||
|
|
||||||
|
|
||||||
|
f2LAN1PortFlowControl OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays flow control status for the port. Values: 0: No flow control, 1: Rx flow control, 2: Tx flow control, 3: Rx and Tx flow control"
|
||||||
|
::= { f2LAN1Port 4 }
|
||||||
|
|
||||||
|
|
||||||
|
f2LAN1PortEnable OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-write
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Enables/Disables LAN1 port. Set to 1 for Enabled set to 0 for Disabled."
|
||||||
|
::= { f2LAN1Port 5 }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
f2LAN2Port OBJECT IDENTIFIER ::= { f2Ports 4 }
|
||||||
|
|
||||||
|
f2LAN2PortAutoNegotiation OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays auto negotiation state for the port."
|
||||||
|
::= { f2LAN2Port 1 }
|
||||||
|
|
||||||
|
f2LAN2PortSpeedMode OBJECT-TYPE
|
||||||
|
SYNTAX OCTET STRING (SIZE(0..10))
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays the speed and duplex mode on the port. Valid values are (1000FD|1000HD|100FD|100HD)"
|
||||||
|
::= { f2LAN2Port 2 }
|
||||||
|
|
||||||
|
|
||||||
|
f2LAN2PortLinkStatus OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays the Link status for the port"
|
||||||
|
::= { f2LAN2Port 3 }
|
||||||
|
|
||||||
|
|
||||||
|
f2LAN2PortFlowControl OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays flow control status for the port. Values: 0: No flow control, 1: Rx flow control, 2: Tx flow control, 3: Rx and Tx flow control"
|
||||||
|
::= { f2LAN2Port 4 }
|
||||||
|
|
||||||
|
|
||||||
|
f2LAN2PortEnable OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-write
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Enables/Disables LAN2 port. Set to 1 for Enabled set to 0 for Disabled."
|
||||||
|
::= { f2LAN2Port 5 }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
f2LAN3Port OBJECT IDENTIFIER ::= { f2Ports 5 }
|
||||||
|
|
||||||
|
f2LAN3PortAutoNegotiation OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays auto negotiation state for the port."
|
||||||
|
::= { f2LAN3Port 1 }
|
||||||
|
|
||||||
|
f2LAN3PortSpeedMode OBJECT-TYPE
|
||||||
|
SYNTAX OCTET STRING (SIZE(0..10))
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays the speed and duplex mode on the port. Valid values are (1000FD|1000HD|100FD|100HD)"
|
||||||
|
::= { f2LAN3Port 2 }
|
||||||
|
|
||||||
|
|
||||||
|
f2LAN3PortLinkStatus OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays the Link status for the port"
|
||||||
|
::= { f2LAN3Port 3 }
|
||||||
|
|
||||||
|
|
||||||
|
f2LAN3PortFlowControl OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays flow control status for the port. Values: 0: No flow control, 1: Rx flow control, 2: Tx flow control, 3: Rx and Tx flow control"
|
||||||
|
::= { f2LAN3Port 4 }
|
||||||
|
|
||||||
|
|
||||||
|
f2LAN3PortEnable OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-write
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Enables/Disables LAN3 port. Set to 1 for Enabled set to 0 for Disabled."
|
||||||
|
::= { f2LAN3Port 5 }
|
||||||
|
|
||||||
|
|
||||||
|
f2LAN4Port OBJECT IDENTIFIER ::= { f2Ports 6 }
|
||||||
|
|
||||||
|
f2LAN4PortAutoNegotiation OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays auto negotiation state for the port."
|
||||||
|
::= { f2LAN4Port 1 }
|
||||||
|
|
||||||
|
f2LAN4PortSpeedMode OBJECT-TYPE
|
||||||
|
SYNTAX OCTET STRING (SIZE(0..10))
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays the speed and duplex mode on the port. Valid values are (1000FD|1000HD|100FD|100HD)"
|
||||||
|
::= { f2LAN4Port 2 }
|
||||||
|
|
||||||
|
|
||||||
|
f2LAN4PortLinkStatus OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays the Link status for the port"
|
||||||
|
::= { f2LAN4Port 3 }
|
||||||
|
|
||||||
|
|
||||||
|
f2LAN4PortFlowControl OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-only
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Displays flow control status for the port. Values: 0: No flow control, 1: Rx flow control, 2: Tx flow control, 3: Rx and Tx flow control"
|
||||||
|
::= { f2LAN4Port 4 }
|
||||||
|
|
||||||
|
|
||||||
|
f2LAN4PortEnable OBJECT-TYPE
|
||||||
|
SYNTAX INTEGER (0..1)
|
||||||
|
MAX-ACCESS read-write
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"Enables/Disables LAN4 port. Set to 1 for Enabled set to 0 for Disabled."
|
||||||
|
::= { f2LAN4Port 5 }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
f2ModuleGroup OBJECT-GROUP
|
||||||
|
OBJECTS {
|
||||||
|
f2SwitchEngine,
|
||||||
|
f2IGMPSnooping,
|
||||||
|
f2MTU,
|
||||||
|
f2Ports,
|
||||||
|
f2CPUPort,
|
||||||
|
f2CPUPortAutoNegotiation, f2CPUPortSpeedMode, f2CPUPortLinkStatus, f2CPUPortFlowControl, f2CPUPortEnable,
|
||||||
|
f2WANPort,
|
||||||
|
f2WANPortAutoNegotiation, f2WANPortSpeedMode, f2WANPortLinkStatus, f2WANPortFlowControl, f2WANPortEnable,
|
||||||
|
f2LAN1Port,
|
||||||
|
f2LAN1PortAutoNegotiation, f2LAN1PortSpeedMode, f2LAN1PortLinkStatus, f2LAN1PortFlowControl, f2LAN1PortEnable,
|
||||||
|
f2LAN2Port,
|
||||||
|
f2LAN2PortAutoNegotiation, f2LAN2PortSpeedMode, f2LAN2PortLinkStatus, f2LAN2PortFlowControl, f2LAN2PortEnable,
|
||||||
|
f2LAN3Port,
|
||||||
|
f2LAN3PortAutoNegotiation, f2LAN3PortSpeedMode, f2LAN3PortLinkStatus, f2LAN3PortFlowControl, f2LAN3PortEnable,
|
||||||
|
f2LAN4Port,
|
||||||
|
f2LAN4PortAutoNegotiation, f2LAN4PortSpeedMode, f2LAN4PortLinkStatus, f2LAN4PortFlowControl, f2LAN4PortEnable
|
||||||
|
}
|
||||||
|
STATUS current
|
||||||
|
DESCRIPTION
|
||||||
|
"The objects are related to the DKT 797xx series module, MIB rev 09."
|
||||||
|
::= { f2MIB 3 }
|
||||||
|
|
||||||
|
|
||||||
|
END
|
125
tests/data/dkt.json
Normal file
125
tests/data/dkt.json
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
{
|
||||||
|
"os": {
|
||||||
|
"discovery": {
|
||||||
|
"devices": [
|
||||||
|
{
|
||||||
|
"sysName": "<private>",
|
||||||
|
"sysObjectID": ".1.3.6.1.4.1.27304.3.2.10",
|
||||||
|
"sysDescr": "This is a DKTCOMEGA CPE FTTH gateway (GbE)",
|
||||||
|
"sysContact": null,
|
||||||
|
"version": null,
|
||||||
|
"hardware": null,
|
||||||
|
"features": null,
|
||||||
|
"os": "dkt",
|
||||||
|
"type": "network",
|
||||||
|
"serial": null,
|
||||||
|
"icon": "dkt.png",
|
||||||
|
"location": null
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"poller": {
|
||||||
|
"devices": [
|
||||||
|
{
|
||||||
|
"sysName": "<private>",
|
||||||
|
"sysObjectID": ".1.3.6.1.4.1.27304.3.2.10",
|
||||||
|
"sysDescr": "This is a DKTCOMEGA CPE FTTH gateway (GbE)",
|
||||||
|
"sysContact": "<private>",
|
||||||
|
"version": "DKT_F2_Firmware_v05_29",
|
||||||
|
"hardware": "DKT F2_1 1",
|
||||||
|
"features": null,
|
||||||
|
"os": "dkt",
|
||||||
|
"type": "network",
|
||||||
|
"serial": null,
|
||||||
|
"icon": "dkt.png",
|
||||||
|
"location": "<private>"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sensors": {
|
||||||
|
"discovery": {
|
||||||
|
"sensors": [
|
||||||
|
{
|
||||||
|
"sensor_deleted": 0,
|
||||||
|
"sensor_class": "state",
|
||||||
|
"poller_type": "snmp",
|
||||||
|
"sensor_oid": ".1.3.6.1.4.1.27304.11.3.0",
|
||||||
|
"sensor_index": "0",
|
||||||
|
"sensor_type": "catvSignalDetect",
|
||||||
|
"sensor_descr": "CATV Signal Detect",
|
||||||
|
"group": "",
|
||||||
|
"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": null,
|
||||||
|
"entPhysicalIndex_measured": null,
|
||||||
|
"sensor_prev": null,
|
||||||
|
"user_func": null,
|
||||||
|
"state_name": "catvSignalDetect"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sensor_deleted": 0,
|
||||||
|
"sensor_class": "state",
|
||||||
|
"poller_type": "snmp",
|
||||||
|
"sensor_oid": ".1.3.6.1.4.1.27304.11.2.0",
|
||||||
|
"sensor_index": "0",
|
||||||
|
"sensor_type": "catvSwitch",
|
||||||
|
"sensor_descr": "CATV Module",
|
||||||
|
"group": "",
|
||||||
|
"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": "catvSwitch"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"state_indexes": [
|
||||||
|
{
|
||||||
|
"state_name": "catvSignalDetect",
|
||||||
|
"state_descr": "No Signal",
|
||||||
|
"state_draw_graph": 0,
|
||||||
|
"state_value": 0,
|
||||||
|
"state_generic_value": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state_name": "catvSignalDetect",
|
||||||
|
"state_descr": "Signal Ok",
|
||||||
|
"state_draw_graph": 0,
|
||||||
|
"state_value": 1,
|
||||||
|
"state_generic_value": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state_name": "catvSwitch",
|
||||||
|
"state_descr": "Not powered",
|
||||||
|
"state_draw_graph": 0,
|
||||||
|
"state_value": 0,
|
||||||
|
"state_generic_value": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"state_name": "catvSwitch",
|
||||||
|
"state_descr": "Powered",
|
||||||
|
"state_draw_graph": 0,
|
||||||
|
"state_value": 1,
|
||||||
|
"state_generic_value": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"poller": "matches discovery"
|
||||||
|
}
|
||||||
|
}
|
41
tests/snmpsim/dkt.snmprec
Normal file
41
tests/snmpsim/dkt.snmprec
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
1.3.6.1.2.1.1.1.0|4|This is a DKTCOMEGA CPE FTTH gateway (GbE)
|
||||||
|
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.27304.3.2.10
|
||||||
|
1.3.6.1.2.1.1.3.0|67|225312661
|
||||||
|
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.11.1.0|65|233904
|
||||||
|
1.3.6.1.2.1.11.2.0|65|233903
|
||||||
|
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|1347627
|
||||||
|
1.3.6.1.2.1.11.14.0|65|0
|
||||||
|
1.3.6.1.2.1.11.15.0|65|140483
|
||||||
|
1.3.6.1.2.1.11.16.0|65|108
|
||||||
|
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|233905
|
||||||
|
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.11.31.0|65|0
|
||||||
|
1.3.6.1.2.1.11.32.0|65|0
|
||||||
|
1.3.6.1.4.1.2021.13.14.1.0|2|1
|
||||||
|
1.3.6.1.4.1.27304.10.1.0|4|F2_1 1
|
||||||
|
1.3.6.1.4.1.27304.10.2.0|4|DKT_F2_Firmware_v05_29
|
||||||
|
1.3.6.1.4.1.27304.11.2.0|2|1
|
||||||
|
1.3.6.1.4.1.27304.11.3.0|2|0
|
Loading…
Reference in New Issue
Block a user