|
@@ -169,7 +169,6 @@ class DocsIfCmts extends \OSS_SNMP\MIB {
|
|
$oid = self::OID_docsQosCmtsIfIndex;
|
|
$oid = self::OID_docsQosCmtsIfIndex;
|
|
}
|
|
}
|
|
$ifIndex = $this->getSNMP()->realWalk($oid);
|
|
$ifIndex = $this->getSNMP()->realWalk($oid);
|
|
- var_dump($oid, $ifIndex);
|
|
|
|
foreach((array)$ifIndex as $k => $v){
|
|
foreach((array)$ifIndex as $k => $v){
|
|
$k_prim = preg_split("|\.|",$k);
|
|
$k_prim = preg_split("|\.|",$k);
|
|
if(!isset($k_prim[14]) OR !isset($k_prim[15]) OR !isset($k_prim[16]) OR !isset($k_prim[17]) OR !isset($k_prim[18]) OR !isset($k_prim[19])){
|
|
if(!isset($k_prim[14]) OR !isset($k_prim[15]) OR !isset($k_prim[16]) OR !isset($k_prim[17]) OR !isset($k_prim[18]) OR !isset($k_prim[19])){
|
|
@@ -277,8 +276,16 @@ accessDenied(7) The CMTS has sent a Registration Aborted message to the CM
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- public function docsIfCmStatusTxPower(){
|
|
|
|
- return $this->getSNMP()->walk1d(self::OID_docsIfCmStatusTxPower);
|
|
|
|
|
|
+ public function docsIfCmStatusTxPower($decode=false){
|
|
|
|
+ if(!$decode) return $this->getSNMP()->walk1d(self::OID_docsIfCmStatusTxPower);
|
|
|
|
+ else{
|
|
|
|
+ $rtr = array();
|
|
|
|
+ foreach($this->getSNMP()->realWalk(self::OID_docsIfCmStatusTxPower) as $_oid => $val){
|
|
|
|
+ $k = substr($_oid, strlen(self::OID_docsIfCmStatusTxPower)+2);
|
|
|
|
+ $rtr[$k] = $this->getSNMP()->parseSnmpValue($val);
|
|
|
|
+ }
|
|
|
|
+ return $rtr;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
public function getCmStatus($index){
|
|
public function getCmStatus($index){
|