snmp_read_mib

(PHP 5)

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

Description

bool snmp_read_mib ( string filename )

Внимание

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



snmp_read_mib
ptitgal at hotmail dot com
28-Feb-2006 02:37
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);

?>

<snmp_get_valueretrievalsnmp_set_enum_print>
 Last updated: Tue, 15 Nov 2005