snmp_read_mib

(PHP 5)

snmp_read_mib — Reads and parses a MIB file into the active MIB tree

Описание

bool snmp_read_mib ( string $filename )
Внимание

К настоящему времени эта функция еще не была документирована; для ознакомления доступен только список аргументов.

Коментарии

Importing massive Mibs located in a directory
<?php
/******************** Loading Mibs **************/
 
$mib_path='YourPath';   
 if (
$handle opendir($mib_path)) 
 { echo 
"Directory handle: $handle <br>";
    echo 
"Files: <br>";
    while (
false !== ($file readdir($handle))) 
    { if(
$file!='.')
       { if(
$file!='..')
          { echo 
"Read : ";       
            echo 
"$mib_path.$file";
            if(
snmp_read_mib($mib_path.'\\'.$file)) echo " Succesful <br>";
            else echo 
" Failed <br>";
         }
        }
    }
}
closedir($handle);

?>
2006-02-28 04:37:34
http://php5.kiev.ua/manual/ru/function.snmp-read-mib.html
If you are trying to import mibs with dependencies on other mibs you will have to set the MIBDIRS environment variable.

Unix / Linux: export MIBDIRS=/home/<user>/MIBS:/usr/share/snmp/mibs
Window: Good luck! No really.  Try this url out.  It has everything that you need to know about setting environment vars in windows.

http://vlaurie.com/computers2/Articles/environment.htm
2008-03-04 19:50:42
http://php5.kiev.ua/manual/ru/function.snmp-read-mib.html

    Поддержать сайт на родительском проекте КГБ