|
@@ -7,29 +7,82 @@ namespace ZteBundle\SNMP\MIBS;
|
|
|
// https://translate.google.com/translate?hl=en&sl=auto&tl=en&u=https%3A%2F%2Fixnfo.com%2Foid-i-mib-dlya-huawei-olt-i-onu.html
|
|
|
// https://github.com/chinnurtb/xiaoli/tree/master/node/monitd/include/mib
|
|
|
|
|
|
-class OIDSZteV1 extends \ZteBundle\SNMP\MIB {
|
|
|
+class OIDSZTEV1 extends \ZteBundle\SNMP\MIB {
|
|
|
|
|
|
const OID_authOnuListSlot = "1.3.6.1.4.1.5875.800.3.10.1.1.2";
|
|
|
const OID_authOnuListPon = "1.3.6.1.4.1.5875.800.3.10.1.1.3";
|
|
|
const OID_authOnuListOnuid = "1.3.6.1.4.1.5875.800.3.10.1.1.4";
|
|
|
|
|
|
- const OID_authOnuListMac = "1.3.6.1.4.1.2011.6.128.1.1.2.43.1.3";
|
|
|
- const OID_onuPonRxOpticalPower = "1.3.6.1.4.1.2011.6.128.1.1.2.51.1.4";
|
|
|
- const OID_onuPonTxOpticalPower = "1.3.6.1.4.1.2011.6.128.1.1.2.51.1.3";
|
|
|
- const OID_onuPonOpticalVltage = "1.3.6.1.4.1.2011.6.128.1.1.2.51.1.5";
|
|
|
- const OID_onuPonOpticalTemperature = "1.3.6.1.4.1.2011.6.128.1.1.2.51.1.1";
|
|
|
- const OID_onuPonOpticalCurrent = "1.3.6.1.4.1.2011.6.128.1.1.2.51.1.2";
|
|
|
+ const OID_authOnuListMac = "1.3.6.1.4.1.3902.1012.3.28.1.1.5";
|
|
|
+
|
|
|
+ const OID_onuPonRxOpticalPower = "1.3.6.1.4.1.3902.1012.3.50.12.1.1.10"; //value * 0.002 - 30
|
|
|
+ const OID_onuPonTxOpticalPower = "1.3.6.1.4.1.3902.1012.3.50.12.1.1.14"; //value * 0.002 - 30
|
|
|
+
|
|
|
+ const OID_onuPonOpticalVltage = "1.3.6.1.4.1.3902.1012.3.50.12.1.1.17"; //(value * 20) / 1000 mV to V
|
|
|
+ const OID_onuPonOpticalTemperature = "1.3.6.1.4.1.3902.1012.3.50.12.1.1.19"; //(value / 256) C
|
|
|
+ const OID_onuPonOpticalCurrent = "1.3.6.1.4.1.3902.1012.3.50.12.1.1.18";
|
|
|
const OID_onuCatvRxOpticalPower = "1.3.6.1.4.1.2011.6.128.1.1.2.51.1.7";
|
|
|
+
|
|
|
+ /* zxGponPonPowerFeedVoltage OBJECT-TYPE 1.3.6.1.4.1.3902.1012.3.50.12.1.1.17
|
|
|
+ SYNTAX INTEGER
|
|
|
+ MAX-ACCESS read-only
|
|
|
+ STATUS current
|
|
|
+ DESCRIPTION
|
|
|
+ "DC voltage, 2s complement, 20 mV resolution.(2 byte)"
|
|
|
+ REFERENCE
|
|
|
+ "G.984.4 Section 11.1.10 Test result enumeration"
|
|
|
+ ::= { zxGponPonEntry 17}
|
|
|
+
|
|
|
+ zxGponPonLaserBiasCurrent OBJECT-TYPE 1.3.6.1.4.1.3902.1012.3.50.12.1.1.18
|
|
|
+ SYNTAX INTEGER
|
|
|
+ MAX-ACCESS read-only
|
|
|
+ STATUS current
|
|
|
+ DESCRIPTION
|
|
|
+ "2s complement, 2 uA resolution.(2 byte)"
|
|
|
+ REFERENCE
|
|
|
+ "G.984.4 Section 11.1.10 Test result enumeration"
|
|
|
+ ::= { zxGponPonEntry 18}
|
|
|
+
|
|
|
+ zxGponPonTemperature OBJECT-TYPE 1.3.6.1.4.1.3902.1012.3.50.12.1.1.19
|
|
|
+ SYNTAX INTEGER
|
|
|
+ MAX-ACCESS read-only
|
|
|
+ STATUS current
|
|
|
+ DESCRIPTION
|
|
|
+ "2s complement, 1/256 degree C resolution.(2 byte)"
|
|
|
+ REFERENCE
|
|
|
+ "G.984.4 Section 11.1.10 Test result enumeration"
|
|
|
+ ::= { zxGponPonEntry 19}
|
|
|
+
|
|
|
+ ONU O1O7 State O6:Operation-state
|
|
|
+ 6 - O6, 0 - other
|
|
|
+
|
|
|
+ ONU Operational State Online
|
|
|
+ 1 - LOS, 2 - syncMib, 3 - working, 4 - DyingGasp, x - AuthFail, 6 - OffLine, x - Logging
|
|
|
+ ONU Last Online Time 2017-02-06 00:14:32
|
|
|
+ ONU Last Offline Time 0000-00-00 00:00:00
|
|
|
+ ONU Offline Reason Unknown
|
|
|
+ 1 - Unknown, 2 - LOS, 3 - LOSi, 7 - LOAMi, 9 - DyingGasp
|
|
|
+
|
|
|
+ .1.3.6.1.4.1.3902.1012.3.28.2.1.3.268501248.1=6
|
|
|
+ .1.3.6.1.4.1.3902.1012.3.28.2.1.4.268501248.1=3
|
|
|
+ .1.3.6.1.4.1.3902.1012.3.28.2.1.5.268501248.1="2017-02-06 00:14:32" .1.3.6.1.4.1.3902.1012.3.28.2.1.6.268501248.1="0000-00-0000:00:00"
|
|
|
+ .1.3.6.1.4.1.3902.1012.3.28.2.1.7.268501248.1=1
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ */
|
|
|
|
|
|
- const OID_onuStatus = "1.3.6.1.4.1.5875.800.3.10.1.1.11";
|
|
|
+ const OID_onuStatus = "1.3.6.1.4.1.3902.1012.3.28.2.1.4";
|
|
|
const OID_oltPonDesc = "1.3.6.1.2.1.31.1.1.1.1";
|
|
|
+ const OID_oltPonNexo = "1.3.6.1.4.1.3902.1012.3.13.1.1.1";
|
|
|
const OID_oltPonEnableStatus = "1.3.6.1.4.1.5875.800.3.9.3.4.1.4";
|
|
|
|
|
|
- const OID_oltPonRxOpticalPower = "1.3.6.1.4.1.2011.6.128.1.1.2.51.1.6"; // (value - 10000) * 0.01
|
|
|
- const OID_oltPonTxOpticalPower = "1.3.6.1.4.1.2011.6.128.1.1.2.23.1.4";
|
|
|
- const OID_oltPonOpticalVltage = "1.3.6.1.4.1.2011.6.128.1.1.2.23.1.2";
|
|
|
- const OID_oltPonOpticalCurrent = "1.3.6.1.4.1.2011.6.128.1.1.2.23.1.3";
|
|
|
- const OID_oltPonOpticalTemperature = "1.3.6.1.4.1.2011.6.128.1.1.2.23.1.1";
|
|
|
+ const OID_oltPonRxOpticalPower = "1.3.6.1.4.1.3902.1015.1010.11.2.1.2"; // value * 0.001
|
|
|
+ const OID_oltPonTxOpticalPower = "1.3.6.1.4.1.3902.1015.3.1.13.1.4"; //value * 0.001
|
|
|
+
|
|
|
+ const OID_oltPonOpticalVltage = "1.3.6.1.4.1.3902.1015.3.1.13.1.10"; // value * 0.001
|
|
|
+ const OID_oltPonOpticalCurrent = "1.3.6.1.4.1.3902.1015.3.1.13.1.9"; // value * 0.001
|
|
|
+ const OID_oltPonOpticalTemperature = "1.3.6.1.4.1.3902.1015.3.1.13.1.12"; // value * 0.001
|
|
|
|
|
|
|
|
|
//Genericos
|
|
@@ -39,8 +92,8 @@ class OIDSZteV1 extends \ZteBundle\SNMP\MIB {
|
|
|
const OID_ifOutOctets = "1.3.6.1.2.1.2.2.1.16";
|
|
|
const OID_ifDescr = "1.3.6.1.2.1.2.2.1.2";
|
|
|
|
|
|
- const OID_cardCpu = "1.3.6.1.4.1.2011.2.6.7.1.1.2.1.5";
|
|
|
- const OID_cardMemory = "1.3.6.1.4.1.2011.2.6.7.1.1.2.1.6";
|
|
|
+ const OID_cardCpu = "1.3.6.1.4.1.3902.1015.2.1.1.3.1.9";
|
|
|
+ const OID_cardMemory = "1.3.6.1.4.1.3902.1015.2.1.1.3.1.11";
|
|
|
|
|
|
function convertIndex($index, $values) {
|
|
|
$data = array();
|
|
@@ -68,10 +121,10 @@ class OIDSZteV1 extends \ZteBundle\SNMP\MIB {
|
|
|
|
|
|
public function onuSerialNumber($index = null) {
|
|
|
if(is_null($index)) {
|
|
|
- return $this->getSNMP()->lastOidWalk(self::OID_authOnuListMac,16);
|
|
|
+ return $this->getSNMP()->lastOidWalk(self::OID_authOnuListMac,14);
|
|
|
}
|
|
|
|
|
|
- $values = $this->getSNMP()->lastOidWalk(self::OID_authOnuListMac,16);
|
|
|
+ $values = $this->getSNMP()->lastOidWalk(self::OID_authOnuListMac,14);
|
|
|
return $this->convertIndex($index, $values);
|
|
|
}
|
|
|
|
|
@@ -87,30 +140,30 @@ class OIDSZteV1 extends \ZteBundle\SNMP\MIB {
|
|
|
|
|
|
public function onuPonRxOpticalPower($index = null) {
|
|
|
if(is_null($index)) {
|
|
|
- return $this->getSNMP()->lastOidWalk(self::OID_onuPonRxOpticalPower,16);
|
|
|
+ return $this->getSNMP()->lastOidWalk(self::OID_onuPonRxOpticalPower,15);
|
|
|
}
|
|
|
|
|
|
- $values = $this->getSNMP()->lastOidWalk(self::OID_onuPonRxOpticalPower,16);
|
|
|
+ $values = $this->getSNMP()->lastOidWalk(self::OID_onuPonRxOpticalPower,15);
|
|
|
return $this->convertIndex($index, $values);
|
|
|
|
|
|
}
|
|
|
|
|
|
public function onuPonTxOpticalPower($index = null) {
|
|
|
if(is_null($index)) {
|
|
|
- return $this->getSNMP()->lastOidWalk(self::OID_onuPonTxOpticalPower,16);
|
|
|
+ return $this->getSNMP()->lastOidWalk(self::OID_onuPonTxOpticalPower,15);
|
|
|
}
|
|
|
|
|
|
- $values = $this->getSNMP()->lastOidWalk(self::OID_onuPonTxOpticalPower,16);
|
|
|
+ $values = $this->getSNMP()->lastOidWalk(self::OID_onuPonTxOpticalPower,15);
|
|
|
return $this->convertIndex($index, $values);
|
|
|
}
|
|
|
|
|
|
public function onuPonOpticalVltage($index = null) {
|
|
|
- $values = $this->getSNMP()->lastOidWalk(self::OID_onuPonOpticalVltage,16);
|
|
|
+ $values = $this->getSNMP()->lastOidWalk(self::OID_onuPonOpticalVltage,15);
|
|
|
return $this->convertIndex($index, $values);
|
|
|
}
|
|
|
|
|
|
public function onuPonOpticalTemperature($index = null) {
|
|
|
- $values = $this->getSNMP()->lastOidWalk(self::OID_onuPonOpticalTemperature,16);
|
|
|
+ $values = $this->getSNMP()->lastOidWalk(self::OID_onuPonOpticalTemperature,15);
|
|
|
return $this->convertIndex($index, $values);
|
|
|
}
|
|
|
|
|
@@ -123,6 +176,10 @@ class OIDSZteV1 extends \ZteBundle\SNMP\MIB {
|
|
|
public function oltPonDesc($index = null) {
|
|
|
return $this->getSNMP()->lastOidWalk(self::OID_oltPonDesc,12);
|
|
|
}
|
|
|
+
|
|
|
+ public function oltPonNexo($index = null) {
|
|
|
+ return $this->getSNMP()->lastOidWalk(self::OID_oltPonNexo,14);
|
|
|
+ }
|
|
|
|
|
|
public function oltPonEnableStatus($index = null) {
|
|
|
return $this->getSNMP()->lastOidWalk(self::OID_oltPonEnableStatus,15);
|
|
@@ -130,27 +187,27 @@ class OIDSZteV1 extends \ZteBundle\SNMP\MIB {
|
|
|
}
|
|
|
|
|
|
public function oltPonRxOpticalPower($index = null) {
|
|
|
- return $this->getSNMP()->lastOidWalk(self::OID_oltPonRxOpticalPower,16);
|
|
|
+ return $this->getSNMP()->lastOidWalk(self::OID_oltPonRxOpticalPower,14);
|
|
|
// return $this->convertIndex($index, $values);
|
|
|
}
|
|
|
|
|
|
public function oltPonTxOpticalPower($index = null) {
|
|
|
- return $this->getSNMP()->lastOidWalk(self::OID_oltPonTxOpticalPower,16);
|
|
|
+ return $this->getSNMP()->lastOidWalk(self::OID_oltPonTxOpticalPower,14);
|
|
|
// return $this->convertIndex($index, $values);
|
|
|
}
|
|
|
|
|
|
public function oltPonOpticalVltage($index = null) {
|
|
|
- return $this->getSNMP()->lastOidWalk(self::OID_oltPonOpticalVltage,16);
|
|
|
+ return $this->getSNMP()->lastOidWalk(self::OID_oltPonOpticalVltage,14);
|
|
|
// return $this->convertIndex($index, $values);
|
|
|
}
|
|
|
|
|
|
public function oltPonOpticalCurrent($index = null) {
|
|
|
- return $this->getSNMP()->lastOidWalk(self::OID_oltPonOpticalCurrent,16);
|
|
|
+ return $this->getSNMP()->lastOidWalk(self::OID_oltPonOpticalCurrent,14);
|
|
|
// return $this->convertIndex($index, $values);
|
|
|
}
|
|
|
|
|
|
public function oltPonOpticalTemperature($index = null) {
|
|
|
- return $this->getSNMP()->lastOidWalk(self::OID_oltPonOpticalTemperature,16);
|
|
|
+ return $this->getSNMP()->lastOidWalk(self::OID_oltPonOpticalTemperature,14);
|
|
|
// return $this->convertIndex($index, $values);
|
|
|
}
|
|
|
|
|
@@ -175,10 +232,10 @@ class OIDSZteV1 extends \ZteBundle\SNMP\MIB {
|
|
|
}
|
|
|
|
|
|
public function oltCardCpu($index = null) {
|
|
|
- return $this->getSNMP()->lastOidWalk(self::OID_cardCpu,16);
|
|
|
+ return $this->getSNMP()->lastOidWalk(self::OID_cardCpu,15);
|
|
|
}
|
|
|
|
|
|
public function oltCardMemory($index = null) {
|
|
|
- return $this->getSNMP()->lastOidWalk(self::OID_cardMemory,16);
|
|
|
+ return $this->getSNMP()->lastOidWalk(self::OID_cardMemory,15);
|
|
|
}
|
|
|
}
|