public function realWalk1d($oid) {

        $arrayData = $this->realWalk($oid);

        $result = array();

        foreach ($arrayData as $_oid => $value) {

            $oidPrefix = substr($_oid, 0, strrpos($_oid, '.'));

            if (!isset($result[$oidPrefix])) {
                $result[$oidPrefix] = Array();
            }
            $aIndexOid = str_replace($oidPrefix . ".", "", $_oid);
            $result[$oidPrefix][$aIndexOid] = $this->parseSnmpValue($value);
        }

        return $result;
    }
public function realWalk1d($oid) {

        $arrayData = $this->realWalk($oid);

        $result = array();

        foreach ($arrayData as $_oid => $value) {

            $oidPrefix = substr($_oid, 0, strrpos($_oid, '.'));

            if (!isset($result[$oidPrefix])) {
                $result[$oidPrefix] = Array();
            }
            $aIndexOid = str_replace($oidPrefix . ".", "", $_oid);
            $result[$oidPrefix][$aIndexOid] = $this->parseSnmpValue($value);
        }

        return $result;
    }
public function realWalk1d ( $ oid ) { $ arrayData = $ this -> realWalk ( $ oid ) ; $ result = array ( ) ; foreach ( $ arrayData as $ _oid => $ value ) { $ oidPrefix = substr ( $ _oid , 0 , strrpos ( $ _oid , '.' ) ) ; if ( ! isset ( $ result [ $ oidPrefix ] ) ) { $ result [ $ oidPrefix ] = Array ( ) ; } $ aIndexOid = str_replace ( $ oidPrefix . "." , "" , $ _oid ) ; $ result [ $ oidPrefix ] [ $ aIndexOid ] = $ this -> parseSnmpValue ( $ value ) ; } return $ result ; }
Get indexed Real Walk return values
@param string $oid
@return array
Get indexed Real Walk return values