getSNMP()->realWalk(self::OID_docsQos3ServiceFlowDirection) as $k => $v){ $k_prim = preg_split("|\.|",$k); $rtr[$k_prim[15].".".$k_prim[16]] = $this->getSNMP()->parseSnmpValue($v); } return $rtr; }catch (\Exception $e){ echo "ouch!".$e->getMessage()."\n"; return array(); } } public function docsQos3CmtsIfIndex(){ try{ $rtr = array(); foreach($this->getSNMP()->realWalk(self::OID_docsQos3CmtsIfIndex) as $k => $v){ $k_prim = preg_split("|\.|",$k); $k_mac = sprintf("%02x:%02x:%02x:%02x:%02x:%02x", $k_prim[15], $k_prim[16], $k_prim[17], $k_prim[18], $k_prim[19], $k_prim[20]); $rtr[$k_mac][] = $this->getSNMP()->parseSnmpValue($v). ".".$k_prim[21]; } return $rtr; }catch (\Exception $e){ echo "ouch!".$e->getMessage()."\n"; return array(); } } public function docsQos3ServiceFlowOctets(){ try{ $rtr = array(); foreach($this->getSNMP()->realWalk(self::OID_docsQos3ServiceFlowOctets) as $k => $v){ $k_prim = preg_split("|\.|",$k); $rtr[$k_prim[15].".".$k_prim[16]] = $this->getSNMP()->parseSnmpValue($v); } return $rtr; }catch (\Exception $e){ echo "ouch! ".$e->getMessage()."\n"; return array(); } } public function docsQosServiceFlowDirection(){ return $this->getSNMP()->walk1d(self::OID_docsQosServiceFlowDirection); } public function docsQosCmtsIfIndex(){ try{ $rtr = array(); foreach($this->getSNMP()->realWalk(self::OID_docsQosCmtsIfIndex) as $k => $v){ $k_prim = preg_split("|\.|",$k); $k_mac = sprintf("%02x:%02x:%02x:%02x:%02x:%02x", $k_prim[14], $k_prim[15], $k_prim[16], $k_prim[17], $k_prim[18], $k_prim[19]); $rtr[$k_mac][] = $k_prim[20]; //$this->getSNMP()->parseSnmpValue($v); } return $rtr; }catch (\Exception $e){ echo "ouch!".$e->getMessage()."\n"; return array(); } } public function docsQosServiceFlowOctets(){ return $this->getSNMP()->walk1d(self::OID_docsQosServiceFlowOctets); } public function docsIfCmtsCmStatusMacAddress() { return $this->getSNMP()->walk1d(self::OID_docsIfCmtsCmStatusMacAddress); } //public function docsIfCmtsCmStatusIndex(){ // return $this->getSNMP()->walk1d(self::OID_docsIfCmtsCmStatusDownChannelIfIndex); //} //public function docsIfCmtsCmStatusUpChannelIfIndex(){ // return $this->getSNMP()->walk1d(self::OID_docsIfCmtsCmStatusUpChannelIfIndex); //} //public function docsIfCmtsCmStatusDownChannelIfIndex(){ // return $this->getSNMP()->walk1d(self::OID_docsIfCmtsCmStatusDownChannelIfIndex); //} //public function docsIfCmtsCmStatusIpAddress(){ // return $this->getSNMP()->walk1d(self::OID_docsIfCmtsCmStatusIpAddress); //} //public function docsIfCmtsCmStatusValue(){ // return $this->getSNMP()->walk1d(self::OID_docsIfCmtsCmStatusValue); //} public function docsIfCmtsCmStatusRxPower(){ return $this->getSNMP()->walk1d(self::OID_docsIfCmtsCmStatusRxPower); } public function docsIfSigQSignalNoise(){ return $this->getSNMP()->walk1d(self::OID_docsIfSigQSignalNoise); } public function docsIfSigQMicroreflections(){ return $this->getSNMP()->walk1d(self::OID_docsIfSigQMicroreflections); } }