PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

snmp_set_enum_print> <snmp_get_valueretrieval
Last updated: Fri, 10 Oct 2008

view this page in

snmp_read_mib

(PHP 5)

snmp_read_mib Lit et analyse un fichier MIB dans l'arbre actif MIB

Description

bool snmp_read_mib ( string $filename )
Avertissement

Cette fonction n'est pas documentée et seule la liste des arguments est disponible.



add a note add a note User Contributed Notes
snmp_read_mib
jdhall75 at yahoo dot com
05-Mar-2008 02:50
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
ptitgal at hotmail dot com
28-Feb-2006 11: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_set_enum_print> <snmp_get_valueretrieval
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites