|
@@ -21,6 +21,22 @@ class DocsIfCmts extends \OSS_SNMP\MIB {
|
|
const OID_docsIfSigQSignalNoise = "1.3.6.1.2.1.10.127.1.1.4.1.5";
|
|
const OID_docsIfSigQSignalNoise = "1.3.6.1.2.1.10.127.1.1.4.1.5";
|
|
const OID_docsIfSigQMicroreflections = "1.3.6.1.2.1.10.127.1.1.4.1.6";
|
|
const OID_docsIfSigQMicroreflections = "1.3.6.1.2.1.10.127.1.1.4.1.6";
|
|
const docsIfCmtsChannelUtilization = "1.3.6.1.2.1.10.127.1.3.9.1.3";
|
|
const docsIfCmtsChannelUtilization = "1.3.6.1.2.1.10.127.1.3.9.1.3";
|
|
|
|
+ const OID_ipNetToMediaPhysAddress = "1.3.6.1.2.1.4.22.1.2";
|
|
|
|
+
|
|
|
|
+ public function ipNetToMediaPhysAddress(){
|
|
|
|
+ $rtr = array();
|
|
|
|
+ foreach($this->getSNMP()->realWalk(self::OID_ipNetToMediaPhysAddress) as $k => $m){
|
|
|
|
+////tring(40) ".1.3.6.1.2.1.4.22.1.2.2000001.10.14.8.69"
|
|
|
|
+//string(23) "STRING: 0:c:e5:7d:93:d0"
|
|
|
|
+////
|
|
|
|
+ $karray = preg_split("|\.|",$k);
|
|
|
|
+ $mac = preg_split("|:|", trim(substr($m,8)));
|
|
|
|
+ $mac = sprintf("%02x:%02x:%02x:%02x:%02x:%02x",$mac[0], $mac[1], $mac[2], $mac[3], $mac[4], $mac[5]);
|
|
|
|
+ $l_ke = count($karray);
|
|
|
|
+ $rtr[$mac][] = sprintf("%d.%d.%d.%d",$karray[$l_ke - 4],$karray[$l_ke - 3], $karray[$l_ke - 2], $karray[$l_ke-1]);
|
|
|
|
+ }
|
|
|
|
+ return $rtr;
|
|
|
|
+ }
|
|
|
|
|
|
public function docsQos3ServiceFlowDirection(){
|
|
public function docsQos3ServiceFlowDirection(){
|
|
try{
|
|
try{
|
|
@@ -120,9 +136,9 @@ accessDenied(7) The CMTS has sent a Registration Aborted message to the CM
|
|
return $this->getSNMP()->walk1d(self::OID_docsIfCmtsCmStatusDownChannelIfIndex);
|
|
return $this->getSNMP()->walk1d(self::OID_docsIfCmtsCmStatusDownChannelIfIndex);
|
|
}
|
|
}
|
|
|
|
|
|
- //public function docsIfCmtsCmStatusIpAddress(){
|
|
|
|
- // return $this->getSNMP()->walk1d(self::OID_docsIfCmtsCmStatusIpAddress);
|
|
|
|
- //}
|
|
|
|
|
|
+ public function docsIfCmtsCmStatusIpAddress(){
|
|
|
|
+ return $this->getSNMP()->walk1d(self::OID_docsIfCmtsCmStatusIpAddress);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
public function docsIfCmtsCmStatusValue(){
|
|
public function docsIfCmtsCmStatusValue(){
|