|
@@ -12,16 +12,21 @@ class OIDSHuaweiV1 extends \HuaweiBundle\SNMP\MIB {
|
|
const OID_authOnuListSlot = "1.3.6.1.4.1.5875.800.3.10.1.1.2";
|
|
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_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_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_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.5875.800.3.9.3.3.1.6";
|
|
|
|
- const OID_onuPonTxOpticalPower = "1.3.6.1.4.1.5875.800.3.9.3.3.1.7";
|
|
|
|
- const OID_onuPonOpticalVltage = "1.3.6.1.4.1.5875.800.3.9.3.3.1.8";
|
|
|
|
- const OID_onuPonOpticalTemperature = "1.3.6.1.4.1.5875.800.3.9.3.3.1.10";
|
|
|
|
|
|
+ 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_onuCatvRxOpticalPower = "1.3.6.1.4.1.2011.6.128.1.1.2.51.1.7";
|
|
|
|
+
|
|
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.5875.800.3.10.1.1.11";
|
|
const OID_oltPonDesc = "1.3.6.1.2.1.31.1.1.1.1";
|
|
const OID_oltPonDesc = "1.3.6.1.2.1.31.1.1.1.1";
|
|
const OID_oltPonEnableStatus = "1.3.6.1.4.1.5875.800.3.9.3.4.1.4";
|
|
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.5875.800.3.9.3.7.1.2";
|
|
|
|
|
|
+ const OID_oltPonRxOpticalPower = "1.3.6.1.4.1.2011.6.128.1.1.2.51.1.6";
|
|
|
|
+
|
|
const OID_oltPonTxOpticalPower = "1.3.6.1.4.1.5875.800.3.9.3.4.1.8";
|
|
const OID_oltPonTxOpticalPower = "1.3.6.1.4.1.5875.800.3.9.3.4.1.8";
|
|
const OID_oltPonOpticalVltage = "1.3.6.1.4.1.5875.800.3.9.3.4.1.9";
|
|
const OID_oltPonOpticalVltage = "1.3.6.1.4.1.5875.800.3.9.3.4.1.9";
|
|
const OID_oltPonOpticalCurrent = "1.3.6.1.4.1.5875.800.3.9.3.4.1.10";
|
|
const OID_oltPonOpticalCurrent = "1.3.6.1.4.1.5875.800.3.9.3.4.1.10";
|
|
@@ -65,36 +70,46 @@ class OIDSHuaweiV1 extends \HuaweiBundle\SNMP\MIB {
|
|
return $this->getSNMP()->lastOidWalk(self::OID_authOnuListMac,16);
|
|
return $this->getSNMP()->lastOidWalk(self::OID_authOnuListMac,16);
|
|
}
|
|
}
|
|
|
|
|
|
- $values = $this->getSNMP()->lastOidWalk(self::OID_authOnuListMac,14);
|
|
|
|
|
|
+ $values = $this->getSNMP()->lastOidWalk(self::OID_authOnuListMac,16);
|
|
|
|
+ return $this->convertIndex($index, $values);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function onuCatvRxOpticalPower($index = null) {
|
|
|
|
+ if(is_null($index)) {
|
|
|
|
+ return $this->getSNMP()->lastOidWalk(self::OID_onuCatvRxOpticalPower,16);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $values = $this->getSNMP()->lastOidWalk(self::OID_onuCatvRxOpticalPower,16);
|
|
return $this->convertIndex($index, $values);
|
|
return $this->convertIndex($index, $values);
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
public function onuPonRxOpticalPower($index = null) {
|
|
public function onuPonRxOpticalPower($index = null) {
|
|
if(is_null($index)) {
|
|
if(is_null($index)) {
|
|
- return $this->getSNMP()->lastOidWalk(self::OID_onuPonRxOpticalPower,15);
|
|
|
|
|
|
+ return $this->getSNMP()->lastOidWalk(self::OID_onuPonRxOpticalPower,16);
|
|
}
|
|
}
|
|
|
|
|
|
- $values = $this->getSNMP()->lastOidWalk(self::OID_onuPonRxOpticalPower,15);
|
|
|
|
|
|
+ $values = $this->getSNMP()->lastOidWalk(self::OID_onuPonRxOpticalPower,16);
|
|
return $this->convertIndex($index, $values);
|
|
return $this->convertIndex($index, $values);
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
public function onuPonTxOpticalPower($index = null) {
|
|
public function onuPonTxOpticalPower($index = null) {
|
|
if(is_null($index)) {
|
|
if(is_null($index)) {
|
|
- return $this->getSNMP()->lastOidWalk(self::OID_onuPonTxOpticalPower,15);
|
|
|
|
|
|
+ return $this->getSNMP()->lastOidWalk(self::OID_onuPonTxOpticalPower,16);
|
|
}
|
|
}
|
|
|
|
|
|
- $values = $this->getSNMP()->lastOidWalk(self::OID_onuPonTxOpticalPower,15);
|
|
|
|
|
|
+ $values = $this->getSNMP()->lastOidWalk(self::OID_onuPonTxOpticalPower,16);
|
|
return $this->convertIndex($index, $values);
|
|
return $this->convertIndex($index, $values);
|
|
}
|
|
}
|
|
|
|
|
|
public function onuPonOpticalVltage($index = null) {
|
|
public function onuPonOpticalVltage($index = null) {
|
|
- $values = $this->getSNMP()->lastOidWalk(self::OID_onuPonOpticalVltage,15);
|
|
|
|
|
|
+ $values = $this->getSNMP()->lastOidWalk(self::OID_onuPonOpticalVltage,16);
|
|
return $this->convertIndex($index, $values);
|
|
return $this->convertIndex($index, $values);
|
|
}
|
|
}
|
|
|
|
|
|
public function onuPonOpticalTemperature($index = null) {
|
|
public function onuPonOpticalTemperature($index = null) {
|
|
- $values = $this->getSNMP()->lastOidWalk(self::OID_onuPonOpticalTemperature,15);
|
|
|
|
|
|
+ $values = $this->getSNMP()->lastOidWalk(self::OID_onuPonOpticalTemperature,16);
|
|
return $this->convertIndex($index, $values);
|
|
return $this->convertIndex($index, $values);
|
|
}
|
|
}
|
|
|
|
|