Rename MIB files for ict devices (#8560)

This commit is contained in:
vivia11
2018-04-13 20:24:28 +01:00
committed by Neil Lathwood
parent 65b8270936
commit 90bfce1193
7 changed files with 12 additions and 10 deletions
@@ -24,7 +24,7 @@
*/
// Output Current
$oids = snmpwalk_cache_oid($device, 'outputEntry', array(), 'ICT-MIB');
$oids = snmpwalk_cache_oid($device, 'outputEntry', array(), 'ICT-DISTRIBUTION-PANEL-MIB');
foreach ($oids as $index => $entry) {
$output_number = (int)$entry['outputNumber'] + 1;
@@ -43,7 +43,7 @@ foreach ($oids as $index => $entry) {
}
// System Current
$systemCurrent = trim(snmp_get($device, 'systemCurrent.0', '-Oqv', 'ICT-MIB'), '" ');
$systemCurrent = trim(snmp_get($device, 'systemCurrent.0', '-Oqv', 'ICT-DISTRIBUTION-PANEL-MIB'), '" ');
if (!empty($systemCurrent)) {
$divisor = 1;
$index = '7.0';
@@ -26,7 +26,7 @@
// Output Current
// SNMPv2-SMI::enterprises.39145.11.8.0 = STRING: "0.4" -- outputCurrent
$outputCurrent = trim(snmp_get($device, 'outputCurrent.0', '-Oqv', 'ICT-MIB'), '" ');
$outputCurrent = trim(snmp_get($device, 'outputCurrent.0', '-Oqv', 'ICT-DIGITAL-SERIES-MIB'), '" ');
if (!empty($outputCurrent)) {
$divisor = 1;
$index = 0;
@@ -23,7 +23,7 @@
* @author Lorenzo Zafra<[email protected]>
*/
$oids = snmpwalk_cache_oid($device, 'outputEntry', array(), 'ICT-MIB');
$oids = snmpwalk_cache_oid($device, 'outputEntry', array(), 'ICT-DISTRIBUTION-PANEL-MIB');
if (is_array($oids)) {
$state_name = 'outputFuseStatus';
@@ -24,7 +24,7 @@
*/
// System Voltage
$systemVoltage = trim(snmp_get($device, 'systemVoltage.0', '-Oqv', 'ICT-MIB'), '" ');
$systemVoltage = trim(snmp_get($device, 'systemVoltage.0', '-Oqv', 'ICT-DISTRIBUTION-PANEL-MIB'), '" ');
if (!empty($systemVoltage)) {
$divisor = 1;
@@ -26,7 +26,7 @@
// Input Voltage
// SNMPv2-SMI::enterprises.39145.11.6.0 = STRING: "120" -- inputVoltage
$inputVoltage = trim(snmp_get($device, 'inputVoltage.0', '-Oqv', 'ICT-MIB'), '" ');
$inputVoltage = trim(snmp_get($device, 'inputVoltage.0', '-Oqv', 'ICT-DIGITAL-SERIES-MIB'), '" ');
if (!empty($inputVoltage)) {
$divisor = 1;
$index = 0;
@@ -41,7 +41,7 @@ if (!empty($inputVoltage)) {
// Output Voltage
// SNMPv2-SMI::enterprises.39145.11.7.0 = STRING: "55.2" -- outputVoltage
$outputVoltage = trim(snmp_get($device, 'outputVoltage.0', '-Oqv', 'ICT-MIB'), '" ');
$outputVoltage = trim(snmp_get($device, 'outputVoltage.0', '-Oqv', 'ICT-DIGITAL-SERIES-MIB'), '" ');
if (!empty($outputVoltage)) {
$divisor = 1;
$index = 1;
+3 -2
View File
@@ -4,8 +4,9 @@
-- =============================
-- 10/4/12 v1.00
--
-- Renamed from ICT-MIB to ICT-DIGITAL-SERIES-MIB
ICT-MIB DEFINITIONS ::= BEGIN
ICT-DIGITAL-SERIES-MIB DEFINITIONS ::= BEGIN
IMPORTS
enterprises, IpAddress FROM RFC1155-SMI
@@ -81,4 +82,4 @@ outputEnable OBJECT-TYPE
::= { digitalSeries 9 }
END
END
+2 -1
View File
@@ -4,8 +4,9 @@
-- =============================
-- 9/5/13 1.01
--
-- Renamed from ICT-MIB to ICT-DISTRIBUTION-PANEL-MIB
ICT-MIB DEFINITIONS ::= BEGIN
ICT-DISTRIBUTION-PANEL-MIB DEFINITIONS ::= BEGIN
IMPORTS
enterprises, IpAddress FROM RFC1155-SMI